@loro-dev/streams-crdt 0.16.0 → 0.16.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.
@@ -1145,7 +1145,10 @@ declare class StreamsCrdt<TVersion extends JsonObject> implements StreamsCrdtLik
1145
1145
  */
1146
1146
  private salvageLocalBacklogOnIncompleteInitialSync;
1147
1147
  private syncOnce;
1148
+ /** Caller owns opQueue; never wait for the background flush from here. */
1149
+ private syncOnceExclusive;
1148
1150
  private performInitialJoinSync;
1151
+ private performInitialJoinSyncExclusive;
1149
1152
  private createInitialCursor;
1150
1153
  private resolveInitialRemoteState;
1151
1154
  private resolvePullOnlyRemoteState;
@@ -1245,6 +1248,12 @@ declare class StreamsCrdt<TVersion extends JsonObject> implements StreamsCrdtLik
1245
1248
  private drainQueuedBatch;
1246
1249
  private drainPendingBatch;
1247
1250
  private drainPendingWriteOnlyBatch;
1251
+ /**
1252
+ * One FIFO transaction, called only while holding opQueue. Selecting the
1253
+ * head and committing its ACK/count must share the lock: sync may drain
1254
+ * the queue while a background writer is queued or sleeping between retries.
1255
+ */
1256
+ private flushPendingLocalBatchExclusive;
1248
1257
  /**
1249
1258
  * Drains `pendingLocal` to the server in strict FIFO order.
1250
1259
  *
@@ -1395,4 +1404,4 @@ declare class PayloadProtectionError extends Error {
1395
1404
  declare function isValidRillId(id: string): boolean;
1396
1405
  //#endregion
1397
1406
  export { WriteOnlyAppendResult as $, PayloadProtectionProviderConfig as A, StreamsAuthProvider as B, LocalSyncStats as C, PayloadProtectionOpenInput as D, PayloadProtectionKind as E, Result as F, TransportCreateStreamSuccess as G, StreamsCrdtShardUrlsOptions as H, SnapshotCodec as I, TransportJoinParams as J, TransportDeleteStreamSuccess as K, SnapshotTransformHook as L, PayloadProtectionSealInput as M, PayloadProtectionSealResult as N, PayloadProtectionOptions as O, PayloadProtectionWritePolicy as P, TransportSyncSuccess as Q, SnapshotUploadOptions as R, JsonValue as S, PayloadProtectionFailureReason as T, TransportCatchupParams as U, StreamsCrdtOptions as V, TransportCatchupSuccess as W, TransportSnapshotUploadSuccess as X, TransportRoomStatus as Y, TransportSubscription as Z, EphemeralStreamCrdtOptions as _, StreamsCrdt as a, RemoteCursor as at, IsolatedCrdtAdapter as b, CrdtApplyReturn as c, createInitialRemoteCursor as ct, E2eeOptions as d, BeforeRemoteCursorSaveContext as et, E2eeProvider as f, EphemeralStreamAdaptor as g, E2eeWritePolicy as h, EphemeralStreamCrdt as i, IndexedDbRemoteCursorStoreOptions as it, PayloadProtectionReadPolicy as j, PayloadProtectionProvider as k, CrdtUnresolvedSpan as l, E2eeReadPolicy as m, PayloadProtectionError as n, InMemoryRemoteCursorStore as nt, CrdtAdapter as o, RemoteCursorSaveSource as ot, E2eeProviderConfig as p, TransportError as q, LocalAppendFailedError as r, IndexedDbRemoteCursorStore as rt, CrdtApplyOutcome as s, RemoteCursorStore as st, isValidRillId as t, BeforeRemoteCursorSaveHook as tt, CrdtUpdateBatch as u, EphemeralStreamJoinParams as v, PayloadProtectionContext as w, JsonObject as x, EphemeralStreamSubscription as y, StreamsAuthContext as z };
1398
- //# sourceMappingURL=stream-id-BEEukuNT.d.ts.map
1407
+ //# sourceMappingURL=stream-id-DEOH5LmQ.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loro-dev/streams-crdt",
3
3
  "description": "Transport/runtime layer for synchronizing CRDT state over Durable Streams.",
4
- "version": "0.16.0",
4
+ "version": "0.16.1",
5
5
  "license": "MIT",
6
6
  "author": "Loro Team",
7
7
  "homepage": "https://streams.loro.dev",