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.
@@ -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
  *
@@ -1169,7 +1169,7 @@ function tempTransaction(db, mode, storeNames, fn) {
1169
1169
  }
1170
1170
  }
1171
1171
 
1172
- const DEXIE_VERSION = '4.4.3';
1172
+ const DEXIE_VERSION = '4.4.5';
1173
1173
  const maxString = String.fromCharCode(65535);
1174
1174
  const minKey = -Infinity;
1175
1175
  const INVALID_KEY_ARGUMENT = 'Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.';
@@ -4548,7 +4548,7 @@ function createVirtualIndexMiddleware(down) {
4548
4548
  table(tableName) {
4549
4549
  const table = down.table(tableName);
4550
4550
  const { schema } = table;
4551
- const indexLookup = {};
4551
+ const indexLookup = Object.create(null);
4552
4552
  const allVirtualIndexes = [];
4553
4553
  function addVirtualIndexes(keyPath, keyTail, lowLevelIndex) {
4554
4554
  const keyPathAlias = getKeyPathAlias(keyPath);
@@ -5593,9 +5593,6 @@ const cacheMiddleware = {
5593
5593
  }
5594
5594
  Object.freeze(result);
5595
5595
  }
5596
- else {
5597
- res.result = deepClone(result);
5598
- }
5599
5596
  return res;
5600
5597
  })
5601
5598
  .catch((error) => {
@@ -5632,8 +5629,9 @@ const cacheMiddleware = {
5632
5629
  }
5633
5630
  subscribeToCacheEntry(cacheEntry, container, requery, signal);
5634
5631
  return cacheEntry.promise.then((res) => {
5632
+ const result = applyOptimisticOps(res.result, req, tblCache?.optimisticOps, downTable, cacheEntry, freezeResults);
5635
5633
  return {
5636
- result: applyOptimisticOps(res.result, req, tblCache?.optimisticOps, downTable, cacheEntry, freezeResults),
5634
+ result: freezeResults ? result : deepClone(result),
5637
5635
  };
5638
5636
  });
5639
5637
  },