@tallyui/database 3.12.0 → 3.13.0
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/index.js +2 -1
- package/package.json +2 -2
- package/src/catalogue-reconcile.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -816,7 +816,8 @@ function startCatalogueRunner({
|
|
|
816
816
|
if (docs.length) log({ type: "kept", ...listed(docs.map(keyOf)), ...why });
|
|
817
817
|
};
|
|
818
818
|
if (!current.uninterrupted) log({ type: "kept", count: 0, keys: [], reason: "resumed-pass" });
|
|
819
|
-
else {
|
|
819
|
+
else if (pages === 0) {
|
|
820
|
+
} else {
|
|
820
821
|
const candidates = [];
|
|
821
822
|
const duplicates = [];
|
|
822
823
|
let localCount = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tallyui/database",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "RxDB database factory for Tally UI — accepts pluggable connector schemas",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"rxjs": "7.8.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@tallyui/core": "^3.
|
|
33
|
+
"@tallyui/core": "^3.13.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup",
|
|
@@ -291,7 +291,10 @@ export function startCatalogueRunner<Doc, Cursor = unknown>({
|
|
|
291
291
|
if (docs.length) log({ type: 'kept', ...listed(docs.map(keyOf)), ...why });
|
|
292
292
|
};
|
|
293
293
|
if (!current.uninterrupted) log({ type: 'kept', count: 0, keys: [], reason: 'resumed-pass' });
|
|
294
|
-
|
|
294
|
+
// A pass that yielded no page listed nothing, so it has no candidates: nothing is proven gone (#376).
|
|
295
|
+
else if (pages === 0) {
|
|
296
|
+
// Nothing listed: the gate runs the pass again at the next check (see counted below).
|
|
297
|
+
} else {
|
|
295
298
|
// Local documents the listing never named are candidates; only confirmed ones may go.
|
|
296
299
|
const candidates: Doc[] = [];
|
|
297
300
|
const duplicates: Doc[] = [];
|