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
|
|
@@ -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.7",
|
|
6314
6321
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6315
6322
|
schema: null,
|
|
6316
6323
|
get currentUserId() {
|
|
@@ -6594,7 +6601,7 @@ function dexieCloud(dexie) {
|
|
|
6594
6601
|
}
|
|
6595
6602
|
}
|
|
6596
6603
|
// @ts-ignore
|
|
6597
|
-
dexieCloud.version = "4.0.
|
|
6604
|
+
dexieCloud.version = "4.0.7";
|
|
6598
6605
|
Dexie.Cloud = dexieCloud;
|
|
6599
6606
|
|
|
6600
6607
|
export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };
|