unstale

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

@unstale/cli on npm

@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.

    6.1.0release notes

  • Added to the @biomejs/js-api subpath exports to convert UTF-8 byte spans into code-unit spans for slicing content correctly.

    6.0.0release notesrelease notes

Fixes and other changes 5

  • Wrapped selectors now keep their indentation below a rule comment.

    6.1.0release notes

  • Fixes JSON query binding in Grit.

    6.1.0release notes

  • CSS handling now accounts for irregular whitespace in strings and trivia.

    6.1.0release notes

  • Formatting no longer duplicates comments of spread objects in JSX.

    6.1.0release notes

  • The rule reports only comments that TypeScript treats as directives.

    6.1.0release notes

@biomejs/js-api 424 changes

New APIs and options 17

Behavior and default changes 3

Tooling 2

Fixes and other changes 2

  • Code fixes are applied in snippets.

    4.0.0release notes

  • The CSS parser now accepts declarations and rules inside @utility.

    4.0.0release notes