dexie-cloud-addon 4.0.1-beta.41 → 4.0.1-beta.43
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 +11 -4
- 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 +10 -3
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +11 -4
- 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 +10 -3
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.1-beta.
|
|
11
|
+
* Version 4.0.1-beta.43, Sat Jul 01 2023
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -2757,7 +2757,10 @@
|
|
|
2757
2757
|
}));
|
|
2758
2758
|
})));
|
|
2759
2759
|
// Sort by time to get a true order of the operations (between tables)
|
|
2760
|
-
const sorted = flatten(allMutsOnTables).sort((a, b) => a.mut.
|
|
2760
|
+
const sorted = flatten(allMutsOnTables).sort((a, b) => a.mut.txid === b.mut.txid
|
|
2761
|
+
? a.mut.opNo - b.mut.opNo // Within same transaction, sort by opNo
|
|
2762
|
+
: a.mut.ts - b.mut.ts // Different transactions - sort by timestamp when mutation resolved
|
|
2763
|
+
);
|
|
2761
2764
|
const result = [];
|
|
2762
2765
|
let currentEntry = null;
|
|
2763
2766
|
let currentTxid = null;
|
|
@@ -4776,6 +4779,7 @@
|
|
|
4776
4779
|
? {
|
|
4777
4780
|
type: 'insert',
|
|
4778
4781
|
ts,
|
|
4782
|
+
opNo,
|
|
4779
4783
|
keys,
|
|
4780
4784
|
txid,
|
|
4781
4785
|
userId,
|
|
@@ -4786,6 +4790,7 @@
|
|
|
4786
4790
|
// Common changeSpec for all keys
|
|
4787
4791
|
type: 'modify',
|
|
4788
4792
|
ts,
|
|
4793
|
+
opNo,
|
|
4789
4794
|
keys,
|
|
4790
4795
|
criteria: req.criteria,
|
|
4791
4796
|
changeSpec: req.changeSpec,
|
|
@@ -4797,6 +4802,7 @@
|
|
|
4797
4802
|
// One changeSpec per key
|
|
4798
4803
|
type: 'update',
|
|
4799
4804
|
ts,
|
|
4805
|
+
opNo,
|
|
4800
4806
|
keys: updates.keys,
|
|
4801
4807
|
changeSpecs: updates.changeSpecs,
|
|
4802
4808
|
txid,
|
|
@@ -4805,6 +4811,7 @@
|
|
|
4805
4811
|
: {
|
|
4806
4812
|
type: 'upsert',
|
|
4807
4813
|
ts,
|
|
4814
|
+
opNo,
|
|
4808
4815
|
keys,
|
|
4809
4816
|
values,
|
|
4810
4817
|
txid,
|
|
@@ -6089,7 +6096,7 @@
|
|
|
6089
6096
|
});
|
|
6090
6097
|
const syncComplete = new rxjs.Subject();
|
|
6091
6098
|
dexie.cloud = {
|
|
6092
|
-
version: '4.0.1-beta.
|
|
6099
|
+
version: '4.0.1-beta.43',
|
|
6093
6100
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6094
6101
|
schema: null,
|
|
6095
6102
|
get currentUserId() {
|
|
@@ -6350,7 +6357,7 @@
|
|
|
6350
6357
|
});
|
|
6351
6358
|
}
|
|
6352
6359
|
}
|
|
6353
|
-
dexieCloud.version = '4.0.1-beta.
|
|
6360
|
+
dexieCloud.version = '4.0.1-beta.43';
|
|
6354
6361
|
Dexie__default["default"].Cloud = dexieCloud;
|
|
6355
6362
|
|
|
6356
6363
|
exports["default"] = dexieCloud;
|