# Biome @biomejs/biome@2.5.2 — Release & Upgrade Intelligence
- **Product:** Biome (https://biomejs.dev)
- **Version:** @biomejs/biome@2.5.2
- **Released:** Jul 01, 2026
- **Impact Score:** 7/10
- **Breaking Changes:** Source flagged
- **Canonical Analysis:** https://changelogs.us/biome/updates/biomejs-biome-2.5.2/

## Executive Summary (TL;DR)
Biome @biomejs/biome@2.5.2. Source highlight: Added the option `ignoreBooleanCoercion` to useNullishCoalescing. When enabled, Biome ignores `||` and `||=` used inside a `Boolean()` call, where coalescing on falsy values is intentional.

## Breaking Changes & Deprecations
- - [#10756](https://github.com/biomejs/biome/pull/10756) [`5ec965a`](https://github.com/biomejs/biome/commit/5ec965a2620dec7cb40aa4946ba1d41408b11fd9) Thanks [@denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatter output for selector lists with `allowWrongLineComments` and `//` comments after a selector comma. Biome now keeps the selector before the line comment inline instead of breaking it across descendant combinators.

## New Features
- feat(lint): add ignoreBooleanCoercion option to useNullishCoalescing
- feat(js/nursery): add noSvelteNoUnnecessaryStateWrap rule
- refactor: feature-gate via langauges and other core features
- feat(css_parser): parse SCSS query feature expressions
- feat(css_parser): parse SCSS variable media features
- feat(css_parser): parse hyphen-led interpolated properties

## Improvements
- perf(cli): don't drop file guard and reuse data

## Bug Fixes
- Added the option `ignoreBooleanCoercion` to useNullishCoalescing. When enabled, Biome ignores `||` and `||=` used inside a `Boolean()` call, where coalescing on falsy values is intentional.
- Added the option `ignorePrimitives` to useNullishCoalescing. When enabled, Biome ignores `||`, `||=`, and ternary expressions whose non-nullish operands are all primitives the option opts out of. Use `true` to ignore all primitives, or an object selecting `string`, `number`, `boolean`, or `bigint`.
- Added the new nursery rule `noSvelteUnnecessaryStateWrap`, which reports unnecessary `$state()` wrapping of classes from `svelte/reactivity` that are already reactive.
- Fixed #10739. Now the rule `useValidAutocomplete` correctly flags the `autoComplete` attribute.
- Fixed #10768. Improved the performance of the Biome Language Server by cancelling certain in-flight operations when there are fast updates.
- Fixed `noMisleadingReturnType` false positive on returns that use a widening type assertion: `"a" as string` is no longer reported as misleading. The rule now also reports a literal-pinning assertion such as `false as false`, matching the existing `as const` behavior.

## Upgrade Command
```bash
npm install --save-dev --save-exact @biomejs/biome@2.5.2
```
