dexie-cloud-addon 4.1.0-alpha.14 → 4.1.0-alpha.16

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.1.0-alpha.14, Fri Oct 18 2024
11
+ * Version 4.1.0-alpha.16, Fri Oct 18 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -8096,7 +8096,7 @@
8096
8096
  const syncComplete = new rxjs.Subject();
8097
8097
  dexie.cloud = {
8098
8098
  // @ts-ignore
8099
- version: "4.1.0-alpha.14",
8099
+ version: "4.1.0-alpha.16",
8100
8100
  options: Object.assign({}, DEFAULT_OPTIONS),
8101
8101
  schema: null,
8102
8102
  get currentUserId() {
@@ -8398,7 +8398,7 @@
8398
8398
  }
8399
8399
  }
8400
8400
  // @ts-ignore
8401
- dexieCloud.version = "4.1.0-alpha.14";
8401
+ dexieCloud.version = "4.1.0-alpha.16";
8402
8402
  Dexie.Cloud = dexieCloud;
8403
8403
 
8404
8404
  const ydocTriggers = {};
@@ -8454,8 +8454,8 @@
8454
8454
  for (const { k } of updates) {
8455
8455
  keySet.addKey(k);
8456
8456
  }
8457
- for (const key of keySet) {
8458
- enqueueTrigger(db, tblName, key, trigger);
8457
+ for (const interval of keySet) {
8458
+ enqueueTrigger(db, tblName, interval.from, trigger);
8459
8459
  }
8460
8460
  });
8461
8461
  }
@@ -8486,7 +8486,7 @@
8486
8486
  const Y = $Y(db);
8487
8487
  const yDoc = new Y.Doc();
8488
8488
  for (const update of updates) {
8489
- Y.applyUpdateV2(yDoc, update);
8489
+ Y.applyUpdateV2(yDoc, update.u);
8490
8490
  }
8491
8491
  try {
8492
8492
  yield trigger(yDoc, parentId);
@@ -8500,9 +8500,9 @@
8500
8500
  function enqueueTrigger(db, updatesTable, parentId, trigger) {
8501
8501
  scheduledTriggers.push({
8502
8502
  db,
8503
+ updatesTable,
8503
8504
  parentId,
8504
8505
  trigger,
8505
- updatesTable
8506
8506
  });
8507
8507
  }
8508
8508
  function onTransactionCommitted() {