Skip to content

Commit

Permalink
Merge branch 'main' into feat-3933
Browse files Browse the repository at this point in the history
  • Loading branch information
fireairforce authored Sep 29, 2024
2 parents 0c0be67 + fb3fbb2 commit 2fca630
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/@biomejs/js-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ export class Biome {
return this.tryCatchWrapper(() => {
const biomePath: BiomePath = {
path,
was_written: false,
kind: "Handleable",
};

this.workspace.openFile({
Expand Down
13 changes: 5 additions & 8 deletions packages/@biomejs/wasm-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
]
}
6 changes: 3 additions & 3 deletions packages/aria-data/generate-aria-data.js
Original file line number Diff line number Diff line change
@@ -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 }) {
Expand Down Expand Up @@ -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",
) ?? []
);
}
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2fca630

Please sign in to comment.