nedb-engine-client 2.8.5 → 3.0.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 +22 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,12 +3,32 @@
|
|
|
3
3
|
> TypeScript/JavaScript client for [nedbd](https://github.com/Eth-Interchained/nedb) — the NEDB server daemon.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/nedb-engine-client)
|
|
6
|
-
[](https://github.com/Eth-Interchained/nedb/blob/master/LICENSE)
|
|
7
7
|
|
|
8
8
|
Connect to any running `nedbd` instance from Node.js or the browser. No engine embedded, no native dependencies. Just fetch.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## ⚠️ Upgrade your server to nedbd 2.8.6
|
|
15
|
+
|
|
16
|
+
This client talks to `nedbd`, so its durability comes from the server. **2.8.6 fixes three defects in
|
|
17
|
+
2.8.5 and earlier** — a flush that hit a full disk silently discarded acknowledged writes, flush
|
|
18
|
+
failures were unobservable, and `nedb-cli repair` could not actually rebuild a damaged id index.
|
|
19
|
+
|
|
20
|
+
If a database ever returned rows and now returns none while `/verify` reports every object healthy,
|
|
21
|
+
that is the lost-id-index symptom and it is recoverable:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nedb-cli repair ./data
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Replication consumers paging `/since`: gate historical catch-up on **`seq_index_ready`** from
|
|
28
|
+
`/status`, not on `scan_complete`. `scan_complete` is true on a warm boot precisely because the scan
|
|
29
|
+
was skipped, and before 2.8.6 `since` reported `has_more: false` in that state — which reads as
|
|
30
|
+
"caught up" on a database with every record unread.
|
|
31
|
+
|
|
12
32
|
## Install
|
|
13
33
|
|
|
14
34
|
```bash
|
|
@@ -253,4 +273,4 @@ One HTTP request, multiple ops — best throughput for bulk ingestion.
|
|
|
253
273
|
|
|
254
274
|
---
|
|
255
275
|
|
|
256
|
-
© [INTERCHAINED, LLC](https://interchained.org) ·
|
|
276
|
+
© [INTERCHAINED, LLC](https://interchained.org) · MIT License · Built with [Hyperagent](https://hyperagent.com/refer/J2G6TCD7)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nedb-engine-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "TypeScript/JavaScript client for the nedbd HTTP API (nedb-engine)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"keywords": ["nedb", "nedb-engine", "client", "database", "dag", "bi-temporal", "causal", "nedbd"],
|
|
22
22
|
"author": "Eth-Interchained",
|
|
23
|
-
"license": "
|
|
23
|
+
"license": "MIT",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "git+https://github.com/Eth-Interchained/nedb.git"
|