dexie-cloud-addon 4.0.8 → 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 +21 -14
- 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 +21 -14
- 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 +21 -14
- 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 +21 -14
- 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 +2 -2
|
@@ -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
|
*
|
|
@@ -3140,7 +3140,7 @@ var numberDef = {
|
|
|
3140
3140
|
},
|
|
3141
3141
|
};
|
|
3142
3142
|
|
|
3143
|
-
const bigIntDef = {
|
|
3143
|
+
const bigIntDef$1 = {
|
|
3144
3144
|
bigint: {
|
|
3145
3145
|
replace: (realVal) => {
|
|
3146
3146
|
return { $t: "bigint", v: "" + realVal };
|
|
@@ -3383,7 +3383,7 @@ var BlobDef = {
|
|
|
3383
3383
|
|
|
3384
3384
|
const builtin = {
|
|
3385
3385
|
...numberDef,
|
|
3386
|
-
...bigIntDef,
|
|
3386
|
+
...bigIntDef$1,
|
|
3387
3387
|
...DateDef,
|
|
3388
3388
|
...SetDef,
|
|
3389
3389
|
...MapDef,
|
|
@@ -3493,7 +3493,7 @@ class FakeBigInt {
|
|
|
3493
3493
|
this.v = value;
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
|
-
const
|
|
3496
|
+
const bigIntDef = hasBigIntSupport
|
|
3497
3497
|
? {}
|
|
3498
3498
|
: {
|
|
3499
3499
|
bigint: {
|
|
@@ -3501,17 +3501,19 @@ const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), (hasBi
|
|
|
3501
3501
|
replace: (fakeBigInt) => {
|
|
3502
3502
|
return Object.assign({ $t: 'bigint' }, fakeBigInt);
|
|
3503
3503
|
},
|
|
3504
|
-
revive: ({ v
|
|
3505
|
-
}
|
|
3506
|
-
}
|
|
3504
|
+
revive: ({ v }) => new FakeBigInt(v),
|
|
3505
|
+
},
|
|
3506
|
+
};
|
|
3507
|
+
const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), bigIntDef), { PropModification: {
|
|
3507
3508
|
test: (val) => val instanceof PropModification,
|
|
3508
3509
|
replace: (propModification) => {
|
|
3509
|
-
return Object.assign({ $t: 'PropModification' }, propModification);
|
|
3510
|
+
return Object.assign({ $t: 'PropModification' }, propModification['@@propmod']);
|
|
3510
3511
|
},
|
|
3511
3512
|
revive: (_a) => {
|
|
3512
|
-
var
|
|
3513
|
-
|
|
3514
|
-
|
|
3513
|
+
var propModSpec = __rest(_a, ["$t"]) // keep the rest
|
|
3514
|
+
;
|
|
3515
|
+
return new PropModification(propModSpec);
|
|
3516
|
+
},
|
|
3515
3517
|
} });
|
|
3516
3518
|
const TSON = TypesonSimplified(builtin, defs);
|
|
3517
3519
|
const BISON = Bison(defs);
|
|
@@ -3750,6 +3752,9 @@ function updateBaseRevs(db, schema, latestRevisions, serverRev) {
|
|
|
3750
3752
|
serverRev,
|
|
3751
3753
|
};
|
|
3752
3754
|
}));
|
|
3755
|
+
// Clean up baseRevs for tables that do not exist anymore or are no longer marked for sync
|
|
3756
|
+
// Resolve #2168 by also cleaning up baseRevs for tables that are not marked for sync
|
|
3757
|
+
yield db.$baseRevs.where('tableName').noneOf(Object.keys(schema).filter((table) => schema[table].markedForSync)).delete();
|
|
3753
3758
|
});
|
|
3754
3759
|
}
|
|
3755
3760
|
|
|
@@ -3955,7 +3960,9 @@ function _sync(db, options, schema, { isInitialSync, cancelToken, justCheckIfNee
|
|
|
3955
3960
|
//
|
|
3956
3961
|
const [clientChangeSet, syncState, baseRevs] = yield db.transaction('r', db.tables, () => __awaiter(this, void 0, void 0, function* () {
|
|
3957
3962
|
const syncState = yield db.getPersistedSyncState();
|
|
3958
|
-
|
|
3963
|
+
let baseRevs = yield db.$baseRevs.toArray();
|
|
3964
|
+
// Resolve #2168
|
|
3965
|
+
baseRevs = baseRevs.filter(br => tablesToSync.some(tbl => tbl.name === br.tableName));
|
|
3959
3966
|
let clientChanges = yield listClientChanges(mutationTables);
|
|
3960
3967
|
throwIfCancelled(cancelToken);
|
|
3961
3968
|
if (doSyncify) {
|
|
@@ -6310,7 +6317,7 @@ function dexieCloud(dexie) {
|
|
|
6310
6317
|
const syncComplete = new Subject();
|
|
6311
6318
|
dexie.cloud = {
|
|
6312
6319
|
// @ts-ignore
|
|
6313
|
-
version: "4.0.
|
|
6320
|
+
version: "4.0.12",
|
|
6314
6321
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6315
6322
|
schema: null,
|
|
6316
6323
|
get currentUserId() {
|
|
@@ -6605,7 +6612,7 @@ function dexieCloud(dexie) {
|
|
|
6605
6612
|
}
|
|
6606
6613
|
}
|
|
6607
6614
|
// @ts-ignore
|
|
6608
|
-
dexieCloud.version = "4.0.
|
|
6615
|
+
dexieCloud.version = "4.0.12";
|
|
6609
6616
|
Dexie.Cloud = dexieCloud;
|
|
6610
6617
|
|
|
6611
6618
|
export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };
|