@yoch/frozenminisearch 1.0.1 → 1.0.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/cjs/index.cjs +444 -260
- package/dist/es/index.d.ts +16 -1
- package/dist/es/index.js +444 -260
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## v1.0.2 — `@yoch/frozenminisearch`
|
|
6
|
+
|
|
7
|
+
Patch release: lower retained heap when `storeFields` has one field. No API or MSv5 wire-format changes.
|
|
8
|
+
|
|
9
|
+
### Improved
|
|
10
|
+
|
|
11
|
+
- **Single-field `storeFields` at rest** — values live in a dense column instead of one `Record` per document (~75% less retained heap on Divina with `storeFields: ['txt']`; ~1.0 → ~0.3 MB).
|
|
12
|
+
- **Binary save/load** — encode and decode skip intermediate row arrays when the in-memory layout or load `storeFields` hint allows direct wire paths (same bytes on disk).
|
|
13
|
+
- **Posting slice lookups** — scoring flyweight reuses a scratch buffer instead of allocating `{ offset, length }` per lookup.
|
|
14
|
+
|
|
5
15
|
## v1.0.1 — `@yoch/frozenminisearch`
|
|
6
16
|
|
|
7
17
|
Patch release: lower build-time peak memory and migration ergonomics. No API or wire-format changes.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Read-only full-text search for Node.js** — compact frozen indexes, fast binary snapshots, and a **drop-in** search API for frozen workloads: same `search`, `autoSuggest`, scoring, and query options as [MiniSearch](https://github.com/lucaong/minisearch) by [Luca Ongaro](https://github.com/lucaong).
|
|
4
4
|
|
|
5
|
-
> **Current release:** `1.0.
|
|
5
|
+
> **Current release:** `1.0.2` on npm
|
|
6
6
|
|
|
7
7
|
**Design goal:** once an index is built or loaded, migrate with the minimum code change — package name and index construction only; serving code stays the same. No mutable `MiniSearch` class is published here; build indexes with `fromDocuments`, the incremental builder, or migrate from an existing lucaong index via `fromMiniSearchJson`.
|
|
8
8
|
|