npm / zbsearch
zbsearch
What changed in zbsearch 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking20 new APIs and options14 performance5 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initzbsearch 433 changes
Breaking changes 2
string[] values are scored as one field per document.
Splitting keeps letters from other scripts and trims punctuation at token edges.
New APIs and options 18
Adds the ability to freeze the full-text index into compact immutable segments.
Adds selection of only the top-k page of score-ranked full-text search results.
Binary snapshots are introduced as part of large-index scaling.
A sharded runtime is introduced as part of large-index scaling.
Unstored fields are introduced as part of large-index scaling.
Vector quantization is introduced as part of large-index scaling.
Engine primitives needed by a lazily-loaded static index are exposed.
A sharded, lazily-fetched index is added for static sites.
Adds the chunkedLoad method.
A Docusaurus plugin is now available.
IndexedDB persistence is now supported.
Adds the insertMultipleAsync method for asynchronous multiple inserts.
Adds the loadAsync method.
S3 persistence is now supported.
Instances can now be created without a schema.
Slovak language support is now available.
Suggestions APIs are now available.
A Vitepress integration is now available.
Performance 4
An updated document's sort entry is dropped lazily.
Indexing and search were sped up, by up to 2x and 3.6x respectively.
The docs-index payload is trimmed and hydrated off the main thread.
Document insertion reuses the tokenizer normalization cache.
Behavior and default changes 5
The English stopword list now includes “a”.
Repeated tokens are kept by default so BM25 sees term frequencies.
The sharded index is shipped through docs-index and every framework plugin.
The markdown parser for docs integrations has been improved.
Search quality has been improved.
Fixes and other changes 4
Stripping vectors from hits no longer nulls vectors in the documents store.
Node removal no longer re-attaches deleted nodes during rebalancing.
Fixes the English stemmer.
Fixes handling of accented searches in PluginPT15.
zbsearch 317 changes
New APIs and options 2
Adds support for zero-config multilingual instances.
Vector search adds support for an IVF index.
Performance 10
Optimizes hot paths in search, pinning and the vector index.
Indexing is 50% faster.
Levenshtein distance calculation is up to 4x faster.
Overall performance is improved.
The index is up to 11% smaller and uses 8% less memory.
Facets are up to 2x faster.
Geosearch is up to 91x faster.
Number search and filtering are up to 2x faster.
Text search is 28x faster.
Vector search is up to 4.5x faster.
Fixes and other changes 5
Fixes hybrid search scoring and weight handling.
Repairs insertMultiple semantics.
Repairs removeMultiple semantics.
Implements mutable edge deployments on Cloudflare.
Adds support for edge deployments.