dexie 4.2.0 → 4.2.1-rc.1

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/dexie.mjs CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * By David Fahlander, david.fahlander@gmail.com
6
6
  *
7
- * Version 4.2.0, Wed Aug 13 2025
7
+ * Version 4.2.1-rc.1, Mon Aug 25 2025
8
8
  *
9
9
  * https://dexie.org
10
10
  *
@@ -1146,7 +1146,7 @@ function tempTransaction(db, mode, storeNames, fn) {
1146
1146
  }
1147
1147
  }
1148
1148
 
1149
- var DEXIE_VERSION = '4.2.0';
1149
+ var DEXIE_VERSION = '4.2.1-rc.1';
1150
1150
  var maxString = String.fromCharCode(65535);
1151
1151
  var minKey = -Infinity;
1152
1152
  var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
@@ -4142,8 +4142,8 @@ function dexieOpen(db) {
4142
4142
  state.vcFired = true;
4143
4143
  db.on("versionchange").fire(ev);
4144
4144
  });
4145
- idbdb.onclose = wrap(function (ev) {
4146
- db.on("close").fire(ev);
4145
+ idbdb.onclose = wrap(function () {
4146
+ db.close({ disableAutoOpen: false });
4147
4147
  });
4148
4148
  if (wasCreated)
4149
4149
  _onDatabaseCreated(db._deps, dbName);