Skip to content

chore(deps): bump @biomejs/js-api from 4.0.0 to 6.1.0 - #1269

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/biomejs/js-api-6.1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/biomejs/js-api-6.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026

Copy link
Copy Markdown
Contributor

Bumps @biomejs/js-api from 4.0.0 to 6.1.0.

Release notes

Sourced from @​biomejs/js-api's releases.

JavaScript APIs v6.1.0

6.1.0

Minor Changes

  • #9940 1aefcb1 Thanks @​regseb! - Added spanInBytesToSpanInCodeUnits helper function in subpath exports of @biomejs/js-api.

    import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/nodejs";
    // Or:
    // import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/bundler";
    // import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/web";
    const [start, end] = spanInBytesToSpanInCodeUnits(
    diagnostic.location.span,
    content
    );
    const text = content.slice(start, end); // Correctly extracts the text

  • #8912 e9785d8 Thanks @​dyc3! - Added GritQL search to @biomejs/js-api. Parse a pattern with parsePattern(), search content with searchContent(), and release the pattern with dropPattern(). Matches are returned as UTF-8 byte offsets; use spanInBytesToSpanInCodeUnits() to convert them before slicing the content.

    const patternId = biome.parsePattern("`console.log($message)`", {
      defaultLanguage: "js",
    });
    const { matches } = biome.searchContent(projectKey, content, {
      filePath: "example.js",
      patternId,
    });
    biome.dropPattern(patternId);

Patch Changes

  • Updated dependencies []:
    • @​biomejs/wasm-bundler@​2.6.0
    • @​biomejs/wasm-nodejs@​2.6.0
    • @​biomejs/wasm-web@​2.6.0

What's Changed

... (truncated)

Changelog

Sourced from @​biomejs/js-api's changelog.

6.1.0

Minor Changes

  • #9940 1aefcb1 Thanks @​regseb! - Added spanInBytesToSpanInCodeUnits helper function in subpath exports of @biomejs/js-api.

    import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/nodejs";
    // Or:
    // import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/bundler";
    // import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/web";
    const [start, end] = spanInBytesToSpanInCodeUnits(
    diagnostic.location.span,
    content
    );
    const text = content.slice(start, end); // Correctly extracts the text

  • #8912 e9785d8 Thanks @​dyc3! - Added GritQL search to @biomejs/js-api. Parse a pattern with parsePattern(), search content with searchContent(), and release the pattern with dropPattern(). Matches are returned as UTF-8 byte offsets; use spanInBytesToSpanInCodeUnits() to convert them before slicing the content.

    const patternId = biome.parsePattern("`console.log($message)`", {
      defaultLanguage: "js",
    });
    const { matches } = biome.searchContent(projectKey, content, {
      filePath: "example.js",
      patternId,
    });
    biome.dropPattern(patternId);

Patch Changes

  • Updated dependencies []:
    • @​biomejs/wasm-bundler@​2.6.0
    • @​biomejs/wasm-nodejs@​2.6.0
    • @​biomejs/wasm-web@​2.6.0

6.0.0

Minor Changes

  • #8944 8cd3da1 Thanks @​ash1day! - Added a new spanInBytesToSpanInCodeUnits helper function to convert byte-based spans from Biome diagnostics to UTF-16 code unit spans.

    Biome internally uses UTF-8 byte offsets for spans, but JavaScript strings use UTF-16 code units. This causes incorrect text extraction when using string.slice() with non-ASCII content. The new helper function correctly handles this conversion, including surrogate pairs and unpaired surrogates.

    import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api";

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​biomejs/js-api since your current version.


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 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)

Bumps [@biomejs/js-api](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/js-api) from 4.0.0 to 6.1.0.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/js-api/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/js-api@6.1.0/packages/@biomejs/js-api)

---
updated-dependencies:
- dependency-name: "@biomejs/js-api"
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 1, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner November 1, 2026 03:44
@dependabot
dependabot Bot requested a review from anasalles47 November 1, 2026 03:44
@changeset-bot

changeset-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 666d723

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@sumup-oss/foundry@1269

commit: 666d723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants