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
  *
@@ -4132,14 +4132,16 @@ function applyServerChanges(changes, db) {
4132
4132
  }
4133
4133
  break;
4134
4134
  case 'update':
4135
- if (!primaryKey.outbound && primaryKey.keyPath) {
4135
+ if (!primaryKey.outbound &&
4136
+ primaryKey.keyPath &&
4137
+ typeof primaryKey.keyPath === 'string') {
4136
4138
  // The primary key should never be part of an updateSpec — it cannot change
4137
4139
  // and is already communicated via the operation's keys array.
4138
4140
  // For private singleton IDs (e.g. "#key:userId" on server, "#key" on client),
4139
4141
  // the encoded server-side key may leak into the changeSpec via getObjectDiff().
4140
4142
  // Strip it here unconditionally as a defensive measure.
4141
4143
  for (const changeSpec of mut.changeSpecs) {
4142
- Dexie.delByKeyPath(changeSpec, primaryKey.keyPath);
4144
+ delete changeSpec[primaryKey.keyPath];
4143
4145
  }
4144
4146
  }
4145
4147
  yield bulkUpdate(table, keys, mut.changeSpecs);
@@ -8661,7 +8663,7 @@ function dexieCloud(dexie) {
8661
8663
  const downloading$ = createDownloadingState();
8662
8664
  dexie.cloud = {
8663
8665
  // @ts-ignore
8664
- version: "4.4.12",
8666
+ version: "4.4.13",
8665
8667
  options: Object.assign({}, DEFAULT_OPTIONS),
8666
8668
  schema: null,
8667
8669
  get currentUserId() {
@@ -9106,7 +9108,7 @@ function dexieCloud(dexie) {
9106
9108
  }
9107
9109
  }
9108
9110
  // @ts-ignore
9109
- dexieCloud.version = "4.4.12";
9111
+ dexieCloud.version = "4.4.13";
9110
9112
  Dexie.Cloud = dexieCloud;
9111
9113
 
9112
9114
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };