@pylonsync/sync 0.3.292 → 0.3.293
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/ids.d.ts +14 -0
- package/dist/index.d.ts +949 -0
- package/dist/local-store.d.ts +186 -0
- package/dist/multi-tab-orchestrator.d.ts +141 -0
- package/dist/multi-tab.d.ts +70 -0
- package/dist/mutation-queue.d.ts +88 -0
- package/dist/op-queue.d.ts +18 -0
- package/dist/persistence.d.ts +114 -0
- package/dist/room-subscriptions.d.ts +113 -0
- package/dist/server-subscriptions.d.ts +26 -0
- package/dist/session-resolver.d.ts +68 -0
- package/dist/storage.d.ts +30 -0
- package/dist/subscription-coordinator.d.ts +99 -0
- package/dist/test-harness/env.d.ts +56 -0
- package/dist/test-harness/index.d.ts +5 -0
- package/dist/test-harness/server.d.ts +178 -0
- package/dist/test-harness/transport.d.ts +19 -0
- package/dist/transport.d.ts +89 -0
- package/dist/transports/index.d.ts +19 -0
- package/dist/transports/polling.d.ts +15 -0
- package/dist/transports/reconnect.d.ts +20 -0
- package/dist/transports/sse.d.ts +22 -0
- package/dist/transports/types.d.ts +97 -0
- package/dist/transports/websocket.d.ts +21 -0
- package/dist/types.d.ts +124 -0
- package/package.json +11 -5
- package/tsconfig.json +0 -7
package/dist/ids.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Storage } from "./storage";
|
|
2
|
+
/**
|
|
3
|
+
* Mint a Pylon-shaped id (40 hex chars). Used by `SyncEngine.insert`
|
|
4
|
+
* so the optimistic ghost and the canonical row share the exact same
|
|
5
|
+
* id — without this, the server-minted id would replace a `_pending_*`
|
|
6
|
+
* placeholder and the local replica would briefly carry both.
|
|
7
|
+
*/
|
|
8
|
+
export declare function generateId(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Stable client id persisted in storage. Lets the server correlate
|
|
11
|
+
* retries (even when op_id is absent) and attach per-client
|
|
12
|
+
* diagnostics / rate limits.
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateClientId(storage: Storage): string;
|