@kedem/okdb 3.1.1 → 3.1.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,26 @@ All notable changes to `@kedem/okdb` are documented here. Format loosely follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [SemVer](https://semver.org/).
5
5
  Dates are release dates.
6
6
 
7
+ ## [3.1.3] - 2026-10-28
8
+
9
+ ### Fixed
10
+
11
+ - **A full indexed `db.query` scan is no longer ~45% slower than an unindexed one.** An indexed query is a lazy pinned scan that
12
+ resumes each chunk by result offset, and every skipped row was read, decompressed and key-decoded before being discarded, so
13
+ a scan did quadratic work in chunks. The offset rows are now dropped before hydration when the query has no filter and no
14
+ start/end-key bound (filtered queries are unchanged). On 3,709 ~11 KB documents: ~440 ms -> ~300 ms CPU, equal to the
15
+ unindexed scan.
16
+
17
+ ## [3.1.2] - 2026-10-26
18
+
19
+ ### Fixed
20
+
21
+ - **`env.compact()` / `repair()` no longer refuse a store that has file-backed bodies.** The logical rebuild did not know the
22
+ `~file:*` sub-DBs (`~file:blob_status`, the blob reference counts) and refused with "unclassified sub-DB(s)"; they are now
23
+ copied as durable state. Unknown sub-DBs still refuse before a byte is written.
24
+ - **The compaction swap never leaves `data.mdb` absent.** The old file is hard-linked to `data.mdb.pre-compact`, then the compacted
25
+ file replaces `data.mdb` in one atomic rename (falls back to the two-rename form if the link fails).
26
+
7
27
  ## [3.1.1] - 2026-10-22
8
28
 
9
29
  ### Added