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,
@@ -8500,7 +8512,7 @@ function dexieCloud(dexie) {
8500
8512
  const downloading$ = createDownloadingState();
8501
8513
  dexie.cloud = {
8502
8514
  // @ts-ignore
8503
- version: "4.4.9",
8515
+ version: "4.4.10",
8504
8516
  options: Object.assign({}, DEFAULT_OPTIONS),
8505
8517
  schema: null,
8506
8518
  get currentUserId() {
@@ -8945,7 +8957,7 @@ function dexieCloud(dexie) {
8945
8957
  }
8946
8958
  }
8947
8959
  // @ts-ignore
8948
- dexieCloud.version = "4.4.9";
8960
+ dexieCloud.version = "4.4.10";
8949
8961
  Dexie.Cloud = dexieCloud;
8950
8962
 
8951
8963
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };