@sqlite-sync/core 0.8.2 → 0.9.1
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/index-BB-tsxEF.d.ts +1203 -0
- package/dist/index.d.ts +2 -351
- package/dist/index.js +968 -1285
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/make-crdt-table-CvpTHmRY.js +136 -0
- package/dist/make-crdt-table-CvpTHmRY.js.map +1 -0
- package/dist/reset-state-D3nsfx_t.js +2018 -0
- package/dist/reset-state-D3nsfx_t.js.map +1 -0
- package/dist/server.d.ts +65 -67
- package/dist/server.js +30 -32
- package/dist/server.js.map +1 -1
- package/dist/system-schema-CkglcfTS.js +185 -0
- package/dist/system-schema-CkglcfTS.js.map +1 -0
- package/dist/utils-Dr5JwcTP.js +143 -0
- package/dist/utils-Dr5JwcTP.js.map +1 -0
- package/dist/worker.d.ts +35 -37
- package/dist/worker.js +399 -479
- package/dist/worker.js.map +1 -1
- package/package.json +10 -6
- package/dist/chunk-GMF45NFH.js +0 -2298
- package/dist/chunk-GMF45NFH.js.map +0 -1
- package/dist/chunk-NHT3ELMN.js +0 -160
- package/dist/chunk-NHT3ELMN.js.map +0 -1
- package/dist/crdt-sync-remote-source-CnB4p4Ry.d.ts +0 -713
- package/dist/reset-state-D6UslXaj.d.ts +0 -19
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type ResetRequest = {
|
|
2
|
-
epoch: string;
|
|
3
|
-
requestedAt: number;
|
|
4
|
-
};
|
|
5
|
-
/** Durable async key-value storage for reset state. Injectable for tests. */
|
|
6
|
-
type ResetStore = {
|
|
7
|
-
get: <T>(key: string) => Promise<T | undefined>;
|
|
8
|
-
set: (key: string, value: unknown) => Promise<void>;
|
|
9
|
-
delete: (key: string) => Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* A clean reset is a recovery action for a de-sync detected now. If the reload
|
|
13
|
-
* never happens (broadcast lost, tab crashed mid-reload, browser killed the page),
|
|
14
|
-
* the request must not fire on an arbitrary later cold start and silently wipe
|
|
15
|
-
* local-only writes accumulated since.
|
|
16
|
-
*/
|
|
17
|
-
declare const RESET_REQUEST_TTL_MS: number;
|
|
18
|
-
|
|
19
|
-
export { RESET_REQUEST_TTL_MS as R, type ResetRequest as a, type ResetStore as b };
|