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.
- package/dist/IDBTransaction.d.ts +1 -77
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +17 -2
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +17 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +3 -3
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +17 -2
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +17 -2
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +3 -3
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +17 -2
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +3 -3
- package/dist/indexeddbshim.min.js.map +1 -1
- package/package.json +1 -1
- package/src/IDBTransaction.js +16 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v17.
|
|
1
|
+
/*! indexeddbshim - v17.6.0 - 9/1/2026 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -5395,7 +5395,7 @@
|
|
|
5395
5395
|
* __requestsFinished: boolean,
|
|
5396
5396
|
* __transFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5397
5397
|
* __callTransFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5398
|
-
* __transactionEndCallback: () => void,
|
|
5398
|
+
* __transactionEndCallback: (() => void)|undefined,
|
|
5399
5399
|
* __transactionFinished: boolean,
|
|
5400
5400
|
* __completed: boolean,
|
|
5401
5401
|
* __transFinishedCbFired: boolean,
|
|
@@ -5430,6 +5430,19 @@
|
|
|
5430
5430
|
* }} IDBTransactionFull
|
|
5431
5431
|
*/
|
|
5432
5432
|
|
|
5433
|
+
/**
|
|
5434
|
+
* @param {IDBTransactionFull} tx
|
|
5435
|
+
* @returns {void}
|
|
5436
|
+
*/
|
|
5437
|
+
function releaseFinishedTransaction(tx) {
|
|
5438
|
+
var pos = tx.db.__transactions.indexOf(tx);
|
|
5439
|
+
if (pos !== -1) {
|
|
5440
|
+
tx.db.__transactions.splice(pos, 1);
|
|
5441
|
+
}
|
|
5442
|
+
tx.__transactionEndCallback = undefined;
|
|
5443
|
+
tx.__requests = [];
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5433
5446
|
/**
|
|
5434
5447
|
* The IndexedDB Transaction.
|
|
5435
5448
|
* @see https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBTransaction
|
|
@@ -5994,6 +6007,7 @@
|
|
|
5994
6007
|
} finally {
|
|
5995
6008
|
activeTransactions.delete(me);
|
|
5996
6009
|
me.__storeHandles = {};
|
|
6010
|
+
releaseFinishedTransaction(me);
|
|
5997
6011
|
}
|
|
5998
6012
|
}
|
|
5999
6013
|
if (me.mode === 'readwrite' || me.mode === 'readonly') {
|
|
@@ -6280,6 +6294,7 @@
|
|
|
6280
6294
|
me.dispatchEvent(evt);
|
|
6281
6295
|
me.__storeHandles = {};
|
|
6282
6296
|
me.dispatchEvent(createEvent('__abort'));
|
|
6297
|
+
releaseFinishedTransaction(me);
|
|
6283
6298
|
}, 0);
|
|
6284
6299
|
return undefined;
|
|
6285
6300
|
}).catch(function (err) {
|