Packages

@biomejs/biome

2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @biomejs/biome From 2.0.0 to 2.6.9

77 releases in betweennotes for 73

Other targets from 2.0.0Latest2.6.8
  1. 2.0.0yours
  2. 10 releases
  3. 2.1.4breaking
  4. 16 releases
  5. 2.3.9security
  6. 1 release
  7. 2.3.11breaking
  8. 21 releases
  9. 2.5.0security
  10. 14 releases
  11. 2.5.15breaking
  12. 2 releases
  13. 2.6.2breaking
  14. 4 releases
  15. 2.6.7breaking
  16. 1 release
  17. 2.6.9target
9+
changes to make
0
advisories fixed
878+
new
1260+
fixes

Counted from 73 of 77 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking2.6.7
  • Breaking2.6.2
  • Breaking2.5.15
  • Breaking2.3.11
  • Breaking2.1.4
  • Breaking2.1.4
  • Deprecated2.4.0
  • Deprecated2.3.0
  • Deprecated2.2.6

Security

  • noScriptUrl (recommended)

    2.5.0
  • This rule disallows the use of javascript: URLs, which are considered a form of eval and can pose security risks such as XSS vulnerabilities.

    2.3.9

Release by release

  1. 2.6.9

    24 Nov 202628 new · 36 fixes
    • New

      Added the nursery rule noArrayDelete. It reports the delete operator 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 the delete with a splice() call.

    • New

      Added the nursery rule noExpectToHaveBeenCalledOnce, which reports toHaveBeenCalledOnce() and toBeCalledOnce() assertions and suggests toHaveBeenCalledTimes(1) and toBeCalledTimes(1) instead. The rule belongs to the test domain.

    • New

      Added the new nursery rule noImmediateMutation, which reports arrays, objects, Sets, and Maps 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 as spyOn(), fail(), pending(), and the jasmine object. Jest's default test runner doesn't provide them.

  2. 2.6.8

    15 Nov 202626 new · 25 fixes
    • New

      Added the nursery rule noBufferConstructor, which disallows the deprecated Node.js Buffer() and new Buffer() constructors. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead.

    • New

      Added the nursery rule noConfusingArraySplice, which reports splice() and toSpliced() calls that replace a single element or insert at index -1.

    • New

      Added the nursery rule noDynamicRequire, which disallows require() calls whose module name is built at runtime. When the checkDynamicImports option is enabled, the rule also checks import() calls.

    • New

      Added the nursery rule noLateCurrentTargetAccess, which reports reads of event.currentTarget that run after the browser has finished handling the event, when currentTarget is null.

  3. 2.6.7

    Migration needed11 Nov 202624 new · 30 fixes
    • Breaking

      Removed the semantic() query function from the JavaScript plugin API. Pass { semantic: true } to ast() 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, and undefined in 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.

  4. 2.6.6

    6 Nov 202612 new · 6 fixes
    • New

      Added the new nursery rule noArrayMethodsOnArguments. It reports calls to array methods on the arguments object, which isn't an array, so these calls throw a TypeError when the code runs.

    • New

      Added the nursery rule noConstantComparisons, which reports && and || conditions that can never be true, are always true, or contain a check with no effect.

    • New

      Added the nursery rule noErasingOperation, which disallows operations with 0 that always result in zero: multiplying by 0, a bitwise AND with 0, and dividing 0 by a number. The other value in these operations has no effect on the result, which usually means the code has a mistake.

    • New

      Added the nursery rule noNegatedArrayPredicate, which reports negated calls to Array#some() and Array#every() and suggests moving the negation into the callback function.

  5. 2.6.5

    4 Nov 202686 new · 31 fixes
    • New

      Added the new nursery rule noArrayForEach, which reports forEach() calls that can be written as for...of loops. Values known not to be arrays, such as a Map or a Set, are ignored.

    • New

      Added the new nursery rule noAwaitInPromiseMethods, which reports await inside the array passed to Promise.all(), Promise.allSettled(), Promise.any(), or Promise.race(). The await pauses the code before the method is called, so the promises no longer run at the same time.

    • New

      Added the new nursery rule noChainedComparison, which reports comparisons chained like a < b < c or a === b === c. JavaScript compares a with b first, and then compares the resulting true or false with c, so 3 > 2 > 1 is false.

    • New

      Added the nursery rule noDynamicDelete, which disallows using delete with a property name that is computed at runtime. Fixed property names written as string or number literals are allowed.

  6. 2.6.4

    28 Oct 202630 new · 24 fixes
    • New

      Added the new nursery rule noConsoleSpaces, which reports a leading or trailing space in a console.log(), console.debug(), console.info(), console.warn(), or console.error() argument that sits next to another argument. These methods already put a space between arguments, so such a space prints twice.

    • New

      Added the new nursery rule noMagicArrayFlatDepth, which reports number literals other than 1 passed as the depth of Array.prototype.flat() unless a comment inside the parentheses explains them.

    • New

      Added the nursery rule noNull, which reports uses of the null literal and suggests undefined instead. Strict comparisons such as foo === null are allowed.

    • New

      Added the nursery rule noReturnArrayPush, which reports code that uses the return value of push() or unshift(). These methods return the new length of the array, not the added item or the array.

  7. 2.6.3

    24 Oct 202633 new · 17 fixes
    • New

      Added the new nursery rule noArraySortForMinMax, which reports sorting an array only to read its smallest or largest value. Use Math.min() or Math.max() instead.

    • New

      Added the nursery rule noBooleanSortComparator, which reports sort comparators that return a boolean instead of a number. For example, array.sort((a, b) => a > b) never puts the first item before the second, so the array isn't sorted correctly.

    • New

      Added the new nursery rule noEagerArrayMethodsInLoops, which reports .map() and .filter() calls in the header of for...of loops. These calls build a new array that is only used by the loop.

    • New

      Added the nursery rule noNewRequire, which disallows calling require with new, such as new require("app-header").

  8. 2.6.2

    Migration needed21 Oct 2026129 new · 107 fixes
    • Breaking

      Removed the javascript.parser.gritMetavariables option. It was intended for internal use only and had no effect on how Biome parses JavaScript and TypeScript files. Biome now reports it as an unknown key and exits with a configuration error, so remove it from your configuration file.

    • New

      Added a --git flag to biome init. The flag enables Git VCS integration and sets vcs.useIgnoreFile to true in the generated configuration, even when the command runs outside a Git repository.

    • New

      Added the biome migrate stylelint command. It imports a Stylelint configuration and its ignore settings into your Biome configuration, mapping Stylelint rules to their Biome equivalents. Pass --write to apply the changes, and --include-inspired or --include-nursery to migrate additional rules.

    • New

      Added the new assist action useGraphqlSortedDefinitions, which sorts the named definitions of a GraphQL document, such as types, type extensions, directives, fragments, and operations.

17 other lines we could not sort, mostly version bumps
  • useUniqueArgumentNames -> noDuplicateArgumentNames

    2.3.12
  • useUniqueFieldDefinitionNames -> noDuplicateFieldDefinitionNames

    2.3.12
  • useUniqueGraphqlOperationName -> noDuplicateGraphqlOperationName

    2.3.12
  • useUniqueInputFieldNames -> noDuplicateInputFieldNames

    2.3.12
  • useUniqueVariableNames -> noDuplicateVariableNames

    2.3.12
  • The documentation & rule sources for lint/complexity/noBannedTypes have been updated to fix a few oversights.

    2.3.11
  • Hardened union static-member type flattening in edge cases (e.g. unions containing unknown or inferred expression types). This keeps inference conservative and avoids unstable type growth in node = node.parent-style loops.

    2.3.11
  • Improved the diagnostics of nursery rules. Added a message to diagnostics emitted by nursery rules, so that users are aware of nature of nursery rules.

    2.3.11
  • Improved the performance of noRedeclare by eliminating string allocations

    2.3.11
  • Update useVueDefineMacrosOrder to only run on <script setup> blocks.

    2.3.11

259 internal lines (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.