@korajs/sync 1.0.0-beta.6 → 1.0.0-beta.9
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.cjs +102 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +102 -9
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{transport-ByWfWBbB.d.cts → transport-B2GQerqJ.d.cts} +3 -1
- package/dist/{transport-ByWfWBbB.d.ts → transport-B2GQerqJ.d.ts} +3 -1
- package/package.json +3 -3
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SyncTransport, T as TransportOptions, a as SyncMessage, d as TransportMessageHandler, e as TransportCloseHandler, f as TransportErrorHandler, Q as QueueStorage } from './transport-
|
|
1
|
+
import { c as SyncTransport, T as TransportOptions, a as SyncMessage, d as TransportMessageHandler, e as TransportCloseHandler, f as TransportErrorHandler, Q as QueueStorage } from './transport-B2GQerqJ.cjs';
|
|
2
2
|
import { Operation } from '@korajs/core';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SyncTransport, T as TransportOptions, a as SyncMessage, d as TransportMessageHandler, e as TransportCloseHandler, f as TransportErrorHandler, Q as QueueStorage } from './transport-
|
|
1
|
+
import { c as SyncTransport, T as TransportOptions, a as SyncMessage, d as TransportMessageHandler, e as TransportCloseHandler, f as TransportErrorHandler, Q as QueueStorage } from './transport-B2GQerqJ.js';
|
|
2
2
|
import { Operation } from '@korajs/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -93,7 +93,7 @@ type SyncState = (typeof SYNC_STATES)[number];
|
|
|
93
93
|
/**
|
|
94
94
|
* Developer-facing sync status. Simplified view of the internal state.
|
|
95
95
|
*/
|
|
96
|
-
declare const SYNC_STATUSES: readonly ["connected", "syncing", "synced", "offline", "clock-error", "error", "schema-mismatch"];
|
|
96
|
+
declare const SYNC_STATUSES: readonly ["connected", "reconnecting", "syncing", "synced", "offline", "clock-error", "error", "schema-mismatch"];
|
|
97
97
|
type SyncStatus = (typeof SYNC_STATUSES)[number];
|
|
98
98
|
/**
|
|
99
99
|
* Sync status information exposed to developers.
|
|
@@ -101,6 +101,8 @@ type SyncStatus = (typeof SYNC_STATUSES)[number];
|
|
|
101
101
|
interface SyncStatusInfo {
|
|
102
102
|
/** Current developer-facing status */
|
|
103
103
|
status: SyncStatus;
|
|
104
|
+
/** True when the engine is actively trying to re-establish a transport session. */
|
|
105
|
+
reconnecting: boolean;
|
|
104
106
|
/** Number of operations waiting to be sent */
|
|
105
107
|
pendingOperations: number;
|
|
106
108
|
/** Timestamp of last successful sync (null if never synced) */
|
|
@@ -93,7 +93,7 @@ type SyncState = (typeof SYNC_STATES)[number];
|
|
|
93
93
|
/**
|
|
94
94
|
* Developer-facing sync status. Simplified view of the internal state.
|
|
95
95
|
*/
|
|
96
|
-
declare const SYNC_STATUSES: readonly ["connected", "syncing", "synced", "offline", "clock-error", "error", "schema-mismatch"];
|
|
96
|
+
declare const SYNC_STATUSES: readonly ["connected", "reconnecting", "syncing", "synced", "offline", "clock-error", "error", "schema-mismatch"];
|
|
97
97
|
type SyncStatus = (typeof SYNC_STATUSES)[number];
|
|
98
98
|
/**
|
|
99
99
|
* Sync status information exposed to developers.
|
|
@@ -101,6 +101,8 @@ type SyncStatus = (typeof SYNC_STATUSES)[number];
|
|
|
101
101
|
interface SyncStatusInfo {
|
|
102
102
|
/** Current developer-facing status */
|
|
103
103
|
status: SyncStatus;
|
|
104
|
+
/** True when the engine is actively trying to re-establish a transport session. */
|
|
105
|
+
reconnecting: boolean;
|
|
104
106
|
/** Number of operations waiting to be sent */
|
|
105
107
|
pendingOperations: number;
|
|
106
108
|
/** Timestamp of last successful sync (null if never synced) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korajs/sync",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "Sync protocol and transports for Kora.js with delta sync, causal ordering, and automatic reconnection",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"protobufjs": "^8.0.1",
|
|
37
|
-
"@korajs/core": "1.0.0-beta.
|
|
38
|
-
"@korajs/merge": "1.0.0-beta.
|
|
37
|
+
"@korajs/core": "1.0.0-beta.9",
|
|
38
|
+
"@korajs/merge": "1.0.0-beta.9"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@fast-check/vitest": "0.2.0",
|