diff --git a/.changeset/audit-findings.md b/.changeset/audit-findings.md deleted file mode 100644 index d4c77660..00000000 --- a/.changeset/audit-findings.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -"@stainless-code/codemap": patch ---- - -Fix three HIGH-severity bugs found via cross-audit triangulation, plus performance and docs improvements. - -**Bug fixes** - -- Add missing `onerror` handler 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 `.tsx` files no longer indexed as a component) -- Include previously-indexed files in incremental and `--files` modes — custom-extension files indexed during `--full` no longer silently go stale - -**Performance** - -- Batch CSS imports instead of inserting one-at-a-time (both full-rebuild and incremental paths) -- Add `Map` cache for `better-sqlite3` `run()`/`query()` — avoids ~2,000+ redundant `prepare()` calls on large projects -- Hoist `inner.query()` in `wrap()` to prepare once per call instead of per `.get()`/`.all()` -- Skip `PRAGMA optimize` on `closeDb` for read-only query paths - -**Docs** - -- Fix Wyhash → SHA-256 in architecture.md and SKILL.md (3 locations) -- Correct `symbols.kind` values (`variable` → `const`, `type_alias` → `type`) and `exports.kind` values -- Clarify `Database.query()` caching is Bun-only; Node statement cache via wrapper -- Update architecture.md: component heuristic, statement cache, `closeDb` readonly, incremental/`--files` custom 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: true` from CSS parser -- Deduplicate `fetchTableStats` (was duplicated across `index-engine.ts` and `run-index.ts`) -- Remove dead `eslint-disable-next-line` directives (oxlint doesn't enforce those rules) -- Fix `SCHEMA_VERSION` comment (said "2", value is `1`) diff --git a/CHANGELOG.md b/CHANGELOG.md index be5e3221..fe31985c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # @stainless-code/codemap +## 0.1.8 + +### Patch Changes + +- [#15](https://github.com/stainless-code/codemap/pull/15) [`f2362f9`](https://github.com/stainless-code/codemap/commit/f2362f9d2b81398a1fa02415fc4a6ed0095d2923) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Fix three HIGH-severity bugs found via cross-audit triangulation, plus performance and docs improvements. + + **Bug fixes** + - Add missing `onerror` handler 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 `.tsx` files no longer indexed as a component) + - Include previously-indexed files in incremental and `--files` modes — custom-extension files indexed during `--full` no longer silently go stale + + **Performance** + - Batch CSS imports instead of inserting one-at-a-time (both full-rebuild and incremental paths) + - Add `Map` cache for `better-sqlite3` `run()`/`query()` — avoids ~2,000+ redundant `prepare()` calls on large projects + - Hoist `inner.query()` in `wrap()` to prepare once per call instead of per `.get()`/`.all()` + - Skip `PRAGMA optimize` on `closeDb` for read-only query paths + + **Docs** + - Fix Wyhash → SHA-256 in architecture.md and SKILL.md (3 locations) + - Correct `symbols.kind` values (`variable` → `const`, `type_alias` → `type`) and `exports.kind` values + - Clarify `Database.query()` caching is Bun-only; Node statement cache via wrapper + - Update architecture.md: component heuristic, statement cache, `closeDb` readonly, incremental/`--files` custom 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: true` from CSS parser + - Deduplicate `fetchTableStats` (was duplicated across `index-engine.ts` and `run-index.ts`) + - Remove dead `eslint-disable-next-line` directives (oxlint doesn't enforce those rules) + - Fix `SCHEMA_VERSION` comment (said "2", value is `1`) + ## 0.1.7 ### Patch Changes diff --git a/package.json b/package.json index 76ae9f16..3849cbe8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stainless-code/codemap", - "version": "0.1.7", + "version": "0.1.8", "description": "Query your codebase — structural SQLite index for AI agents", "keywords": [ "agents",