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$1((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$1((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$1((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',
@@ -8512,7 +8511,7 @@ function dexieCloud(dexie) {
8512
8511
  const downloading$ = createDownloadingState();
8513
8512
  dexie.cloud = {
8514
8513
  // @ts-ignore
8515
- version: "4.4.10",
8514
+ version: "4.4.11",
8516
8515
  options: Object.assign({}, DEFAULT_OPTIONS),
8517
8516
  schema: null,
8518
8517
  get currentUserId() {
@@ -8957,7 +8956,7 @@ function dexieCloud(dexie) {
8957
8956
  }
8958
8957
  }
8959
8958
  // @ts-ignore
8960
- dexieCloud.version = "4.4.10";
8959
+ dexieCloud.version = "4.4.11";
8961
8960
  Dexie.Cloud = dexieCloud;
8962
8961
 
8963
8962
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };