Skip to content

Commit c5099f6

Browse files
chore(deps): update dependency @biomejs/biome to v2.1.2 (#260)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | [`2.1.1` -> `2.1.2`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.1.1/2.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/2.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/2.1.1/2.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v2.1.2`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#212) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/[email protected]...@biomejs/[email protected]) ##### Patch Changes - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fix [#&#8203;6485](https://redirect.github.com/biomejs/biome/issues/6485): Handle multiple semicolons correctly in blocks ([#&#8203;6485](https://redirect.github.com/biomejs/biome/issues/6485)) ```css div { box-sizing: border-box; color: red; } ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6762](https://redirect.github.com/biomejs/biome/issues/6762), Biome now knows that `~/.config/zed/settings.json` and `~/.config/Code/User/settings.json` allows comments by default. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Refactor: remove one level of indirection for CSS declarations with semicolon Previously, accessing a declaration from a list required an extra step: ```rust item .as_any_css_declaration_with_semicolon() .as_css_declaration_with_semicolon() ``` Now, it can be done directly with: ```rust item.as_css_declaration_with_semicolon() ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where the Biome Language Server didn't correctly ignore specific files when `vcs.useIgnoreFile` is set to `true`. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Improved the performance of `noImportCycles` by ~30%. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6829](https://redirect.github.com/biomejs/biome/issues/6829): Fixed a false positive reported by `useImportExtensions` when importing a `.js` file that had a matching `.d.ts` file in the same folder. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed an issue where biome was using the wrong string quotes when the classes string has quotes, resulting in invalid code after applying the fix. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Improved [#&#8203;6172](https://redirect.github.com/biomejs/biome/issues/6172): Optimised the way function arguments are stored in Biome's type inference. This led to about 10% performance improvement in `RedisCommander.d.ts` and about 2% on `@next/font` type definitions. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where the Biome Language Server would apply an unsafe fix when using the code action `quickfix.biome`. Now Biome no longer applies an unsafe code fix when using the code action `quickfix.biome`. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6719](https://redirect.github.com/biomejs/biome/issues/6719): The `noInvalidUseBeforeDeclaration` rule covers additional use cases. Examples: ```ts type Bar = { [BAR]: true }; const BAR = "bar"; ``` ```ts interface Bar { child: { grandChild: { [BAR]: typeof BAR; enumFoo: EnumFoo } }; } const BAR = "bar"; enum EnumFoo { BAR = "bar", } ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Biome now considers whether the linter is enabled when figuring out how the project should be scanned. Resolves [#&#8203;6815](https://redirect.github.com/biomejs/biome/issues/6815). - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6165](https://redirect.github.com/biomejs/biome/issues/6165): Fixed false negative in [`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/) rule when checking member usage in classes - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where the root ignore file wasn't correctly loaded during the scanning phase, causing false positives and incorrect expectations among users. Now, when using `vcs.useIgnoreFile`, the **the globs specified in the ignore file from the project root** will have the same semantics as the `files.includes` setting of the root configuration. Refer to the [relative web page](https://biomejs.dev/internals/architecture/#configuring-the-scanner) to understand how they work. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6891](https://redirect.github.com/biomejs/biome/issues/6891): Improved type inference for array indices. **Example:** ```ts const numbers: number[]; numbers[42]; // This now infers to `number | undefined`. ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6796](https://redirect.github.com/biomejs/biome/issues/6796): Fixed a false positive that happened in `noFloatingPromises` when calling functions that were declared as part of `for ... of` syntax inside `async` functions. Instead, the variables declared inside `for ... of` loops are now correctly inferred if the expression being iterated evaluates to an `Array` (support for other iterables will follow later). **Invalid example** ```tsx const txStatements: Array<(tx) => Promise<any>> = []; db.transaction((tx: any) => { for (const stmt of txStatements) { // We correctly flag this resolves to a `Promise`: stmt(tx); } }); ``` **Valid example** ```tsx async function valid(db) { const txStatements: Array<(tx: any) => void> = [(tx) => tx.insert().run()]; db.transaction((tx: any) => { for (const stmt of txStatements) { // We don't flag a false positive here anymore: stmt(tx); } }); } ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Added the rule [`noVueReservedProps`](https://biomejs.dev/linter/rules/no-vue-reserved-props/), resolves [#&#8203;6309](https://redirect.github.com/biomejs/biome/issues/6309). It prevents the use of reserved Vue prop names such as `key` and `ref` which can cause conflicts and unexpected behavior in Vue components. ##### Invalid example ```js import { defineComponent } from "vue"; export default defineComponent({ props: ["ref", "key", "foo"], }); ``` ```vue <script setup> defineProps({ ref: String, key: String, foo: String, }); </script> ``` ##### Valid examples ```js import { defineComponent } from "vue"; export default defineComponent({ props: ["foo"], }); ``` ```vue <script setup> defineProps({ foo: String }); </script> ``` - [#&#8203;6912](https://redirect.github.com/biomejs/biome/pull/6912) [`af7c6c0`](https://redirect.github.com/biomejs/biome/commit/af7c6c03e93984a7757e4d891b72393ffb105bfa) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6904](https://redirect.github.com/biomejs/biome/issues/6904). Now Biome correctly applies the argument `--assist-enabled=false` when running the command `ci` and the command `check`. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Allow multiple identifiers in ::part() pseudo-element selector. ```css ::part(first second) { } ``` - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6510](https://redirect.github.com/biomejs/biome/issues/6510): The scanner no longer shows diagnostics on inaccessible files unless `--verbose` is used. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6837](https://redirect.github.com/biomejs/biome/issues/6837): Fixed regression with multiple consecutive line suppression comments using instances (like `// biome-ignore lint/correctness/useExhaustiveDependencies(depName): reason`). - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed an issue where `textDocument/codeAction` in the LSP could respond with outdated text edits after the workspace watcher observed outdated changes to the file. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - `noFloatingPromises` will no longer suggest to add `await` keyword inside synchronous callbacks nested inside `async` functions. - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6777](https://redirect.github.com/biomejs/biome/issues/6777): Fixed type inference handling of `this` to avoid infinite recursion. Thanks to [@&#8203;sterliakov](https://redirect.github.com/sterliakov) for the thorough investigation! - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6775](https://redirect.github.com/biomejs/biome/issues/6775): `useReadonlyClassProperties` now also captures mutations inside function arguments. Example: ```ts class Counter { private counter: number; count() { console.log(this.counter++); const counterString = `${this.counter++}`; } } ``` - [#&#8203;6723](https://redirect.github.com/biomejs/biome/pull/6723) [`c434f01`](https://redirect.github.com/biomejs/biome/commit/c434f010a78c38f9a4c223545fb424ad478bd82f) Thanks [@&#8203;sterliakov](https://redirect.github.com/sterliakov)! - `useUniqueElementIds` now has an `excludedComponents` option to support elements using `id` prop for reasons not related to DOM element id. Fixed [#&#8203;6722](https://redirect.github.com/biomejs/biome/issues/6722). - [#&#8203;6908](https://redirect.github.com/biomejs/biome/pull/6908) [`d77eaff`](https://redirect.github.com/biomejs/biome/commit/d77eaffb35f17fe17803a48f370922ae43191d36) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where Biome didn't throw any error when `vcs.useIgnoreFile` is set to `true`, and there wasn't any ignore file read. Now Biome correctly throws an error if no ignore files are found. - [#&#8203;6911](https://redirect.github.com/biomejs/biome/pull/6911) [`6d68074`](https://redirect.github.com/biomejs/biome/commit/6d68074bf2a2ca4bc514398a180524394690fafe) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;6838](https://redirect.github.com/biomejs/biome/issues/6838): Reduce resource consumption in the Biome Language Server by using non-recursive filesystem watchers instead of recursive ones. Watchers are responsible for notifying Biome of changes to files in the filesystem. We used to set up a single recursive watcher, but that meant that Biome would receive filesystem notifications for *all* files in your project, even for ignored folders such as `build/` or `dist/` folders. With this patch, we set up non-recursive watchers only for the folders that are relevant to a project. Related to this, we also solved an issue where incoming notifications were incorrectly filtered, causing ignored files to be processed and stored in our module graph anyway. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/dylang/source-map-diff). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent e17a5a7 commit c5099f6

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"yargs-parser": "22.0.0"
3939
},
4040
"devDependencies": {
41-
"@biomejs/biome": "2.1.1",
41+
"@biomejs/biome": "2.1.2",
4242
"@types/yargs-parser": "21.0.3",
4343
"@vitest/coverage-v8": "^3.2.4",
4444
"ts-node": "10.9.2",

pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)