dexie 4.4.4 → 4.4.6

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.4, Tue Jun 16 2026
7
+ * Version 4.4.6, Thu Sep 10 2026
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -483,8 +483,9 @@ function hookDeletingChain(f1, f2) {
483
483
  function hookUpdatingChain(f1, f2) {
484
484
  if (f1 === nop)
485
485
  return f2;
486
- return function (modifications) {
486
+ return function () {
487
487
  var res = f1.apply(this, arguments);
488
+ var modifications = arguments[0];
488
489
  extend(modifications, res);
489
490
  var onsuccess = this.onsuccess,
490
491
  onerror = this.onerror;
@@ -1169,7 +1170,7 @@ function tempTransaction(db, mode, storeNames, fn) {
1169
1170
  }
1170
1171
  }
1171
1172
 
1172
- const DEXIE_VERSION = '4.4.4';
1173
+ const DEXIE_VERSION = '4.4.6';
1173
1174
  const maxString = String.fromCharCode(65535);
1174
1175
  const minKey = -Infinity;
1175
1176
  const INVALID_KEY_ARGUMENT = 'Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.';
@@ -4548,7 +4549,7 @@ function createVirtualIndexMiddleware(down) {
4548
4549
  table(tableName) {
4549
4550
  const table = down.table(tableName);
4550
4551
  const { schema } = table;
4551
- const indexLookup = {};
4552
+ const indexLookup = Object.create(null);
4552
4553
  const allVirtualIndexes = [];
4553
4554
  function addVirtualIndexes(keyPath, keyTail, lowLevelIndex) {
4554
4555
  const keyPathAlias = getKeyPathAlias(keyPath);