dexie-cloud-addon 4.4.12 → 4.4.13
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 +7 -5
- 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 +7 -5
- 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 +8 -6
- 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 +8 -6
- 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 +4 -4
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.4.
|
|
11
|
+
* Version 4.4.13, Wed May 27 2026
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -2917,14 +2917,16 @@ function applyServerChanges(changes, db) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
break;
|
|
2919
2919
|
case 'update':
|
|
2920
|
-
if (!primaryKey.outbound &&
|
|
2920
|
+
if (!primaryKey.outbound &&
|
|
2921
|
+
primaryKey.keyPath &&
|
|
2922
|
+
typeof primaryKey.keyPath === 'string') {
|
|
2921
2923
|
// The primary key should never be part of an updateSpec — it cannot change
|
|
2922
2924
|
// and is already communicated via the operation's keys array.
|
|
2923
2925
|
// For private singleton IDs (e.g. "#key:userId" on server, "#key" on client),
|
|
2924
2926
|
// the encoded server-side key may leak into the changeSpec via getObjectDiff().
|
|
2925
2927
|
// Strip it here unconditionally as a defensive measure.
|
|
2926
2928
|
for (const changeSpec of mut.changeSpecs) {
|
|
2927
|
-
|
|
2929
|
+
delete changeSpec[primaryKey.keyPath];
|
|
2928
2930
|
}
|
|
2929
2931
|
}
|
|
2930
2932
|
yield bulkUpdate(table, keys, mut.changeSpecs);
|
|
@@ -8490,7 +8492,7 @@ function dexieCloud(dexie) {
|
|
|
8490
8492
|
const downloading$ = createDownloadingState();
|
|
8491
8493
|
dexie.cloud = {
|
|
8492
8494
|
// @ts-ignore
|
|
8493
|
-
version: "4.4.
|
|
8495
|
+
version: "4.4.13",
|
|
8494
8496
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
8495
8497
|
schema: null,
|
|
8496
8498
|
get currentUserId() {
|
|
@@ -8935,7 +8937,7 @@ function dexieCloud(dexie) {
|
|
|
8935
8937
|
}
|
|
8936
8938
|
}
|
|
8937
8939
|
// @ts-ignore
|
|
8938
|
-
dexieCloud.version = "4.4.
|
|
8940
|
+
dexieCloud.version = "4.4.13";
|
|
8939
8941
|
Dexie.Cloud = dexieCloud;
|
|
8940
8942
|
|
|
8941
8943
|
// In case the SW lives for a while, let it reuse already opened connections:
|