@syncular/client 0.83.0 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -564,9 +564,6 @@ export declare class SyncClient {
564
564
  * dismissed. The transition is one-way and survives restart.
565
565
  */
566
566
  resolveCommitOutcome(input: ResolveCommitOutcomeInput): CommitOutcome;
567
- /** §7.3.5: remaining lease validity in ms (`expiresAtMs − now`), or
568
- * `undefined` if no lease is held. Negative once expired. */
569
- leaseRemainingMs(now?: number): number | undefined;
570
567
  /** True when syncing is stopped pending a client upgrade. */
571
568
  get stopped(): boolean;
572
569
  /**
package/dist/client.js CHANGED
@@ -1907,12 +1907,6 @@ export class SyncClient {
1907
1907
  throw error;
1908
1908
  });
1909
1909
  }
1910
- /** §7.3.5: remaining lease validity in ms (`expiresAtMs − now`), or
1911
- * `undefined` if no lease is held. Negative once expired. */
1912
- leaseRemainingMs(now = this.#now()) {
1913
- const expiresAtMs = this.#leaseState?.expiresAtMs;
1914
- return expiresAtMs === undefined ? undefined : expiresAtMs - now;
1915
- }
1916
1910
  /** True when syncing is stopped pending a client upgrade. */
1917
1911
  get stopped() {
1918
1912
  return this.#schemaFloor !== undefined;
@@ -73,7 +73,6 @@ export interface CommandResult<T> {
73
73
  readonly value: T;
74
74
  readonly effects: CommandEffects;
75
75
  }
76
- export declare const NO_COMMAND_EFFECTS: CommandEffects;
77
76
  /**
78
77
  * Per-observer-transaction accumulator. It contains no revision itself: the
79
78
  * transaction wrapper assigns the revision only after all writes succeeded.
@@ -1,6 +1,3 @@
1
- export const NO_COMMAND_EFFECTS = {
2
- sync: { kind: 'none' },
3
- };
4
1
  /**
5
2
  * Per-observer-transaction accumulator. It contains no revision itself: the
6
3
  * transaction wrapper assigns the revision only after all writes succeeded.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/client",
3
- "version": "0.83.0",
3
+ "version": "0.85.0",
4
4
  "description": "Syncular TypeScript client core — offline-first sync over SQLite (WASM/OPFS, Bun, Node)",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -121,11 +121,11 @@
121
121
  },
122
122
  "dependencies": {
123
123
  "@sqlite.org/sqlite-wasm": "^3.53.0-build1",
124
- "@syncular/core": "0.83.0"
124
+ "@syncular/core": "0.85.0"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@electric-sql/pglite": "^0.5.4",
128
- "@syncular/server": "0.83.0",
128
+ "@syncular/server": "0.85.0",
129
129
  "playwright": "1.63.0",
130
130
  "vite": "8.3.4"
131
131
  }
package/src/client.ts CHANGED
@@ -3033,13 +3033,6 @@ export class SyncClient {
3033
3033
  );
3034
3034
  }
3035
3035
 
3036
- /** §7.3.5: remaining lease validity in ms (`expiresAtMs − now`), or
3037
- * `undefined` if no lease is held. Negative once expired. */
3038
- leaseRemainingMs(now: number = this.#now()): number | undefined {
3039
- const expiresAtMs = this.#leaseState?.expiresAtMs;
3040
- return expiresAtMs === undefined ? undefined : expiresAtMs - now;
3041
- }
3042
-
3043
3036
  /** True when syncing is stopped pending a client upgrade. */
3044
3037
  get stopped(): boolean {
3045
3038
  return this.#schemaFloor !== undefined;
@@ -79,10 +79,6 @@ export interface CommandResult<T> {
79
79
  readonly effects: CommandEffects;
80
80
  }
81
81
 
82
- export const NO_COMMAND_EFFECTS: CommandEffects = {
83
- sync: { kind: 'none' },
84
- };
85
-
86
82
  interface MutableTableChange {
87
83
  tableWide: boolean;
88
84
  scopeKeys: Set<string> | undefined;