@kedem/okdb 3.1.3 → 3.1.5

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,30 @@ 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.5] - 2026-11-03
8
+
9
+ ### Fixed
10
+
11
+ - **Writing an embedding vector no longer re-checks every byte of it against the type's field list.** A document stored as a
12
+ Buffer (an embeddings `vec:` row) records one `number` field per byte index, as JS `Object.keys(buffer)` does: ~10,000 for a
13
+ 2560-dimension vector. Every such write walked that whole list again even when it could add nothing. A Buffer no longer than
14
+ the byte indexes already recorded now skips the check; the field schema is unchanged. Re-embedding at 2560 dimensions with a
15
+ zero-cost embedder: ~0.92 -> ~0.48 ms CPU per document (256 dimensions: ~0.23 -> ~0.19).
16
+
17
+ ## [3.1.4] - 2026-11-03
18
+
19
+ ### Fixed
20
+
21
+ - **A put on a type with many indexes no longer pays for the indexes it cannot change.** Every write evaluated every index of its
22
+ type, copying the whole document once per indexed field, and every transaction copied all of the type's index definitions to
23
+ check them. A write now skips an index whose fields are absent from both the old and the new document (when the result is
24
+ provably unchanged: a sparse index, or a plain one when both documents exist), field paths are read without copying the
25
+ document, and the per-transaction check compares the definitions in place. Index contents, unique checks and errors are
26
+ unchanged. 138 indexes on a type (mostly sparse, per-facet): ~600 -> ~130 µs per small commit, about the cost with 5 indexes.
27
+ - **`[...env.getKeys(type)]` works in the published package.** The release obfuscator renamed variables that ordered-binary's
28
+ string decoder reads by name, so every JS key decode threw `ReferenceError: position is not defined` (3.0.0-3.1.3; the
29
+ unobfuscated build was fine). The names are kept, and the release smoke test now reads keys with `getKeys`.
30
+
7
31
  ## [3.1.3] - 2026-10-28
8
32
 
9
33
  ### Fixed