indexeddbshim 17.4.2 → 17.5.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.
Files changed (34) hide show
  1. package/dist/IDBFactory.d.ts +1 -3
  2. package/dist/IDBFactory.d.ts.map +1 -1
  3. package/dist/indexeddbshim-Key.js +1 -1
  4. package/dist/indexeddbshim-Key.min.js +1 -1
  5. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +15 -2011
  6. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
  7. package/dist/indexeddbshim-UnicodeIdentifiers.js +6 -8
  8. package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
  9. package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
  10. package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
  11. package/dist/indexeddbshim-node.cjs +15 -2011
  12. package/dist/indexeddbshim-node.cjs.map +1 -1
  13. package/dist/indexeddbshim-noninvasive.js +6 -8
  14. package/dist/indexeddbshim-noninvasive.js.map +1 -1
  15. package/dist/indexeddbshim-noninvasive.min.js +2 -2
  16. package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
  17. package/dist/indexeddbshim.js +6 -8
  18. package/dist/indexeddbshim.js.map +1 -1
  19. package/dist/indexeddbshim.min.js +2 -2
  20. package/dist/indexeddbshim.min.js.map +1 -1
  21. package/dist/node-UnicodeIdentifiers.d.ts +2 -2
  22. package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
  23. package/dist/node.d.ts +2 -2
  24. package/dist/node.d.ts.map +1 -1
  25. package/dist/nodeWebSQL.d.ts +1 -1
  26. package/dist/nodeWebSQL.d.ts.map +1 -1
  27. package/package.json +4 -8
  28. package/src/IDBFactory.js +5 -7
  29. package/src/node-UnicodeIdentifiers.js +1 -1
  30. package/src/node.js +1 -1
  31. package/src/nodeWebSQL.js +5 -5
  32. package/dist/nodeSQLiteDatabase.d.ts +0 -64
  33. package/dist/nodeSQLiteDatabase.d.ts.map +0 -1
  34. package/src/nodeSQLiteDatabase.js +0 -314
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v17.4.2 - 8/29/2026 */
1
+ /*! indexeddbshim - v17.5.0 - 8/30/2026 */
2
2
 
3
3
  (function (factory) {
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -11254,9 +11254,7 @@
11254
11254
  /**
11255
11255
  * @typedef {import('websql-configurable/lib/websql/WebSQLDatabase.js').default & {
11256
11256
  * _db: {
11257
- * _db: {
11258
- * close: (errBack: (err: Error) => void) => void
11259
- * }
11257
+ * close: (errBack: (err: Error) => void) => void
11260
11258
  * }
11261
11259
  * }} DatabaseFull
11262
11260
  */
@@ -11334,7 +11332,7 @@
11334
11332
  return;
11335
11333
  }
11336
11334
  dbs.forEach(function (db) {
11337
- var sqliteDB = db._db && db._db._db;
11335
+ var sqliteDB = db._db;
11338
11336
  if (!sqliteDB || !sqliteDB.close) {
11339
11337
  remaining--;
11340
11338
  if (remaining === 0) {
@@ -11376,9 +11374,9 @@
11376
11374
  databaseDeleted();
11377
11375
  return;
11378
11376
  }
11379
- var _sqliteDB = latestSQLiteDBCached._db && latestSQLiteDBCached._db._db;
11377
+ var _sqliteDB = latestSQLiteDBCached._db;
11380
11378
  if (!_sqliteDB || !_sqliteDB.close) {
11381
- console.error('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database');
11379
+ console.error('The `openDatabase` implementation does not have the expected `._db.close` method for closing the database');
11382
11380
  return;
11383
11381
  }
11384
11382
  _sqliteDB.close(
@@ -12183,7 +12181,7 @@
12183
12181
  var calledDbCreateError = false;
12184
12182
  // Snapshotted *now*, synchronously, at call time -- not read later
12185
12183
  // from inside the SQL query's callback below, which runs on a
12186
- // deferred macrotask (see `nodeSQLiteDatabase.js`'s `exec`) and so
12184
+ // deferred macrotask (see `websql-configurable`'s `SQLiteDatabase#exec`) and so
12187
12185
  // could otherwise race against (and lose to) an in-flight upgrade's
12188
12186
  // own commit/abort handler clearing its `pendingVersionChanges`
12189
12187
  // entry in the meantime -- which would make this method incorrectly