dexie-cloud-addon 4.0.5 → 4.0.7
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/dexie-cloud-addon.js +10 -3
- 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 +10 -3
- 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/umd/dexie-cloud-addon.js +10 -3
- 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 +10 -3
- 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/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.
|
|
11
|
+
* Version 4.0.7, Sun May 26 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -4708,6 +4708,10 @@ function createImplicitPropSetterMiddleware(db) {
|
|
|
4708
4708
|
}
|
|
4709
4709
|
const trans = req.trans;
|
|
4710
4710
|
if ((_b = (_a = db.cloud.schema) === null || _a === void 0 ? void 0 : _a[tableName]) === null || _b === void 0 ? void 0 : _b.markedForSync) {
|
|
4711
|
+
if (trans.mode === 'versionchange') {
|
|
4712
|
+
// Don't mutate tables marked for sync in versionchange transactions.
|
|
4713
|
+
return Promise.reject(new Dexie.UpgradeError(`Dexie Cloud Addon: Cannot upgrade or populate synced table "${tableName}". See https://dexie.org/cloud/docs/best-practices`));
|
|
4714
|
+
}
|
|
4711
4715
|
if (req.type === 'add' || req.type === 'put') {
|
|
4712
4716
|
if (tableName === 'members') {
|
|
4713
4717
|
for (const member of req.values) {
|
|
@@ -5021,6 +5025,9 @@ function createMutationTrackingMiddleware({ currentUserObservable, db, }) {
|
|
|
5021
5025
|
txid,
|
|
5022
5026
|
userId,
|
|
5023
5027
|
};
|
|
5028
|
+
if ('isAdditionalChunk' in req && req.isAdditionalChunk) {
|
|
5029
|
+
mut.isAdditionalChunk = true;
|
|
5030
|
+
}
|
|
5024
5031
|
return keys.length > 0 || ('criteria' in req && req.criteria)
|
|
5025
5032
|
? mutsTable
|
|
5026
5033
|
.mutate({ type: 'add', trans, values: [mut] }) // Log entry
|
|
@@ -6303,7 +6310,7 @@ function dexieCloud(dexie) {
|
|
|
6303
6310
|
const syncComplete = new Subject();
|
|
6304
6311
|
dexie.cloud = {
|
|
6305
6312
|
// @ts-ignore
|
|
6306
|
-
version: "4.0.
|
|
6313
|
+
version: "4.0.7",
|
|
6307
6314
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6308
6315
|
schema: null,
|
|
6309
6316
|
get currentUserId() {
|
|
@@ -6587,7 +6594,7 @@ function dexieCloud(dexie) {
|
|
|
6587
6594
|
}
|
|
6588
6595
|
}
|
|
6589
6596
|
// @ts-ignore
|
|
6590
|
-
dexieCloud.version = "4.0.
|
|
6597
|
+
dexieCloud.version = "4.0.7";
|
|
6591
6598
|
Dexie.Cloud = dexieCloud;
|
|
6592
6599
|
|
|
6593
6600
|
// In case the SW lives for a while, let it reuse already opened connections:
|