indexeddbshim 17.5.0 → 17.6.0

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.
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v17.5.0 - 8/30/2026 */
1
+ /*! indexeddbshim - v17.6.0 - 9/1/2026 */
2
2
 
3
3
  (function (factory) {
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -5382,7 +5382,7 @@
5382
5382
  * __requestsFinished: boolean,
5383
5383
  * __transFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
5384
5384
  * __callTransFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
5385
- * __transactionEndCallback: () => void,
5385
+ * __transactionEndCallback: (() => void)|undefined,
5386
5386
  * __transactionFinished: boolean,
5387
5387
  * __completed: boolean,
5388
5388
  * __transFinishedCbFired: boolean,
@@ -5417,6 +5417,19 @@
5417
5417
  * }} IDBTransactionFull
5418
5418
  */
5419
5419
 
5420
+ /**
5421
+ * @param {IDBTransactionFull} tx
5422
+ * @returns {void}
5423
+ */
5424
+ function releaseFinishedTransaction(tx) {
5425
+ var pos = tx.db.__transactions.indexOf(tx);
5426
+ if (pos !== -1) {
5427
+ tx.db.__transactions.splice(pos, 1);
5428
+ }
5429
+ tx.__transactionEndCallback = undefined;
5430
+ tx.__requests = [];
5431
+ }
5432
+
5420
5433
  /**
5421
5434
  * The IndexedDB Transaction.
5422
5435
  * @see https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBTransaction
@@ -5981,6 +5994,7 @@
5981
5994
  } finally {
5982
5995
  activeTransactions.delete(me);
5983
5996
  me.__storeHandles = {};
5997
+ releaseFinishedTransaction(me);
5984
5998
  }
5985
5999
  }
5986
6000
  if (me.mode === 'readwrite' || me.mode === 'readonly') {
@@ -6267,6 +6281,7 @@
6267
6281
  me.dispatchEvent(evt);
6268
6282
  me.__storeHandles = {};
6269
6283
  me.dispatchEvent(createEvent('__abort'));
6284
+ releaseFinishedTransaction(me);
6270
6285
  }, 0);
6271
6286
  return undefined;
6272
6287
  }).catch(function (err) {