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
  *
@@ -6883,8 +6883,7 @@ function connectWebSocket(db) {
6883
6883
  throw new Error(`No database URL to connect WebSocket to`);
6884
6884
  }
6885
6885
  const readyForChangesMessage = db.messageConsumer.readyToServe.pipe(filter((isReady) => isReady), // When consumer is ready for new messages, produce such a message to inform server about it
6886
- switchMap(() => db.cloud.persistedSyncState.pipe(filter((syncState) => !!(syncState && syncState.serverRevision)), take(1))), // Wait reactively for syncState with serverRevision (avoids race with logout/re-sync)
6887
- switchMap((syncState) => __awaiter(this, void 0, void 0, function* () {
6886
+ switchMap(() => db.getPersistedSyncState()), filter((syncState) => !!(syncState && syncState.serverRevision)), switchMap((syncState) => __awaiter(this, void 0, void 0, function* () {
6888
6887
  return ({
6889
6888
  // Produce the message to trigger server to send us new messages to consume:
6890
6889
  type: 'ready',
@@ -8341,7 +8340,7 @@ function dexieCloud(dexie) {
8341
8340
  const downloading$ = createDownloadingState();
8342
8341
  dexie.cloud = {
8343
8342
  // @ts-ignore
8344
- version: "4.4.10",
8343
+ version: "4.4.11",
8345
8344
  options: Object.assign({}, DEFAULT_OPTIONS),
8346
8345
  schema: null,
8347
8346
  get currentUserId() {
@@ -8786,7 +8785,7 @@ function dexieCloud(dexie) {
8786
8785
  }
8787
8786
  }
8788
8787
  // @ts-ignore
8789
- dexieCloud.version = "4.4.10";
8788
+ dexieCloud.version = "4.4.11";
8790
8789
  Dexie.Cloud = dexieCloud;
8791
8790
 
8792
8791
  // In case the SW lives for a while, let it reuse already opened connections: