# biome/release
Biome @biomejs/js-api@6.1.0
JavaScript APIs v6.1.0
importance: mediumfeature
This release introduces new helper functions for byte offset conversion and GritQL search capabilities in the JavaScript API. It also adds support for additional file types and improves CLI tooling.
affected
Developers using the Biome JavaScript API for code analysis and manipulation are affected by the new features and improvements.
action
Update to the latest version to take advantage of new features and improvements.
release_signals
+Added `spanInBytesToSpanInCodeUnits` helper function for converting byte offsets to code units
+Added GritQL search functionality with `parsePattern()`, `searchContent()`, and `dropPattern()` methods
+Added support for Google Apps Script (.gs) files
+Enabled YAML and Markdown embedding
+Added profiler for type inference in the CLI
code_snippet
const patternId = biome.parsePattern("`console.log($message)`", {
defaultLanguage: "js",
});
const { matches } = biome.searchContent(projectKey, content, {
filePath: "example.js",
patternId,
});
biome.dropPattern(patternId);# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.