# What changed in @biomejs/js-api

> 31 changes in @biomejs/js-api 4 to 6 from its official release notes, upgrade guides and advisories: 19 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/@biomejs/js-api/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @biomejs/js-api 6

### New APIs and options

- Added GritQL search to the API, with methods to parse patterns, search content, and release patterns. Matches use UTF-8 byte offsets. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)
- Added to the @biomejs/js-api subpath exports to convert UTF-8 byte spans into code-unit spans for slicing content correctly. (6.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0), [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.0.0)

### Fixes and other changes

- Wrapped selectors now keep their indentation below a rule comment. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)
- Fixes JSON query binding in Grit. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)
- CSS handling now accounts for irregular whitespace in strings and trivia. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)
- Formatting no longer duplicates comments of spread objects in JSX. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)
- The rule reports only comments that TypeScript treats as directives. (6.1.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%406.1.0)

## @biomejs/js-api 4

### New APIs and options

- The resolver supports baseUrl in tsconfig.json. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds a checkstyle reporter. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds parsing support for embedded JSON. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Diagnostics can be emitted from embedded nodes. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds force-ignore syntax to files.includes. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds a flag to expose formatWithErrors. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds an analyzer for HTML. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- HTML-like languages receive full experimental support. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds the indentScriptAndStyle option for HTML-like files. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds auto mode to lineEndings. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds an ignore option to the noUnknownAtRule rule. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds an rdjson reporter. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Adds React library aliases. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- The --skip and --only options can be used with domains. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Formatters are implemented for new Tailwind nodes. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- CSS parsing supports Tailwind v4 directives. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Implements the useVueDefineMacrosOrder linter rule. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)

### Behavior and default changes

- Formatting is applied to embedded content in HTML files. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Lint rules are promoted. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Indentation support is added for Vue and Svelte files. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)

### Tooling

- Adds React 19.2 support to the analyzer. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- Some lint rules are moved to the react domain. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)

### Fixes and other changes

- Code fixes are applied in snippets. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
- The CSS parser now accepts declarations and rules inside @utility. (4.0.0) — [release notes](https://github.com/biomejs/biome/releases/tag/%40biomejs/js-api%404.0.0)
