dexie-cloud-addon 4.0.11 → 4.0.12
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.
- package/dist/modern/define-ydoc-trigger.d.ts +2 -0
- package/dist/modern/dexie-cloud-addon.js +9 -4
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +9 -4
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/modern/sync/DEXIE_CLOUD_SYNCER_ID.d.ts +1 -0
- package/dist/modern/yjs/Y.d.ts +3 -0
- package/dist/modern/yjs/YDexieCloudSyncState.d.ts +3 -0
- package/dist/modern/yjs/YTable.d.ts +2 -0
- package/dist/modern/yjs/applyYMessages.d.ts +9 -0
- package/dist/modern/yjs/awareness.d.ts +4 -0
- package/dist/modern/yjs/createYClientUpdateObservable.d.ts +4 -0
- package/dist/modern/yjs/createYHandler.d.ts +5 -0
- package/dist/modern/yjs/downloadYDocsFromServer.d.ts +3 -0
- package/dist/modern/yjs/getUpdatesTable.d.ts +3 -0
- package/dist/modern/yjs/listUpdatesSince.d.ts +2 -0
- package/dist/modern/yjs/listYClientMessagesAndStateVector.d.ts +26 -0
- package/dist/modern/yjs/reopenDocSignal.d.ts +10 -0
- package/dist/modern/yjs/updateYSyncStates.d.ts +6 -0
- package/dist/umd/define-ydoc-trigger.d.ts +2 -0
- package/dist/umd/dexie-cloud-addon.js +9 -4
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +9 -4
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/dist/umd/sync/DEXIE_CLOUD_SYNCER_ID.d.ts +1 -0
- package/dist/umd/yjs/Y.d.ts +3 -0
- package/dist/umd/yjs/YDexieCloudSyncState.d.ts +3 -0
- package/dist/umd/yjs/YTable.d.ts +2 -0
- package/dist/umd/yjs/applyYMessages.d.ts +9 -0
- package/dist/umd/yjs/awareness.d.ts +4 -0
- package/dist/umd/yjs/createYClientUpdateObservable.d.ts +4 -0
- package/dist/umd/yjs/createYHandler.d.ts +5 -0
- package/dist/umd/yjs/downloadYDocsFromServer.d.ts +3 -0
- package/dist/umd/yjs/getUpdatesTable.d.ts +3 -0
- package/dist/umd/yjs/listUpdatesSince.d.ts +2 -0
- package/dist/umd/yjs/listYClientMessagesAndStateVector.d.ts +26 -0
- package/dist/umd/yjs/reopenDocSignal.d.ts +10 -0
- package/dist/umd/yjs/updateYSyncStates.d.ts +6 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.
|
|
11
|
+
* Version 4.0.12, Mon Jun 09 2025
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -3449,6 +3449,9 @@
|
|
|
3449
3449
|
serverRev,
|
|
3450
3450
|
};
|
|
3451
3451
|
}));
|
|
3452
|
+
// Clean up baseRevs for tables that do not exist anymore or are no longer marked for sync
|
|
3453
|
+
// Resolve #2168 by also cleaning up baseRevs for tables that are not marked for sync
|
|
3454
|
+
yield db.$baseRevs.where('tableName').noneOf(Object.keys(schema).filter((table) => schema[table].markedForSync)).delete();
|
|
3452
3455
|
});
|
|
3453
3456
|
}
|
|
3454
3457
|
|
|
@@ -3654,7 +3657,9 @@
|
|
|
3654
3657
|
//
|
|
3655
3658
|
const [clientChangeSet, syncState, baseRevs] = yield db.transaction('r', db.tables, () => __awaiter(this, void 0, void 0, function* () {
|
|
3656
3659
|
const syncState = yield db.getPersistedSyncState();
|
|
3657
|
-
|
|
3660
|
+
let baseRevs = yield db.$baseRevs.toArray();
|
|
3661
|
+
// Resolve #2168
|
|
3662
|
+
baseRevs = baseRevs.filter(br => tablesToSync.some(tbl => tbl.name === br.tableName));
|
|
3658
3663
|
let clientChanges = yield listClientChanges(mutationTables);
|
|
3659
3664
|
throwIfCancelled(cancelToken);
|
|
3660
3665
|
if (doSyncify) {
|
|
@@ -6308,7 +6313,7 @@
|
|
|
6308
6313
|
const syncComplete = new rxjs.Subject();
|
|
6309
6314
|
dexie.cloud = {
|
|
6310
6315
|
// @ts-ignore
|
|
6311
|
-
version: "4.0.
|
|
6316
|
+
version: "4.0.12",
|
|
6312
6317
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6313
6318
|
schema: null,
|
|
6314
6319
|
get currentUserId() {
|
|
@@ -6603,7 +6608,7 @@
|
|
|
6603
6608
|
}
|
|
6604
6609
|
}
|
|
6605
6610
|
// @ts-ignore
|
|
6606
|
-
dexieCloud.version = "4.0.
|
|
6611
|
+
dexieCloud.version = "4.0.12";
|
|
6607
6612
|
Dexie.Cloud = dexieCloud;
|
|
6608
6613
|
|
|
6609
6614
|
// In case the SW lives for a while, let it reuse already opened connections:
|