dexie-cloud-addon 4.4.9 → 4.4.10

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.9, Tue Mar 31 2026
11
+ * Version 4.4.10, Sat Apr 04 2026
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -6204,8 +6204,20 @@ function createBlobResolveMiddleware(db) {
6204
6204
  * each onNext callback, ensuring cursor.value is always available.
6205
6205
  */
6206
6206
  function createBlobResolvingCursor(cursor, table, blobSavingQueue, db) {
6207
- // Create wrapped cursor using Object.create() - inherits everything
6207
+ // Create wrapped cursor using Object.create() - inherits everything.
6208
+ // Important: .key and .primaryKey must be explicitly overridden with
6209
+ // closure-based getters to prevent native IDBCursorWithValue getters from
6210
+ // being reached through the prototype chain with a wrong `this`, which
6211
+ // throws "Illegal invocation" in Chrome 146+.
6208
6212
  const wrappedCursor = Object.create(cursor, {
6213
+ key: {
6214
+ get() { return cursor.key; },
6215
+ configurable: true,
6216
+ },
6217
+ primaryKey: {
6218
+ get() { return cursor.primaryKey; },
6219
+ configurable: true,
6220
+ },
6209
6221
  value: {
6210
6222
  value: cursor.value,
6211
6223
  enumerable: true,
@@ -8329,7 +8341,7 @@ function dexieCloud(dexie) {
8329
8341
  const downloading$ = createDownloadingState();
8330
8342
  dexie.cloud = {
8331
8343
  // @ts-ignore
8332
- version: "4.4.9",
8344
+ version: "4.4.10",
8333
8345
  options: Object.assign({}, DEFAULT_OPTIONS),
8334
8346
  schema: null,
8335
8347
  get currentUserId() {
@@ -8774,7 +8786,7 @@ function dexieCloud(dexie) {
8774
8786
  }
8775
8787
  }
8776
8788
  // @ts-ignore
8777
- dexieCloud.version = "4.4.9";
8789
+ dexieCloud.version = "4.4.10";
8778
8790
  Dexie.Cloud = dexieCloud;
8779
8791
 
8780
8792
  // In case the SW lives for a while, let it reuse already opened connections: