npm / @biomejs/js-api
@biomejs/js-api
What changed in @biomejs/js-api 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
19 new APIs and options3 behavior and defaults2 tooling7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@biomejs/js-api 67 changes
New APIs and options 2
Added GritQL search to the API, with methods to parse patterns, search content, and release patterns. Matches use UTF-8 byte offsets.
Added to the @biomejs/js-api subpath exports to convert UTF-8 byte spans into code-unit spans for slicing content correctly.
Fixes and other changes 5
Wrapped selectors now keep their indentation below a rule comment.
Fixes JSON query binding in Grit.
CSS handling now accounts for irregular whitespace in strings and trivia.
Formatting no longer duplicates comments of spread objects in JSX.
The rule reports only comments that TypeScript treats as directives.
@biomejs/js-api 424 changes
New APIs and options 17
The resolver supports baseUrl in tsconfig.json.
Adds a checkstyle reporter.
Adds parsing support for embedded JSON.
Diagnostics can be emitted from embedded nodes.
Adds force-ignore syntax to files.includes.
Adds a flag to expose formatWithErrors.
Adds an analyzer for HTML.
HTML-like languages receive full experimental support.
Adds the indentScriptAndStyle option for HTML-like files.
Adds auto mode to lineEndings.
Adds an ignore option to the noUnknownAtRule rule.
Adds an rdjson reporter.
Adds React library aliases.
The --skip and --only options can be used with domains.
Formatters are implemented for new Tailwind nodes.
CSS parsing supports Tailwind v4 directives.
Implements the useVueDefineMacrosOrder linter rule.
Behavior and default changes 3
Formatting is applied to embedded content in HTML files.
Lint rules are promoted.
Indentation support is added for Vue and Svelte files.
Tooling 2
Adds React 19.2 support to the analyzer.
Some lint rules are moved to the react domain.
Fixes and other changes 2
Code fixes are applied in snippets.
The CSS parser now accepts declarations and rules inside @utility.