dexie 4.4.3 → 4.4.5
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.d.ts +2 -2
- package/dist/dexie.js +5 -7
- package/dist/dexie.js.map +1 -1
- package/dist/dexie.min.js +1 -1
- package/dist/dexie.min.js.map +1 -1
- package/dist/dexie.mjs +5 -7
- package/dist/dexie.mjs.map +1 -1
- package/dist/modern/dexie.min.mjs +1 -1
- package/dist/modern/dexie.min.mjs.map +1 -1
- package/dist/modern/dexie.mjs +5 -7
- package/dist/modern/dexie.mjs.map +1 -1
- package/package.json +1 -1
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.4.
|
|
7
|
+
* Version 4.4.5, Fri Aug 14 2026
|
|
8
8
|
*
|
|
9
9
|
* https://dexie.org
|
|
10
10
|
*
|
|
@@ -1221,7 +1221,7 @@ function tempTransaction(db, mode, storeNames, fn) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
|
-
var DEXIE_VERSION = '4.4.
|
|
1224
|
+
var DEXIE_VERSION = '4.4.5';
|
|
1225
1225
|
var maxString = String.fromCharCode(65535);
|
|
1226
1226
|
var minKey = -Infinity;
|
|
1227
1227
|
var INVALID_KEY_ARGUMENT = 'Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.';
|
|
@@ -4766,7 +4766,7 @@ function createVirtualIndexMiddleware(down) {
|
|
|
4766
4766
|
return __assign(__assign({}, down), { table: function (tableName) {
|
|
4767
4767
|
var table = down.table(tableName);
|
|
4768
4768
|
var schema = table.schema;
|
|
4769
|
-
var indexLookup =
|
|
4769
|
+
var indexLookup = Object.create(null);
|
|
4770
4770
|
var allVirtualIndexes = [];
|
|
4771
4771
|
function addVirtualIndexes(keyPath, keyTail, lowLevelIndex) {
|
|
4772
4772
|
var keyPathAlias = getKeyPathAlias(keyPath);
|
|
@@ -5793,9 +5793,6 @@ var cacheMiddleware = {
|
|
|
5793
5793
|
}
|
|
5794
5794
|
Object.freeze(result);
|
|
5795
5795
|
}
|
|
5796
|
-
else {
|
|
5797
|
-
res.result = deepClone(result);
|
|
5798
|
-
}
|
|
5799
5796
|
return res;
|
|
5800
5797
|
})
|
|
5801
5798
|
.catch(function (error) {
|
|
@@ -5832,8 +5829,9 @@ var cacheMiddleware = {
|
|
|
5832
5829
|
}
|
|
5833
5830
|
subscribeToCacheEntry(cacheEntry, container, requery, signal);
|
|
5834
5831
|
return cacheEntry.promise.then(function (res) {
|
|
5832
|
+
var result = applyOptimisticOps(res.result, req, tblCache === null || tblCache === void 0 ? void 0 : tblCache.optimisticOps, downTable, cacheEntry, freezeResults);
|
|
5835
5833
|
return {
|
|
5836
|
-
result:
|
|
5834
|
+
result: freezeResults ? result : deepClone(result),
|
|
5837
5835
|
};
|
|
5838
5836
|
});
|
|
5839
5837
|
} });
|