dexie 4.4.2 → 4.4.4
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/README.md +8 -0
- package/dist/dexie.d.ts +2 -2
- package/dist/dexie.js +10 -9
- 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 +10 -9
- 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 +10 -9
- 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.4, Tue Jun 16 2026
|
|
8
8
|
*
|
|
9
9
|
* https://dexie.org
|
|
10
10
|
*
|
|
@@ -184,8 +184,11 @@ function setByKeyPath(obj, keyPath, value) {
|
|
|
184
184
|
obj[currentKeyPath] = value;
|
|
185
185
|
else {
|
|
186
186
|
var innerObj = obj[currentKeyPath];
|
|
187
|
-
if (!innerObj || !hasOwn(obj, currentKeyPath))
|
|
187
|
+
if (!innerObj || !hasOwn(obj, currentKeyPath)) {
|
|
188
|
+
if (value === undefined)
|
|
189
|
+
return;
|
|
188
190
|
innerObj = obj[currentKeyPath] = {};
|
|
191
|
+
}
|
|
189
192
|
setByKeyPath(innerObj, remainingKeyPath, value);
|
|
190
193
|
}
|
|
191
194
|
}
|
|
@@ -1218,7 +1221,7 @@ function tempTransaction(db, mode, storeNames, fn) {
|
|
|
1218
1221
|
}
|
|
1219
1222
|
}
|
|
1220
1223
|
|
|
1221
|
-
var DEXIE_VERSION = '4.4.
|
|
1224
|
+
var DEXIE_VERSION = '4.4.4';
|
|
1222
1225
|
var maxString = String.fromCharCode(65535);
|
|
1223
1226
|
var minKey = -Infinity;
|
|
1224
1227
|
var INVALID_KEY_ARGUMENT = 'Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.';
|
|
@@ -2137,7 +2140,7 @@ var Collection = (function () {
|
|
|
2137
2140
|
return cmp(aVal, bVal) * order;
|
|
2138
2141
|
}
|
|
2139
2142
|
return this.toArray(function (a) {
|
|
2140
|
-
return a.sort(sorter);
|
|
2143
|
+
return a.slice().sort(sorter);
|
|
2141
2144
|
}).then(cb);
|
|
2142
2145
|
};
|
|
2143
2146
|
Collection.prototype.toArray = function (cb) {
|
|
@@ -5790,9 +5793,6 @@ var cacheMiddleware = {
|
|
|
5790
5793
|
}
|
|
5791
5794
|
Object.freeze(result);
|
|
5792
5795
|
}
|
|
5793
|
-
else {
|
|
5794
|
-
res.result = deepClone(result);
|
|
5795
|
-
}
|
|
5796
5796
|
return res;
|
|
5797
5797
|
})
|
|
5798
5798
|
.catch(function (error) {
|
|
@@ -5829,8 +5829,9 @@ var cacheMiddleware = {
|
|
|
5829
5829
|
}
|
|
5830
5830
|
subscribeToCacheEntry(cacheEntry, container, requery, signal);
|
|
5831
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);
|
|
5832
5833
|
return {
|
|
5833
|
-
result:
|
|
5834
|
+
result: freezeResults ? result : deepClone(result),
|
|
5834
5835
|
};
|
|
5835
5836
|
});
|
|
5836
5837
|
} });
|
|
@@ -6324,7 +6325,7 @@ function liveQuery(querier) {
|
|
|
6324
6325
|
};
|
|
6325
6326
|
var ret = execute(ctx);
|
|
6326
6327
|
if (!startedListening) {
|
|
6327
|
-
globalEvents(
|
|
6328
|
+
globalEvents.storagemutated.subscribe(mutationListener);
|
|
6328
6329
|
startedListening = true;
|
|
6329
6330
|
}
|
|
6330
6331
|
Promise.resolve(ret).then(function (result) {
|