dexie 4.4.3 → 4.4.5

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/dexie.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.4.3, Wed May 27 2026
7
+ * Version 4.4.5, Fri Aug 14 2026
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -860,7 +860,7 @@ export interface Dexie {
860
860
  transaction<U>(mode: TransactionMode, table: string | Table, table2: string | Table, scope: (trans: TXWithTables<this>) => PromiseLike<U> | U): PromiseExtended<U>;
861
861
  transaction<U>(mode: TransactionMode, table: string | Table, table2: string | Table, table3: string | Table, scope: (trans: TXWithTables<this>) => PromiseLike<U> | U): PromiseExtended<U>;
862
862
  transaction<U>(mode: TransactionMode, table: string | Table, table2: string | Table, table3: string | Table, table4: string | Table, scope: (trans: TXWithTables<this>) => PromiseLike<U> | U): PromiseExtended<U>;
863
- transaction<U>(mode: TransactionMode, table: string | Table, table2: string | Table, table3: string | Table, table5: string | Table, scope: (trans: TXWithTables<this>) => PromiseLike<U> | U): PromiseExtended<U>;
863
+ transaction<U>(mode: TransactionMode, table: string | Table, table2: string | Table, table3: string | Table, table4: string | Table, table5: string | Table, scope: (trans: TXWithTables<this>) => PromiseLike<U> | U): PromiseExtended<U>;
864
864
  close(closeOptions?: {
865
865
  disableAutoOpen: boolean;
866
866
  }): void;
package/dist/dexie.js CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.4.3, Wed May 27 2026
7
+ * Version 4.4.5, Fri Aug 14 2026
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -1227,7 +1227,7 @@
1227
1227
  }
1228
1228
  }
1229
1229
 
1230
- var DEXIE_VERSION = '4.4.3';
1230
+ var DEXIE_VERSION = '4.4.5';
1231
1231
  var maxString = String.fromCharCode(65535);
1232
1232
  var minKey = -Infinity;
1233
1233
  var INVALID_KEY_ARGUMENT = 'Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.';
@@ -4772,7 +4772,7 @@
4772
4772
  return __assign(__assign({}, down), { table: function (tableName) {
4773
4773
  var table = down.table(tableName);
4774
4774
  var schema = table.schema;
4775
- var indexLookup = {};
4775
+ var indexLookup = Object.create(null);
4776
4776
  var allVirtualIndexes = [];
4777
4777
  function addVirtualIndexes(keyPath, keyTail, lowLevelIndex) {
4778
4778
  var keyPathAlias = getKeyPathAlias(keyPath);
@@ -5799,9 +5799,6 @@
5799
5799
  }
5800
5800
  Object.freeze(result);
5801
5801
  }
5802
- else {
5803
- res.result = deepClone(result);
5804
- }
5805
5802
  return res;
5806
5803
  })
5807
5804
  .catch(function (error) {
@@ -5838,8 +5835,9 @@
5838
5835
  }
5839
5836
  subscribeToCacheEntry(cacheEntry, container, requery, signal);
5840
5837
  return cacheEntry.promise.then(function (res) {
5838
+ var result = applyOptimisticOps(res.result, req, tblCache === null || tblCache === void 0 ? void 0 : tblCache.optimisticOps, downTable, cacheEntry, freezeResults);
5841
5839
  return {
5842
- result: applyOptimisticOps(res.result, req, tblCache === null || tblCache === void 0 ? void 0 : tblCache.optimisticOps, downTable, cacheEntry, freezeResults),
5840
+ result: freezeResults ? result : deepClone(result),
5843
5841
  };
5844
5842
  });
5845
5843
  } });