nedb-engine 2.5.0 → 2.5.2

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/index.d.ts CHANGED
@@ -33,4 +33,14 @@ export declare class NedbCore {
33
33
  seq(): bigint
34
34
  /** Flush WAL and MANIFEST — v2 equivalent of v1 flush(). */
35
35
  flush(): void
36
+ /**
37
+ * The tip — the most recent write (latest node) as a JSON string, or null if
38
+ * the database is empty. The cheap "give me the latest write" primitive.
39
+ */
40
+ tip(): string | null
41
+ /**
42
+ * Changefeed: every write AFTER `after_seq` (exclusive), ascending, each as a
43
+ * JSON string. Pass the seq you last saw to stream only new writes.
44
+ */
45
+ since(afterSeq: bigint): Array<string>
36
46
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nedb-engine",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "NEDB — hash-chained, time-traveling, bi-temporal embedded database with Rust native core. SQL, Redis, MongoDB adapters. Causal Write Provenance. RESP2 wire protocol.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",