@biomejs/biome
2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @biomejs/biome From 2.6.6 to 2.6.9
3 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 78
- new
- 91
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.6.7
Release by release
- New
Added the nursery rule
noArrayDelete. It reports thedeleteoperator used on array elements, which leaves an empty slot in the array instead of removing the element. The rule needs type information, and offers an unsafe fix that replaces thedeletewith asplice()call. - New
Added the nursery rule
noExpectToHaveBeenCalledOnce, which reportstoHaveBeenCalledOnce()andtoBeCalledOnce()assertions and suggeststoHaveBeenCalledTimes(1)andtoBeCalledTimes(1)instead. The rule belongs to thetestdomain. - New
Added the new nursery rule
noImmediateMutation, which reports arrays, objects,Sets, andMaps that are changed in the statement right after they are created, and variables that are assigned right after they are declared. - New
Added the nursery rule
noJasmineGlobals, which reports Jasmine globals in Jest tests, such asspyOn(),fail(),pending(), and thejasmineobject. Jest's default test runner doesn't provide them.
- New
- New
Added the nursery rule
noBufferConstructor, which disallows the deprecated Node.jsBuffer()andnew Buffer()constructors. UseBuffer.from(),Buffer.alloc(), orBuffer.allocUnsafe()instead. - New
Added the nursery rule
noConfusingArraySplice, which reportssplice()andtoSpliced()calls that replace a single element or insert at index-1. - New
Added the nursery rule
noDynamicRequire, which disallowsrequire()calls whose module name is built at runtime. When thecheckDynamicImportsoption is enabled, the rule also checksimport()calls. - New
Added the nursery rule
noLateCurrentTargetAccess, which reports reads ofevent.currentTargetthat run after the browser has finished handling the event, whencurrentTargetisnull.
- New
- Breaking
Removed the
semantic()query function from the JavaScript plugin API. Pass{ semantic: true }toast()instead to provide the semantic model to a rule. - New
Added the nursery rule
noAsyncPromiseFinally, which reports async functions passed to a promise's.finally()method. If such a function fails, its error replaces the original result or error of the promise. - New
Added the nursery rule
noDuplicateTypeConstituents, which reports types listed more than once in a union or intersection type, andundefinedin the type of an optional parameter. - New
Added the nursery rule
noExcessiveSelectorComplexity, which limits how many IDs, type selectors, attribute selectors, pseudo-classes, universal selectors, compound selectors, and combinators a CSS selector can contain. It can also disallow chosen combinators, pseudo-classes, pseudo-elements, attributes, and attribute operators. The rule does nothing until an option is set.
- Breaking
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.