dexie-cloud-addon 4.1.0-beta.48 → 4.1.0-beta.49

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.1.0-beta.48, Tue Jun 03 2025
11
+ * Version 4.1.0-beta.49, Wed Jun 11 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -4877,6 +4877,9 @@
4877
4877
  serverRev,
4878
4878
  };
4879
4879
  }));
4880
+ // Clean up baseRevs for tables that do not exist anymore or are no longer marked for sync
4881
+ // Resolve #2168 by also cleaning up baseRevs for tables that are not marked for sync
4882
+ yield db.$baseRevs.where('tableName').noneOf(Object.keys(schema).filter((table) => schema[table].markedForSync)).delete();
4880
4883
  });
4881
4884
  }
4882
4885
 
@@ -5488,7 +5491,9 @@
5488
5491
  //
5489
5492
  const [clientChangeSet, syncState, baseRevs, { yMessages, lastUpdateIds }] = yield db.transaction('r', db.tables, () => __awaiter(this, void 0, void 0, function* () {
5490
5493
  const syncState = yield db.getPersistedSyncState();
5491
- const baseRevs = yield db.$baseRevs.toArray();
5494
+ let baseRevs = yield db.$baseRevs.toArray();
5495
+ // Resolve #2168
5496
+ baseRevs = baseRevs.filter(br => tablesToSync.some(tbl => tbl.name === br.tableName));
5492
5497
  let clientChanges = yield listClientChanges(mutationTables, db);
5493
5498
  const yResults = yield listYClientMessagesAndStateVector(db, tablesToSync);
5494
5499
  throwIfCancelled(cancelToken);
@@ -8453,7 +8458,7 @@
8453
8458
  const syncComplete = new rxjs.Subject();
8454
8459
  dexie.cloud = {
8455
8460
  // @ts-ignore
8456
- version: "4.1.0-beta.48",
8461
+ version: "4.1.0-beta.49",
8457
8462
  options: Object.assign({}, DEFAULT_OPTIONS),
8458
8463
  schema: null,
8459
8464
  get currentUserId() {
@@ -8771,7 +8776,7 @@
8771
8776
  }
8772
8777
  }
8773
8778
  // @ts-ignore
8774
- dexieCloud.version = "4.1.0-beta.48";
8779
+ dexieCloud.version = "4.1.0-beta.49";
8775
8780
  Dexie.Cloud = dexieCloud;
8776
8781
 
8777
8782
  exports.default = dexieCloud;