dexie-cloud-addon 4.1.0-alpha.17 → 4.1.0-alpha.18
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/modern/dexie-cloud-addon.js +6 -7
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +3 -3
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.js +6 -7
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +3 -3
- package/dist/umd/service-worker.min.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.1.0-alpha.
|
|
11
|
+
* Version 4.1.0-alpha.18, Fri Oct 18 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -8093,7 +8093,7 @@ function dexieCloud(dexie) {
|
|
|
8093
8093
|
const syncComplete = new Subject();
|
|
8094
8094
|
dexie.cloud = {
|
|
8095
8095
|
// @ts-ignore
|
|
8096
|
-
version: "4.1.0-alpha.
|
|
8096
|
+
version: "4.1.0-alpha.18",
|
|
8097
8097
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
8098
8098
|
schema: null,
|
|
8099
8099
|
get currentUserId() {
|
|
@@ -8395,7 +8395,7 @@ function dexieCloud(dexie) {
|
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
8397
|
// @ts-ignore
|
|
8398
|
-
dexieCloud.version = "4.1.0-alpha.
|
|
8398
|
+
dexieCloud.version = "4.1.0-alpha.18";
|
|
8399
8399
|
Dexie.Cloud = dexieCloud;
|
|
8400
8400
|
|
|
8401
8401
|
const ydocTriggers = {};
|
|
@@ -8420,8 +8420,8 @@ const createMiddleware = (db) => ({
|
|
|
8420
8420
|
switch (req.type) {
|
|
8421
8421
|
case 'add': {
|
|
8422
8422
|
for (const yUpdateRow of req.values) {
|
|
8423
|
-
if (
|
|
8424
|
-
continue; // A syncer
|
|
8423
|
+
if (yUpdateRow.k == undefined)
|
|
8424
|
+
continue; // A syncer or garbage collection state does not point to a key
|
|
8425
8425
|
const primaryKey = yUpdateRow.k;
|
|
8426
8426
|
const doc = DexieYProvider.getDocCache(db).find(parentTable, primaryKey, prop);
|
|
8427
8427
|
if (doc) {
|
|
@@ -8451,9 +8451,8 @@ const createMiddleware = (db) => ({
|
|
|
8451
8451
|
.then((updates) => {
|
|
8452
8452
|
const keySet = new RangeSet();
|
|
8453
8453
|
for (const { k } of updates) {
|
|
8454
|
-
if (
|
|
8454
|
+
if (k != undefined)
|
|
8455
8455
|
keySet.addKey(k);
|
|
8456
|
-
}
|
|
8457
8456
|
}
|
|
8458
8457
|
for (const interval of keySet) {
|
|
8459
8458
|
enqueueTrigger(db, tblName, interval.from, trigger);
|