@rulvar/store-sqlite 1.62.0 → 1.63.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 +4 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13,7 +13,10 @@ import { randomUUID } from "node:crypto";
|
|
|
13
13
|
* - A1-A4: single-statement inserts are atomic; per-run order is the
|
|
14
14
|
* append order (rowid); payloads are opaque JSON, unknown fields pass
|
|
15
15
|
* through untouched.
|
|
16
|
-
* - Fencing: the epoch is monotonic per
|
|
16
|
+
* - Fencing: the epoch is monotonic per runId for the store's lifetime
|
|
17
|
+
* INCLUDING across deleteRun and recreate (the epochs row is a
|
|
18
|
+
* tombstone deletion preserves, so a zombie lease from a deleted
|
|
19
|
+
* incarnation can never fence green against a recreated run);
|
|
17
20
|
* an append carrying a stale or released lease rejects with the typed
|
|
18
21
|
* LeaseHeldError and the entry never becomes visible. The fence check
|
|
19
22
|
* and the guarded mutation (append's insert, renew's extension,
|
|
@@ -238,7 +241,6 @@ var SqliteStore = class {
|
|
|
238
241
|
this.db.prepare("DELETE FROM entries WHERE run_id = ?").run(runId);
|
|
239
242
|
this.db.prepare("DELETE FROM meta WHERE run_id = ?").run(runId);
|
|
240
243
|
this.db.prepare("DELETE FROM leases WHERE run_id = ?").run(runId);
|
|
241
|
-
this.db.prepare("DELETE FROM epochs WHERE run_id = ?").run(runId);
|
|
242
244
|
}
|
|
243
245
|
async delete(runId, lease) {
|
|
244
246
|
if (lease !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/store-sqlite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"description": "Rulvar SQLite store implementing JournalStore and LeasableStore with a fencing epoch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rulvar/core": "1.
|
|
25
|
+
"@rulvar/core": "1.63.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.20.0",
|
|
29
29
|
"tsdown": "^0.22.3",
|
|
30
30
|
"typescript": "~6.0.3",
|
|
31
|
-
"@rulvar/store-conformance": "1.
|
|
31
|
+
"@rulvar/store-conformance": "1.63.0"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|