dexie-cloud-addon 4.4.10 → 4.4.11

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.4.10, Sat Apr 04 2026
11
+ * Version 4.4.11, Sun Apr 19 2026
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -14493,7 +14493,7 @@
14493
14493
  *
14494
14494
  * ==========================================================================
14495
14495
  *
14496
- * Version 4.4.0, Sat Apr 04 2026
14496
+ * Version 4.4.0, Sun Apr 19 2026
14497
14497
  *
14498
14498
  * https://dexie.org
14499
14499
  *
@@ -18113,8 +18113,7 @@
18113
18113
  throw new Error(`No database URL to connect WebSocket to`);
18114
18114
  }
18115
18115
  const readyForChangesMessage = db.messageConsumer.readyToServe.pipe(operators.filter((isReady) => isReady), // When consumer is ready for new messages, produce such a message to inform server about it
18116
- operators.switchMap(() => db.cloud.persistedSyncState.pipe(operators.filter((syncState) => !!(syncState && syncState.serverRevision)), operators.take(1))), // Wait reactively for syncState with serverRevision (avoids race with logout/re-sync)
18117
- operators.switchMap((syncState) => __awaiter(this, void 0, void 0, function* () {
18116
+ operators.switchMap(() => db.getPersistedSyncState()), operators.filter((syncState) => !!(syncState && syncState.serverRevision)), operators.switchMap((syncState) => __awaiter(this, void 0, void 0, function* () {
18118
18117
  return ({
18119
18118
  // Produce the message to trigger server to send us new messages to consume:
18120
18119
  type: 'ready',
@@ -19742,7 +19741,7 @@
19742
19741
  const downloading$ = createDownloadingState();
19743
19742
  dexie.cloud = {
19744
19743
  // @ts-ignore
19745
- version: "4.4.10",
19744
+ version: "4.4.11",
19746
19745
  options: Object.assign({}, DEFAULT_OPTIONS),
19747
19746
  schema: null,
19748
19747
  get currentUserId() {
@@ -20187,7 +20186,7 @@
20187
20186
  }
20188
20187
  }
20189
20188
  // @ts-ignore
20190
- dexieCloud.version = "4.4.10";
20189
+ dexieCloud.version = "4.4.11";
20191
20190
  Dexie.Cloud = dexieCloud;
20192
20191
 
20193
20192
  exports.default = dexieCloud;