npm / flatbush
flatbush
What changed in flatbush 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
3 breaking6 performance1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initflatbush 410 changes
Breaking changes 3
Bundle transpiling is dropped; users can still transpile on their end.
The CommonJS entry point is dropped in favor of an ESM-only Node entry point.
Support for IE11 is dropped; users can still handle this on their end.
Performance 6
neighbors search is 12–18% faster for small k and 33% faster for k = 1.
Indexing is 2-3% faster.
Search is up to 9% faster on large queries.
Indexing is 9% faster.
kNN is 5% faster.
Large search queries are much faster, about 20–50% when queries contain many items.
Fixes and other changes 1
Fixes an edge case that could lead to stack overflow by switching to non-recursive quicksort.