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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.4.12, Mon May 25 2026
11
+ * Version 4.4.13, Wed May 27 2026
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -5432,14 +5432,16 @@
5432
5432
  }
5433
5433
  break;
5434
5434
  case 'update':
5435
- if (!primaryKey.outbound && primaryKey.keyPath) {
5435
+ if (!primaryKey.outbound &&
5436
+ primaryKey.keyPath &&
5437
+ typeof primaryKey.keyPath === 'string') {
5436
5438
  // The primary key should never be part of an updateSpec — it cannot change
5437
5439
  // and is already communicated via the operation's keys array.
5438
5440
  // For private singleton IDs (e.g. "#key:userId" on server, "#key" on client),
5439
5441
  // the encoded server-side key may leak into the changeSpec via getObjectDiff().
5440
5442
  // Strip it here unconditionally as a defensive measure.
5441
5443
  for (const changeSpec of mut.changeSpecs) {
5442
- Dexie.delByKeyPath(changeSpec, primaryKey.keyPath);
5444
+ delete changeSpec[primaryKey.keyPath];
5443
5445
  }
5444
5446
  }
5445
5447
  yield bulkUpdate(table, keys, mut.changeSpecs);
@@ -14838,7 +14840,7 @@
14838
14840
  *
14839
14841
  * ==========================================================================
14840
14842
  *
14841
- * Version 4.4.0, Mon May 25 2026
14843
+ * Version 4.4.0, Wed May 27 2026
14842
14844
  *
14843
14845
  * https://dexie.org
14844
14846
  *
@@ -19891,7 +19893,7 @@
19891
19893
  const downloading$ = createDownloadingState();
19892
19894
  dexie.cloud = {
19893
19895
  // @ts-ignore
19894
- version: "4.4.12",
19896
+ version: "4.4.13",
19895
19897
  options: Object.assign({}, DEFAULT_OPTIONS),
19896
19898
  schema: null,
19897
19899
  get currentUserId() {
@@ -20336,7 +20338,7 @@
20336
20338
  }
20337
20339
  }
20338
20340
  // @ts-ignore
20339
- dexieCloud.version = "4.4.12";
20341
+ dexieCloud.version = "4.4.13";
20340
20342
  Dexie.Cloud = dexieCloud;
20341
20343
 
20342
20344
  exports.default = dexieCloud;