nedb-engine-client 3.0.0 → 3.2.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.
Files changed (2) hide show
  1. package/README.md +14 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,11 +11,20 @@ Connect to any running `nedbd` instance from Node.js or the browser. No engine e
11
11
 
12
12
  ---
13
13
 
14
- ## ⚠️ Upgrade your server to nedbd 2.8.6
14
+ ## ⚠️ Upgrade your server to nedbd 3.2.0
15
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.
16
+ This client talks to `nedbd`, so its durability comes from the server. **Upgrade if you are on
17
+ anything earlier than 3.2.0.**
18
+
19
+ **3.2.0 — the embedded engine was pinning its own data directory.** The background flush ticker held
20
+ a strong reference to the database in a loop that never exited, so the handle was never dropped: the
21
+ exclusive data-dir `LOCK` was never released, reopening the same path in the same process failed with
22
+ "locked by another process" naming your *own* pid, and every open leaked a thread and the whole
23
+ database for the life of the process. Live in **2.8.5 through 3.1.0**.
24
+
25
+ **2.8.6 fixed three defects in 2.8.5 and earlier** — a flush that hit a full disk silently discarded
26
+ acknowledged writes, flush failures were unobservable, and `nedb-cli repair` could not actually
27
+ rebuild a damaged id index.
19
28
 
20
29
  If a database ever returned rows and now returns none while `/verify` reports every object healthy,
21
30
  that is the lost-id-index symptom and it is recoverable:
@@ -86,7 +95,7 @@ NEDBD_DAG=1 NEDBD_CAST=1 nedbd --data ./data
86
95
 
87
96
  # Check health
88
97
  curl http://127.0.0.1:7070/health
89
- # {"ok":true,"version":"2.8.0","service":"nedbd","encrypted":true}
98
+ # {"ok":true,"version":"3.2.0","service":"nedbd","encrypted":true}
90
99
  ```
91
100
 
92
101
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nedb-engine-client",
3
- "version": "3.0.0",
3
+ "version": "3.2.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",