Skip to content

chore(deps-dev): bump @biomejs/biome from 1.9.4 to 2.1.0 #4147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 8, 2025

Bumps @biomejs/biome from 1.9.4 to 2.1.0.

Release notes

Sourced from @​biomejs/biome's releases.

Biome CLI v2.1.0

2.1.0

Minor Changes

  • #6512 0c0bf82 Thanks @​arendjr! - The rule noFloatingPromises can now detect floating arrays of Promises.

    Invalid examples

    // This gets flagged because the Promises are not handled.
    [1, 2, 3].map(async (x) => x + 1);

    Valid examples

    await Promise.all([1, 2, 3].map(async (x) => x + 1));
  • #6637 6918085 Thanks @​arendjr! - Type inference is now able to handle the sequence operator (,), as well as post- and pre-update operators: ++.

    Example

    let x = 5;
    // We now infer that x++ resolves to a number, while the expression as a whole
    // becomes a Promise:
    x++, new Promise((resolve) => resolve("comma"));

  • #6752 c9eaca4 Thanks @​arendjr! - Fixed #6646: .gitignore files are now picked up even when running Biome from a nested directory, or when the ignore file itself is ignored through files.includes.

  • #6746 90aeead Thanks @​arendjr! - biome migrate no longer enables style rules that were recommended in v1, because that would be undesirable for users upgrading from 2.0.

    Users who are upgrading from Biome 1.x are therefore advised to first upgrade to Biome 2.0, and run the migration, before continuing to Biome 2.1 or later.

  • #6583 d415a3f Thanks @​arendjr! - Added the nursery rule noMisusedPromises.

    It signals Promises in places where conditionals or iterables are expected.

    Invalid examples

    const promise = Promise.resolve("value");
    // Using a Promise as conditional is always truthy:
    if (promise) {

... (truncated)

Changelog

Sourced from @​biomejs/biome's changelog.

2.1.0

Minor Changes

  • #6512 0c0bf82 Thanks @​arendjr! - The rule noFloatingPromises can now detect floating arrays of Promises.

    Invalid examples

    // This gets flagged because the Promises are not handled.
    [1, 2, 3].map(async (x) => x + 1);

    Valid examples

    await Promise.all([1, 2, 3].map(async (x) => x + 1));
  • #6637 6918085 Thanks @​arendjr! - Type inference is now able to handle the sequence operator (,), as well as post- and pre-update operators: ++.

    Example

    let x = 5;
    // We now infer that x++ resolves to a number, while the expression as a whole
    // becomes a Promise:
    x++, new Promise((resolve) => resolve("comma"));

  • #6752 c9eaca4 Thanks @​arendjr! - Fixed #6646: .gitignore files are now picked up even when running Biome from a nested directory, or when the ignore file itself is ignored through files.includes.

  • #6746 90aeead Thanks @​arendjr! - biome migrate no longer enables style rules that were recommended in v1, because that would be undesirable for users upgrading from 2.0.

    Users who are upgrading from Biome 1.x are therefore advised to first upgrade to Biome 2.0, and run the migration, before continuing to Biome 2.1 or later.

  • #6583 d415a3f Thanks @​arendjr! - Added the nursery rule noMisusedPromises.

    It signals Promises in places where conditionals or iterables are expected.

    Invalid examples

    const promise = Promise.resolve("value");
    // Using a Promise as conditional is always truthy:
    if (promise) {
    /* ... */
    }

... (truncated)

Commits
  • dcce75a ci: release (#6582)
  • 1bfb5bb docs: fix typos in CHANGELOG & CONTRIBUTING (#6721)
  • cd4a9bb feat(biome_js_analyse): added new option to rule to ignore unused function pa...
  • 43d871e fix(formatter): trailing commas in json files (#6683)
  • aee9ec7 fix(biome-js-analyze): move no_secrets options inside biome-rules-opt… (#6672)
  • 74d27b9 refactor: share lint rule options (#5543)
  • 1804abf Merge branch 'main' into next
  • 153eda7 feat(biome_js_analyse): added new rule noMagicNumbers (#6562)
  • 392b861 Merge branch 'main' into next
  • a69bbe8 ci: release (#6507)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code labels Jul 8, 2025
@pull-request-size pull-request-size bot added the size/XS PR between 0-9 LOC label Jul 8, 2025
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.4 to 2.1.0.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/[email protected]/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/biomejs/biome-2.1.0 branch from a4fa72e to a30d6a8 Compare July 8, 2025 15:20
Copy link

sonarqubecloud bot commented Jul 8, 2025

@dreamorosi dreamorosi merged commit 12504d5 into main Jul 8, 2025
48 checks passed
@dreamorosi dreamorosi deleted the dependabot/npm_and_yarn/biomejs/biome-2.1.0 branch July 8, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code size/XS PR between 0-9 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant