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) :
@@ -11267,9 +11267,7 @@
11267
11267
  /**
11268
11268
  * @typedef {import('websql-configurable/lib/websql/WebSQLDatabase.js').default & {
11269
11269
  * _db: {
11270
- * _db: {
11271
- * close: (errBack: (err: Error) => void) => void
11272
- * }
11270
+ * close: (errBack: (err: Error) => void) => void
11273
11271
  * }
11274
11272
  * }} DatabaseFull
11275
11273
  */
@@ -11347,7 +11345,7 @@
11347
11345
  return;
11348
11346
  }
11349
11347
  dbs.forEach(function (db) {
11350
- var sqliteDB = db._db && db._db._db;
11348
+ var sqliteDB = db._db;
11351
11349
  if (!sqliteDB || !sqliteDB.close) {
11352
11350
  remaining--;
11353
11351
  if (remaining === 0) {
@@ -11389,9 +11387,9 @@
11389
11387
  databaseDeleted();
11390
11388
  return;
11391
11389
  }
11392
- var _sqliteDB = latestSQLiteDBCached._db && latestSQLiteDBCached._db._db;
11390
+ var _sqliteDB = latestSQLiteDBCached._db;
11393
11391
  if (!_sqliteDB || !_sqliteDB.close) {
11394
- console.error('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database');
11392
+ console.error('The `openDatabase` implementation does not have the expected `._db.close` method for closing the database');
11395
11393
  return;
11396
11394
  }
11397
11395
  _sqliteDB.close(
@@ -12196,7 +12194,7 @@
12196
12194
  var calledDbCreateError = false;
12197
12195
  // Snapshotted *now*, synchronously, at call time -- not read later
12198
12196
  // from inside the SQL query's callback below, which runs on a
12199
- // deferred macrotask (see `nodeSQLiteDatabase.js`'s `exec`) and so
12197
+ // deferred macrotask (see `websql-configurable`'s `SQLiteDatabase#exec`) and so
12200
12198
  // could otherwise race against (and lose to) an in-flight upgrade's
12201
12199
  // own commit/abort handler clearing its `pendingVersionChanges`
12202
12200
  // entry in the meantime -- which would make this method incorrectly