@korajs/sync 1.0.0-beta.5 → 1.0.0-beta.7
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 +64 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +64 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{transport-DXmZ8kyI.d.cts → transport-ByWfWBbB.d.cts} +7 -0
- package/dist/{transport-DXmZ8kyI.d.ts → transport-ByWfWBbB.d.ts} +7 -0
- 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-ByWfWBbB.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-ByWfWBbB.js';
|
|
2
2
|
import { Operation } from '@korajs/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -141,6 +141,13 @@ interface SyncConfig {
|
|
|
141
141
|
scopeMap?: SyncScopeMap;
|
|
142
142
|
/** Number of operations per batch. Defaults to 100. */
|
|
143
143
|
batchSize?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Maximum time to wait for the server to acknowledge an outbound batch before
|
|
146
|
+
* treating the connection as stalled. The batch is returned to the durable
|
|
147
|
+
* outbound queue before disconnecting so it can be retried on reconnect.
|
|
148
|
+
* Defaults to 30000ms. Set to 0 to disable the watchdog.
|
|
149
|
+
*/
|
|
150
|
+
outboundAckTimeoutMs?: number;
|
|
144
151
|
/** Initial reconnection delay in ms. Defaults to 1000. */
|
|
145
152
|
reconnectInterval?: number;
|
|
146
153
|
/** Maximum reconnection delay in ms. Defaults to 30000. */
|
|
@@ -141,6 +141,13 @@ interface SyncConfig {
|
|
|
141
141
|
scopeMap?: SyncScopeMap;
|
|
142
142
|
/** Number of operations per batch. Defaults to 100. */
|
|
143
143
|
batchSize?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Maximum time to wait for the server to acknowledge an outbound batch before
|
|
146
|
+
* treating the connection as stalled. The batch is returned to the durable
|
|
147
|
+
* outbound queue before disconnecting so it can be retried on reconnect.
|
|
148
|
+
* Defaults to 30000ms. Set to 0 to disable the watchdog.
|
|
149
|
+
*/
|
|
150
|
+
outboundAckTimeoutMs?: number;
|
|
144
151
|
/** Initial reconnection delay in ms. Defaults to 1000. */
|
|
145
152
|
reconnectInterval?: number;
|
|
146
153
|
/** Maximum reconnection delay in ms. Defaults to 30000. */
|
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.7",
|
|
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/
|
|
38
|
-
"@korajs/
|
|
37
|
+
"@korajs/core": "1.0.0-beta.7",
|
|
38
|
+
"@korajs/merge": "1.0.0-beta.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@fast-check/vitest": "0.2.0",
|