From 563f3d5fbcfb220bf5c2a386be385a42d2a7069c Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Tue, 8 Jul 2025 22:40:30 +0900 Subject: [PATCH 1/4] ci: correct restore path of the artifact (#6780) --- .changeset/early-pots-win.md | 5 +++++ .github/workflows/release.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/early-pots-win.md diff --git a/.changeset/early-pots-win.md b/.changeset/early-pots-win.md new file mode 100644 index 000000000000..558988744b1e --- /dev/null +++ b/.changeset/early-pots-win.md @@ -0,0 +1,5 @@ +--- +"@biomejs/js-api": patch +--- + +Fixed [#6722](https://github.com/biomejs/biome/issues/6772): Missing `dist/` files are now included in the `@biomejs/js-api` package. The previous release haven't fixed the issue properly. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b099078d70b1..b2520d63f1a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -397,7 +397,7 @@ jobs: uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: pattern: js-api - merge-multiple: true + path: packages/@biomejs/js-api/dist - name: Install Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 From 9bbd34f8d4be3dd4ba4c63746a5b2915e578e339 Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Tue, 8 Jul 2025 22:52:30 +0900 Subject: [PATCH 2/4] fix(wasm): serialize map as a plain object (#6781) --- .changeset/flat-wolves-fall.md | 5 +++++ crates/biome_wasm/src/lib.rs | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/flat-wolves-fall.md diff --git a/.changeset/flat-wolves-fall.md b/.changeset/flat-wolves-fall.md new file mode 100644 index 000000000000..4a1f9cbe9624 --- /dev/null +++ b/.changeset/flat-wolves-fall.md @@ -0,0 +1,5 @@ +--- +"@biomejs/biome": patch +--- + +Fixed the `FileFeaturesResult` interface in the WASM API was defined as a mapped object but the actual value was a `Map` object. diff --git a/crates/biome_wasm/src/lib.rs b/crates/biome_wasm/src/lib.rs index c497198afeaf..c0c8fe2b8762 100644 --- a/crates/biome_wasm/src/lib.rs +++ b/crates/biome_wasm/src/lib.rs @@ -266,8 +266,12 @@ impl Default for Workspace { } } +const SERIALIZER: serde_wasm_bindgen::Serializer = serde_wasm_bindgen::Serializer::new() + .serialize_missing_as_null(true) + .serialize_maps_as_objects(true); + fn to_value( value: &T, ) -> Result { - value.serialize(&serde_wasm_bindgen::Serializer::new().serialize_missing_as_null(true)) + value.serialize(&SERIALIZER) } From eb62b713a800cd315c54d902afe86e90a5655cb8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 22:53:47 +0900 Subject: [PATCH 3/4] ci: release (#6779) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/early-pots-win.md | 5 --- .changeset/flat-wolves-fall.md | 5 --- .changeset/serious-mangos-relate.md | 11 ------- .../@biomejs/backend-jsonrpc/CHANGELOG.md | 2 ++ .../@biomejs/backend-jsonrpc/package.json | 18 +++++------ packages/@biomejs/biome/CHANGELOG.md | 15 +++++++++ packages/@biomejs/biome/package.json | 18 +++++------ .../@biomejs/cli-darwin-arm64/CHANGELOG.md | 2 ++ .../@biomejs/cli-darwin-arm64/package.json | 2 +- packages/@biomejs/cli-darwin-x64/CHANGELOG.md | 2 ++ packages/@biomejs/cli-darwin-x64/package.json | 2 +- .../cli-linux-arm64-musl/CHANGELOG.md | 2 ++ .../cli-linux-arm64-musl/package.json | 2 +- .../@biomejs/cli-linux-arm64/CHANGELOG.md | 2 ++ .../@biomejs/cli-linux-arm64/package.json | 2 +- .../@biomejs/cli-linux-x64-musl/CHANGELOG.md | 2 ++ .../@biomejs/cli-linux-x64-musl/package.json | 2 +- packages/@biomejs/cli-linux-x64/CHANGELOG.md | 2 ++ packages/@biomejs/cli-linux-x64/package.json | 2 +- .../@biomejs/cli-win32-arm64/CHANGELOG.md | 2 ++ .../@biomejs/cli-win32-arm64/package.json | 2 +- packages/@biomejs/cli-win32-x64/CHANGELOG.md | 2 ++ packages/@biomejs/cli-win32-x64/package.json | 2 +- packages/@biomejs/js-api/CHANGELOG.md | 11 +++++++ packages/@biomejs/js-api/package.json | 8 ++--- packages/@biomejs/wasm-bundler/CHANGELOG.md | 2 ++ packages/@biomejs/wasm-bundler/package.json | 2 +- packages/@biomejs/wasm-nodejs/CHANGELOG.md | 2 ++ packages/@biomejs/wasm-nodejs/package.json | 2 +- packages/@biomejs/wasm-web/CHANGELOG.md | 2 ++ packages/@biomejs/wasm-web/package.json | 2 +- pnpm-lock.yaml | 32 +++++++++---------- 32 files changed, 99 insertions(+), 70 deletions(-) delete mode 100644 .changeset/early-pots-win.md delete mode 100644 .changeset/flat-wolves-fall.md delete mode 100644 .changeset/serious-mangos-relate.md diff --git a/.changeset/early-pots-win.md b/.changeset/early-pots-win.md deleted file mode 100644 index 558988744b1e..000000000000 --- a/.changeset/early-pots-win.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@biomejs/js-api": patch ---- - -Fixed [#6722](https://github.com/biomejs/biome/issues/6772): Missing `dist/` files are now included in the `@biomejs/js-api` package. The previous release haven't fixed the issue properly. diff --git a/.changeset/flat-wolves-fall.md b/.changeset/flat-wolves-fall.md deleted file mode 100644 index 4a1f9cbe9624..000000000000 --- a/.changeset/flat-wolves-fall.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@biomejs/biome": patch ---- - -Fixed the `FileFeaturesResult` interface in the WASM API was defined as a mapped object but the actual value was a `Map` object. diff --git a/.changeset/serious-mangos-relate.md b/.changeset/serious-mangos-relate.md deleted file mode 100644 index 1f5b6f08b041..000000000000 --- a/.changeset/serious-mangos-relate.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@biomejs/biome": patch ---- - -Fixed [#6759](https://github.com/biomejs/biome/issues/6759), a false positive for `noFocusedTests` that was triggered by calling any function with the name `fit` on any object. - -The following code will now pass the `noFocusedTests` rule: -```js -import foo from 'foo'; -foo.fit(); -``` diff --git a/packages/@biomejs/backend-jsonrpc/CHANGELOG.md b/packages/@biomejs/backend-jsonrpc/CHANGELOG.md index f8212b26680f..19bb27190403 100644 --- a/packages/@biomejs/backend-jsonrpc/CHANGELOG.md +++ b/packages/@biomejs/backend-jsonrpc/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/backend-jsonrpc +## 2.0.8 + ## 2.0.7 ## 2.0.6 diff --git a/packages/@biomejs/backend-jsonrpc/package.json b/packages/@biomejs/backend-jsonrpc/package.json index 61fa29f88218..191c8c95f627 100644 --- a/packages/@biomejs/backend-jsonrpc/package.json +++ b/packages/@biomejs/backend-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/backend-jsonrpc", - "version": "2.0.7", + "version": "2.0.8", "main": "dist/index.js", "scripts": { "test": "vitest", @@ -45,13 +45,13 @@ "provenance": true }, "optionalDependencies": { - "@biomejs/cli-win32-x64": "2.1.0", - "@biomejs/cli-win32-arm64": "2.1.0", - "@biomejs/cli-darwin-x64": "2.1.0", - "@biomejs/cli-darwin-arm64": "2.1.0", - "@biomejs/cli-linux-x64": "2.1.0", - "@biomejs/cli-linux-arm64": "2.1.0", - "@biomejs/cli-linux-x64-musl": "2.1.0", - "@biomejs/cli-linux-arm64-musl": "2.1.0" + "@biomejs/cli-win32-x64": "2.1.1", + "@biomejs/cli-win32-arm64": "2.1.1", + "@biomejs/cli-darwin-x64": "2.1.1", + "@biomejs/cli-darwin-arm64": "2.1.1", + "@biomejs/cli-linux-x64": "2.1.1", + "@biomejs/cli-linux-arm64": "2.1.1", + "@biomejs/cli-linux-x64-musl": "2.1.1", + "@biomejs/cli-linux-arm64-musl": "2.1.1" } } diff --git a/packages/@biomejs/biome/CHANGELOG.md b/packages/@biomejs/biome/CHANGELOG.md index 3d3c8283387e..1103e1c8865a 100644 --- a/packages/@biomejs/biome/CHANGELOG.md +++ b/packages/@biomejs/biome/CHANGELOG.md @@ -1,5 +1,20 @@ # @biomejs/biome +## 2.1.1 + +### Patch Changes + +- [#6781](https://github.com/biomejs/biome/pull/6781) [`9bbd34f`](https://github.com/biomejs/biome/commit/9bbd34f8d4be3dd4ba4c63746a5b2915e578e339) Thanks [@siketyan](https://github.com/siketyan)! - Fixed the `FileFeaturesResult` interface in the WASM API was defined as a mapped object but the actual value was a `Map` object. + +- [#6761](https://github.com/biomejs/biome/pull/6761) [`cf3c2ce`](https://github.com/biomejs/biome/commit/cf3c2ce3ac28a36eee948ad689794783b0ba23ef) Thanks [@dyc3](https://github.com/dyc3)! - Fixed [#6759](https://github.com/biomejs/biome/issues/6759), a false positive for `noFocusedTests` that was triggered by calling any function with the name `fit` on any object. + + The following code will now pass the `noFocusedTests` rule: + + ```js + import foo from "foo"; + foo.fit(); + ``` + ## 2.1.0 ### Minor Changes diff --git a/packages/@biomejs/biome/package.json b/packages/@biomejs/biome/package.json index ea1dfcdf6a63..3af949ac5d23 100644 --- a/packages/@biomejs/biome/package.json +++ b/packages/@biomejs/biome/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/biome", - "version": "2.1.0", + "version": "2.1.1", "bin": { "biome": "bin/biome" }, @@ -46,13 +46,13 @@ "provenance": true }, "optionalDependencies": { - "@biomejs/cli-win32-x64": "2.1.0", - "@biomejs/cli-win32-arm64": "2.1.0", - "@biomejs/cli-darwin-x64": "2.1.0", - "@biomejs/cli-darwin-arm64": "2.1.0", - "@biomejs/cli-linux-x64": "2.1.0", - "@biomejs/cli-linux-arm64": "2.1.0", - "@biomejs/cli-linux-x64-musl": "2.1.0", - "@biomejs/cli-linux-arm64-musl": "2.1.0" + "@biomejs/cli-win32-x64": "2.1.1", + "@biomejs/cli-win32-arm64": "2.1.1", + "@biomejs/cli-darwin-x64": "2.1.1", + "@biomejs/cli-darwin-arm64": "2.1.1", + "@biomejs/cli-linux-x64": "2.1.1", + "@biomejs/cli-linux-arm64": "2.1.1", + "@biomejs/cli-linux-x64-musl": "2.1.1", + "@biomejs/cli-linux-arm64-musl": "2.1.1" } } diff --git a/packages/@biomejs/cli-darwin-arm64/CHANGELOG.md b/packages/@biomejs/cli-darwin-arm64/CHANGELOG.md index a2be4a0851b6..391a732cea45 100644 --- a/packages/@biomejs/cli-darwin-arm64/CHANGELOG.md +++ b/packages/@biomejs/cli-darwin-arm64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-darwin-arm64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-darwin-arm64/package.json b/packages/@biomejs/cli-darwin-arm64/package.json index 19a1a7d57aee..33f325e52b43 100644 --- a/packages/@biomejs/cli-darwin-arm64/package.json +++ b/packages/@biomejs/cli-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-darwin-arm64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-darwin-x64/CHANGELOG.md b/packages/@biomejs/cli-darwin-x64/CHANGELOG.md index 1f3e42bf7c33..1079fa66a4bc 100644 --- a/packages/@biomejs/cli-darwin-x64/CHANGELOG.md +++ b/packages/@biomejs/cli-darwin-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-darwin-x64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-darwin-x64/package.json b/packages/@biomejs/cli-darwin-x64/package.json index 70940d91c878..fc528352fbc1 100644 --- a/packages/@biomejs/cli-darwin-x64/package.json +++ b/packages/@biomejs/cli-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-darwin-x64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-linux-arm64-musl/CHANGELOG.md b/packages/@biomejs/cli-linux-arm64-musl/CHANGELOG.md index f7d43043b2ed..e8f54eaf911a 100644 --- a/packages/@biomejs/cli-linux-arm64-musl/CHANGELOG.md +++ b/packages/@biomejs/cli-linux-arm64-musl/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-linux-arm64-musl +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-linux-arm64-musl/package.json b/packages/@biomejs/cli-linux-arm64-musl/package.json index cb4682e801ca..92d73c53e7ba 100644 --- a/packages/@biomejs/cli-linux-arm64-musl/package.json +++ b/packages/@biomejs/cli-linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-linux-arm64-musl", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-linux-arm64/CHANGELOG.md b/packages/@biomejs/cli-linux-arm64/CHANGELOG.md index 89cb6fa1c356..dbe4014dd846 100644 --- a/packages/@biomejs/cli-linux-arm64/CHANGELOG.md +++ b/packages/@biomejs/cli-linux-arm64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-linux-arm64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-linux-arm64/package.json b/packages/@biomejs/cli-linux-arm64/package.json index 31c45c606775..04fb1d4d0053 100644 --- a/packages/@biomejs/cli-linux-arm64/package.json +++ b/packages/@biomejs/cli-linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-linux-arm64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-linux-x64-musl/CHANGELOG.md b/packages/@biomejs/cli-linux-x64-musl/CHANGELOG.md index 80c773147c15..38d19967cdb9 100644 --- a/packages/@biomejs/cli-linux-x64-musl/CHANGELOG.md +++ b/packages/@biomejs/cli-linux-x64-musl/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-linux-x64-musl +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-linux-x64-musl/package.json b/packages/@biomejs/cli-linux-x64-musl/package.json index 18776b33a20c..e9ea7444f0de 100644 --- a/packages/@biomejs/cli-linux-x64-musl/package.json +++ b/packages/@biomejs/cli-linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-linux-x64-musl", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-linux-x64/CHANGELOG.md b/packages/@biomejs/cli-linux-x64/CHANGELOG.md index 4e8859fc2792..9c787b24f6a6 100644 --- a/packages/@biomejs/cli-linux-x64/CHANGELOG.md +++ b/packages/@biomejs/cli-linux-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-linux-x64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-linux-x64/package.json b/packages/@biomejs/cli-linux-x64/package.json index 619c01ed9d5b..9021a5dfea84 100644 --- a/packages/@biomejs/cli-linux-x64/package.json +++ b/packages/@biomejs/cli-linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-linux-x64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-win32-arm64/CHANGELOG.md b/packages/@biomejs/cli-win32-arm64/CHANGELOG.md index 32d28e2d3b2f..478d7658f930 100644 --- a/packages/@biomejs/cli-win32-arm64/CHANGELOG.md +++ b/packages/@biomejs/cli-win32-arm64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-win32-arm64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-win32-arm64/package.json b/packages/@biomejs/cli-win32-arm64/package.json index 2c07692d40d1..ae8d9ec4353b 100644 --- a/packages/@biomejs/cli-win32-arm64/package.json +++ b/packages/@biomejs/cli-win32-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-win32-arm64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/cli-win32-x64/CHANGELOG.md b/packages/@biomejs/cli-win32-x64/CHANGELOG.md index a7163fbfb7e7..9eceba6efbaf 100644 --- a/packages/@biomejs/cli-win32-x64/CHANGELOG.md +++ b/packages/@biomejs/cli-win32-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/cli-win32-x64 +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/cli-win32-x64/package.json b/packages/@biomejs/cli-win32-x64/package.json index 78916fe63b80..b1de860addf5 100644 --- a/packages/@biomejs/cli-win32-x64/package.json +++ b/packages/@biomejs/cli-win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/cli-win32-x64", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/js-api/CHANGELOG.md b/packages/@biomejs/js-api/CHANGELOG.md index ed5f94284379..dc5f25c4022a 100644 --- a/packages/@biomejs/js-api/CHANGELOG.md +++ b/packages/@biomejs/js-api/CHANGELOG.md @@ -1,5 +1,16 @@ # @biomejs/js-api +## 2.0.2 + +### Patch Changes + +- [#6780](https://github.com/biomejs/biome/pull/6780) [`563f3d5`](https://github.com/biomejs/biome/commit/563f3d5fbcfb220bf5c2a386be385a42d2a7069c) Thanks [@siketyan](https://github.com/siketyan)! - Fixed [#6722](https://github.com/biomejs/biome/issues/6772): Missing `dist/` files are now included in the `@biomejs/js-api` package. The previous release haven't fixed the issue properly. + +- Updated dependencies []: + - @biomejs/wasm-web@2.1.1 + - @biomejs/wasm-bundler@2.1.1 + - @biomejs/wasm-nodejs@2.1.1 + ## 2.0.1 ### Patch Changes diff --git a/packages/@biomejs/js-api/package.json b/packages/@biomejs/js-api/package.json index 7ad4fb86174a..37a6a9672f9a 100644 --- a/packages/@biomejs/js-api/package.json +++ b/packages/@biomejs/js-api/package.json @@ -1,6 +1,6 @@ { "name": "@biomejs/js-api", - "version": "2.0.1", + "version": "2.0.2", "description": "JavaScript APIs for the Biome package", "scripts": { "tsc": "tsc --noEmit", @@ -73,9 +73,9 @@ "vitest": "3.2.4" }, "peerDependencies": { - "@biomejs/wasm-bundler": "^2.1.0", - "@biomejs/wasm-nodejs": "^2.1.0", - "@biomejs/wasm-web": "^2.1.0" + "@biomejs/wasm-bundler": "^2.1.1", + "@biomejs/wasm-nodejs": "^2.1.1", + "@biomejs/wasm-web": "^2.1.1" }, "peerDependenciesMeta": { "@biomejs/wasm-bundler": { diff --git a/packages/@biomejs/wasm-bundler/CHANGELOG.md b/packages/@biomejs/wasm-bundler/CHANGELOG.md index bde0a20c5d47..589f97391e3c 100644 --- a/packages/@biomejs/wasm-bundler/CHANGELOG.md +++ b/packages/@biomejs/wasm-bundler/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/wasm-bundler +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/wasm-bundler/package.json b/packages/@biomejs/wasm-bundler/package.json index 0f55f20a2eee..c9b437d4957f 100644 --- a/packages/@biomejs/wasm-bundler/package.json +++ b/packages/@biomejs/wasm-bundler/package.json @@ -5,7 +5,7 @@ "Biome Developers and Contributors" ], "description": "WebAssembly bindings to the Biome workspace API", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/wasm-nodejs/CHANGELOG.md b/packages/@biomejs/wasm-nodejs/CHANGELOG.md index bea53183244f..2fee3d290c71 100644 --- a/packages/@biomejs/wasm-nodejs/CHANGELOG.md +++ b/packages/@biomejs/wasm-nodejs/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/wasm-nodejs +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/wasm-nodejs/package.json b/packages/@biomejs/wasm-nodejs/package.json index 603d8ff42ddb..72319ad3c3b2 100644 --- a/packages/@biomejs/wasm-nodejs/package.json +++ b/packages/@biomejs/wasm-nodejs/package.json @@ -4,7 +4,7 @@ "Biome Developers and Contributors" ], "description": "WebAssembly bindings to the Biome workspace API", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/packages/@biomejs/wasm-web/CHANGELOG.md b/packages/@biomejs/wasm-web/CHANGELOG.md index 7d9bbc19a1be..14d13d463cbf 100644 --- a/packages/@biomejs/wasm-web/CHANGELOG.md +++ b/packages/@biomejs/wasm-web/CHANGELOG.md @@ -1,5 +1,7 @@ # @biomejs/wasm-web +## 2.1.1 + ## 2.1.0 ## 2.0.6 diff --git a/packages/@biomejs/wasm-web/package.json b/packages/@biomejs/wasm-web/package.json index 664e09e19ec6..539a2cf32218 100644 --- a/packages/@biomejs/wasm-web/package.json +++ b/packages/@biomejs/wasm-web/package.json @@ -5,7 +5,7 @@ "Biome Developers and Contributors" ], "description": "WebAssembly bindings to the Biome workspace API", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT OR Apache-2.0", "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32df34fd7fbb..2dfc3731947e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,55 +58,55 @@ importers: version: 3.2.4(@types/node@22.16.0)(happy-dom@17.6.3)(jiti@1.21.6) optionalDependencies: '@biomejs/cli-darwin-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-darwin-arm64 '@biomejs/cli-darwin-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-darwin-x64 '@biomejs/cli-linux-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-arm64 '@biomejs/cli-linux-arm64-musl': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-arm64-musl '@biomejs/cli-linux-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-x64 '@biomejs/cli-linux-x64-musl': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-x64-musl '@biomejs/cli-win32-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-win32-arm64 '@biomejs/cli-win32-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-win32-x64 packages/@biomejs/biome: optionalDependencies: '@biomejs/cli-darwin-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-darwin-arm64 '@biomejs/cli-darwin-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-darwin-x64 '@biomejs/cli-linux-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-arm64 '@biomejs/cli-linux-arm64-musl': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-arm64-musl '@biomejs/cli-linux-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-x64 '@biomejs/cli-linux-x64-musl': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-linux-x64-musl '@biomejs/cli-win32-arm64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-win32-arm64 '@biomejs/cli-win32-x64': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../cli-win32-x64 packages/@biomejs/cli-darwin-arm64: {} From cb63f8c69bcf3710d98f494a93c1a72c9afd3316 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 8 Jul 2025 14:54:32 +0100 Subject: [PATCH 4/4] docs: update contribution guide and pull request template (#6664) Co-authored-by: Arend van Beelen jr. --- .github/PULL_REQUEST_TEMPLATE.md | 8 ++++++ CONTRIBUTING.md | 44 ++++++++++++++++++++++---------- 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5367793dc08d..3fb83e763930 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -11,6 +11,14 @@ + + ## Test Plan + +## Docs + + + + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 38e09c80dad4..c8ceaab5a2a9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -365,7 +365,12 @@ We are using [action-semantic-pull-request](https://github.com/amannn/action-sem When creating a new pull request, it's preferable to use a conventional commit-formatted title, as this title will be used as the default commit message on the squashed commit after merging. See the [dedicated section](#commit-messages) about conventional commit format. -Please use the template provided. +When creating a PR, follow the following instructions: +- if you fix a bug (code or documentation), send a PR to the maintenance branch `main`. +- if you add a **new nursery rule**, send a PR to the maintenance branch `main`. Nursery rules don't follow semantic versioning. +- if you promote a rule from nursery, send a PR to the `next` branch. +- if you implement a new feature that affects end users, send a PR to the `next` branch. +- if you implement a new feature that _doesn't affect end users_, send a PR to the maintenance `main` branch. ### Changelog @@ -408,26 +413,29 @@ We are very strict about `major` changes in the `@biomejs/biome` package. To bet - `minor`: new features available to the users. - `major`: a change that breaks a user API. +When choosing `minor` or `major`, make sure your PR targets the `next` branch instead of `main`. + #### Writing a changeset The description of the changeset should follow the these guidelines: +- Our changesets should be about _user-facing_ changes. Internal changes don't + need changesets. - Use the past tense when describing what you did, e.g. "Added new feature", "Fixed edge case". - Use the present tense when describing Biome behavior, e.g. "Biome now supports ...". -- If you fixed a bug, please add the link to the issue, e.g. "Fixed [#4444](https://github.com/biomejs/biome/issues/4444)". +- If you fixed a bug, please start with a link to the issue, e.g. "Fixed [#4444](https://github.com/biomejs/biome/issues/4444): ...". - If you reference a rule, please add the link to the rule on the website, e.g. "Added the rule [`useAwesomeThing`](https://biomejs.dev/linter/rules/use-awesome-thing/)" (even if the website isn't updated yet, the URL is pretty predictable...). - Similarly, if you reference an assist, please add the link to the assist on the website, e.g. "Added the assist [`awesomeAction`](https://biomejs.dev/assist/actions/awesome-action/)". -- Whenever applicable, add a code block to show your new changes. For example, for a new - rule you might want to show an invalid case, for the formatter you might want to show - how the new formatting changes, and so on. -- End each sentence with fullstops. +- Whenever applicable, add a code block to show your new changes. For example, for a new rule you should show an invalid case, while for the formatter you should show how the new formatting changes, and so on. +- End every sentence with a full stop (`.`). If in doubt, take a look at existing or past changesets. ### Documentation -If your PR requires some update on the website (new features, breaking changes, etc.), you should create a new PR once the previous PR is successfully merged. -When adding new features, the documentation should be part of a new PR, which will be merged right before the release. +If your PR involves new features, or changes to existing features, documentation must be updated as well. For rules, assists, and their options, this is done using inline [rustdoc](https://doc.rust-lang.org/rustdoc/how-to-write-documentation.html) documentation. + +When other documentation updates are required, such as new formatter options, a PR should be created against the `next` branch of [our website](https://github.com/biomejs/website/). When doing so, please link the documentation PR from the PR that introduces the feature. ### Versioning @@ -446,24 +454,32 @@ Even minor versions are dedicated to official releases, e.g. `*.6.*`. ### Regular releases -When releasing a new version of a Biome, follow these steps: +When releasing a new **minor** or **major** version of a Biome, follow these steps: + +1. [ ] Create a PR from `next` to `main`. Make sure that code conflicts are fixed and the new features have relative docs PR. + +1. [ ] Merge `next` to `main`. 1. [ ] **Update to the same `version` in all crates** if you publish crates, if applicable. (`Cargo.toml` and `crates/**/Cargo.toml`) 1. [ ] Linter rules have a `version` metadata directly defined in their implementation. - This field is set to `next` for newly created rules. + This field is set to `"next"` for newly created rules. This field must be updated to the new version. -1. [ ] Merge the PR `ci: release`, and the release workflow will run. Once these workflows finish compiling the final artefact, **they need to be approved manually** by a member of the **Core Contributors**. +1. [ ] Merge the `ci: release` PR, and the release workflow will run. Once these workflows finish compiling the final artefact, **they need to be approved manually** by a member of the **Core Contributors**. -1. [ ] In the [website repository](https://github.com/biomejs/website), merge `next` into `main` with a PR. Usually, `next` contains the docs of new rules/actions. As well as the docs of new options. - -1. [ ] Open a new PR in the [website repository](https://github.com/biomejs/website) to update the website with the new version number: +1. [ ] Update the generated documentation in the `next` branch of the [website](https://github.com/biomejs/website): `BIOME_VERSION= pnpm run codegen:all`. This will also copy the configuration schema in the right place. +1. [ ] Merge the website's `next` branch into `main` with a PR. Once merged, the documentation will automatically deploy. + 1. [ ] After releasing a major version number, you may want to update the `update-preview-version.mjs` script to make sure that future previews indicate a version number with a higher patch version than is currently indicated in the `package.json` manifests. +1. [ ] Make sure you create new `next` branches for both the main repository and the website. + +**patch** releases only require a merging of the `ci: release` PR, and should leave the `next` branches untouched. + ## Resources We have several resources explaining about Biome. They will help you understand the project and codebase.