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
  *
@@ -13623,7 +13623,7 @@
13623
13623
  *
13624
13624
  * ==========================================================================
13625
13625
  *
13626
- * Version 4.4.0, Sat Apr 04 2026
13626
+ * Version 4.4.0, Sun Apr 19 2026
13627
13627
  *
13628
13628
  * https://dexie.org
13629
13629
  *
@@ -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',
@@ -19571,7 +19570,7 @@
19571
19570
  const downloading$ = createDownloadingState();
19572
19571
  dexie.cloud = {
19573
19572
  // @ts-ignore
19574
- version: "4.4.10",
19573
+ version: "4.4.11",
19575
19574
  options: Object.assign({}, DEFAULT_OPTIONS),
19576
19575
  schema: null,
19577
19576
  get currentUserId() {
@@ -20016,7 +20015,7 @@
20016
20015
  }
20017
20016
  }
20018
20017
  // @ts-ignore
20019
- dexieCloud.version = "4.4.10";
20018
+ dexieCloud.version = "4.4.11";
20020
20019
  Dexie.Cloud = dexieCloud;
20021
20020
 
20022
20021
  // In case the SW lives for a while, let it reuse already opened connections: