@kedem/okdb 3.1.3 → 3.1.4

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,20 @@ 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.4] - 2026-11-03
8
+
9
+ ### Fixed
10
+
11
+ - **A put on a type with many indexes no longer pays for the indexes it cannot change.** Every write evaluated every index of its
12
+ type, copying the whole document once per indexed field, and every transaction copied all of the type's index definitions to
13
+ check them. A write now skips an index whose fields are absent from both the old and the new document (when the result is
14
+ provably unchanged: a sparse index, or a plain one when both documents exist), field paths are read without copying the
15
+ document, and the per-transaction check compares the definitions in place. Index contents, unique checks and errors are
16
+ unchanged. 138 indexes on a type (mostly sparse, per-facet): ~600 -> ~130 µs per small commit, about the cost with 5 indexes.
17
+ - **`[...env.getKeys(type)]` works in the published package.** The release obfuscator renamed variables that ordered-binary's
18
+ string decoder reads by name, so every JS key decode threw `ReferenceError: position is not defined` (3.0.0-3.1.3; the
19
+ unobfuscated build was fine). The names are kept, and the release smoke test now reads keys with `getKeys`.
20
+
7
21
  ## [3.1.3] - 2026-10-28
8
22
 
9
23
  ### Fixed