v0.1.8
Patch Changes
-
#15
f2362f9Thanks @SutuSebastian! - Fix three HIGH-severity bugs found via cross-audit triangulation, plus performance and docs improvements.Bug fixes
- Add missing
onerrorhandler on Bun Worker — prevents silent promise hang when a parse worker crashes - Require JSX return or hook usage for component detection — eliminates false positives (e.g.
FormatCurrency()in.tsxfiles no longer indexed as a component) - Include previously-indexed files in incremental and
--filesmodes — custom-extension files indexed during--fullno longer silently go stale
Performance
- Batch CSS imports instead of inserting one-at-a-time (both full-rebuild and incremental paths)
- Add
Map<string, Statement>cache forbetter-sqlite3run()/query()— avoids ~2,000+ redundantprepare()calls on large projects - Hoist
inner.query()inwrap()to prepare once per call instead of per.get()/.all() - Skip
PRAGMA optimizeoncloseDbfor read-only query paths
Docs
- Fix Wyhash → SHA-256 in architecture.md and SKILL.md (3 locations)
- Correct
symbols.kindvalues (variable→const,type_alias→type) andexports.kindvalues - Clarify
Database.query()caching is Bun-only; Node statement cache via wrapper - Update architecture.md: component heuristic, statement cache,
closeDbreadonly, incremental/--filescustom extensions - Update benchmark.md and golden-queries.md for enriched fixture
Testing
- Enrich
fixtures/minimal/to cover all 10 indexed tables (CSS module,@keyframes,@import, non-component PascalCase export, FIXME marker) - Add 7 new golden scenarios (exports, css_variables, css_classes, css_keyframes, css_imports, markers-all-kinds, components-no-false-positives)
Cleanup
- Remove unused
analyzeDependencies: truefrom CSS parser - Deduplicate
fetchTableStats(was duplicated acrossindex-engine.tsandrun-index.ts) - Remove dead
eslint-disable-next-linedirectives (oxlint doesn’t enforce those rules) - Fix
SCHEMA_VERSIONcomment (said “2”, value is1)
- Add missing