@loradb/lora-node 0.27.1 → 0.28.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/README.md +8 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -187,8 +187,10 @@ Resuming:
|
|
|
187
187
|
- WAL-backed databases (`databaseName`, `openWalDatabase`) use the WAL's
|
|
188
188
|
commit LSN. `fromLsn` resumes across restarts for as far back as the WAL
|
|
189
189
|
holds history: the feed rebuilds older batches by replaying the WAL from
|
|
190
|
-
an empty graph
|
|
191
|
-
costs a replay.
|
|
190
|
+
an empty graph, a managed checkpoint snapshot or the snapshot the last
|
|
191
|
+
`db.sync()` wrote, so an old resume point costs a replay. For a named
|
|
192
|
+
database `db.sync()` is a checkpoint: it drops the WAL its snapshot
|
|
193
|
+
covers, so history starts at the last `sync()`.
|
|
192
194
|
- An LSN the database no longer retains fails with
|
|
193
195
|
`LORA_CHANGES_TRUNCATED`: start a new feed and re-read current state.
|
|
194
196
|
|
|
@@ -255,7 +257,10 @@ directory other than the current working directory.
|
|
|
255
257
|
The default `syncMode: "groupSync"` writes WAL bytes before `execute()` resolves
|
|
256
258
|
and batches fsyncs for write-heavy workloads. Call `await db.sync()` when you
|
|
257
259
|
need an immediate durability boundary before copying the portable `.loradb`
|
|
258
|
-
archive while the database is still open.
|
|
260
|
+
archive while the database is still open. `sync()` also checkpoints: it
|
|
261
|
+
writes the graph as the archive's base snapshot and drops the WAL that
|
|
262
|
+
snapshot covers, so the archive holds the graph and the writes since the last
|
|
263
|
+
`sync()`, not every write ever made.
|
|
259
264
|
|
|
260
265
|
Node also has a container-backed convenience overload:
|
|
261
266
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loradb/lora-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Node.js / TypeScript bindings for the Lora in-memory graph database",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"packageManager": "yarn@4.5.1",
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"vitest": "^2.1.1"
|
|
97
97
|
},
|
|
98
98
|
"optionalDependencies": {
|
|
99
|
-
"@loradb/lora-node-linux-x64-gnu": "0.
|
|
100
|
-
"@loradb/lora-node-linux-arm64-gnu": "0.
|
|
101
|
-
"@loradb/lora-node-linux-x64-musl": "0.
|
|
102
|
-
"@loradb/lora-node-linux-arm64-musl": "0.
|
|
103
|
-
"@loradb/lora-node-darwin-x64": "0.
|
|
104
|
-
"@loradb/lora-node-darwin-arm64": "0.
|
|
105
|
-
"@loradb/lora-node-win32-x64-msvc": "0.
|
|
99
|
+
"@loradb/lora-node-linux-x64-gnu": "0.28.0",
|
|
100
|
+
"@loradb/lora-node-linux-arm64-gnu": "0.28.0",
|
|
101
|
+
"@loradb/lora-node-linux-x64-musl": "0.28.0",
|
|
102
|
+
"@loradb/lora-node-linux-arm64-musl": "0.28.0",
|
|
103
|
+
"@loradb/lora-node-darwin-x64": "0.28.0",
|
|
104
|
+
"@loradb/lora-node-darwin-arm64": "0.28.0",
|
|
105
|
+
"@loradb/lora-node-win32-x64-msvc": "0.28.0"
|
|
106
106
|
}
|
|
107
107
|
}
|