diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e23fb2291c8..ebee44ac7110 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,10 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b ### JavaScript API +#### Bug fixes + +- Fix [#3881](https://github.com/biomejs/biome/issues/3881), by updating the APIs to use the latest WASM changes. Contributed by @ematipico + ### Linter #### New features diff --git a/packages/@biomejs/js-api/src/index.ts b/packages/@biomejs/js-api/src/index.ts index 3cf806474c4c..edeceeae7c4e 100644 --- a/packages/@biomejs/js-api/src/index.ts +++ b/packages/@biomejs/js-api/src/index.ts @@ -158,6 +158,8 @@ export class Biome { return this.tryCatchWrapper(() => { const biomePath: BiomePath = { path, + was_written: false, + kind: "Handleable", }; this.workspace.openFile({ diff --git a/packages/@biomejs/wasm-nodejs/package.json b/packages/@biomejs/wasm-nodejs/package.json index 8ce2378006a3..9884da9cdad0 100644 --- a/packages/@biomejs/wasm-nodejs/package.json +++ b/packages/@biomejs/wasm-nodejs/package.json @@ -1,15 +1,14 @@ { - "name": "@biomejs/wasm-nodejs", + "name": "@biomejs/biome_wasm", "collaborators": [ "Biome Developers and Contributors" ], "description": "WebAssembly bindings to the Biome workspace API", - "version": "1.8.3", + "version": "1.7.3", "license": "MIT OR Apache-2.0", "repository": { "type": "git", - "url": "git+https://github.com/biomejs/biome.git", - "directory": "packages/@biomejs/biome/wasm-nodejs" + "url": "https://github.com/biomejs/biome" }, "files": [ "biome_wasm_bg.wasm", @@ -18,13 +17,11 @@ ], "main": "biome_wasm.js", "homepage": "https://biomejs.dev/", - "publishConfig": { - "provenance": true - }, "types": "biome_wasm.d.ts", "keywords": [ "parser", "linter", - "formatter" + "formatter", + "wasm" ] } \ No newline at end of file diff --git a/packages/aria-data/generate-aria-data.js b/packages/aria-data/generate-aria-data.js index bb7321727dd6..db33490f71dd 100644 --- a/packages/aria-data/generate-aria-data.js +++ b/packages/aria-data/generate-aria-data.js @@ -1,6 +1,6 @@ #!/usr/bin/node -import * as util from "node:util"; import * as process from "node:process"; +import * as util from "node:util"; import { Browser, BrowserErrorCaptureEnum } from "happy-dom"; function parseAriaSpec(doc, { url, version }) { @@ -174,7 +174,7 @@ function parseNamesFrom(node) { .map((name) => name.trim()) .filter( (name) => - name == "author" || name == "contents" || name == "prohibited", + name === "author" || name === "contents" || name === "prohibited", ) ?? [] ); } @@ -262,7 +262,7 @@ function parseConcept(spacedText, version) { module: module.toLowerCase(), }); } - if (result.length == 0) { + if (result.length === 0) { if (text.includes(" ")) { result.push({ type: "text",