@electric-sql/client 1.5.2 → 1.5.3
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/cjs/index.cjs +760 -271
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -2
- package/dist/index.browser.mjs +3 -3
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.legacy-esm.js +760 -271
- package/dist/index.legacy-esm.js.map +1 -1
- package/dist/index.mjs +760 -271
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +304 -375
- package/src/pause-lock.ts +112 -0
- package/src/shape-stream-state.ts +781 -0
package/dist/index.d.ts
CHANGED
|
@@ -739,13 +739,13 @@ declare class ShapeStream<T extends Row<unknown> = Row> implements ShapeStreamIn
|
|
|
739
739
|
get mode(): LogMode;
|
|
740
740
|
subscribe(callback: (messages: Message<T>[]) => MaybePromise<void>, onError?: (error: Error) => void): () => void;
|
|
741
741
|
unsubscribeAll(): void;
|
|
742
|
-
/** Unix time at which we last synced. Undefined
|
|
742
|
+
/** Unix time at which we last synced. Undefined until first successful up-to-date. */
|
|
743
743
|
lastSyncedAt(): number | undefined;
|
|
744
744
|
/** Time elapsed since last sync (in ms). Infinity if we did not yet sync. */
|
|
745
745
|
lastSynced(): number;
|
|
746
746
|
/** Indicates if we are connected to the Electric sync service. */
|
|
747
747
|
isConnected(): boolean;
|
|
748
|
-
/** True during initial fetch. False
|
|
748
|
+
/** True during initial fetch. False afterwards. */
|
|
749
749
|
isLoading(): boolean;
|
|
750
750
|
hasStarted(): boolean;
|
|
751
751
|
isPaused(): boolean;
|