Skip to content

Commit 3749d92

Browse files
chore(deps): update dependency @biomejs/biome to v2.2.4 (#238)
This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | devDependencies | patch | [`2.2.2` -> `2.2.4`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.2.2/2.2.4) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/biomejs/biome/badge)](https://securityscorecards.dev/viewer/?uri=github.com/biomejs/biome) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v2.2.4`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#224) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.2.3...@biomejs/biome@2.2.4) ##### Patch Changes - [#&#8203;7453](https://redirect.github.com/biomejs/biome/pull/7453) [`aa8cea3`](https://redirect.github.com/biomejs/biome/commit/aa8cea31af675699e18988fe79242ae5d5215af1) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;7242](https://redirect.github.com/biomejs/biome/issues/7242): Aliases specified in `package.json`'s `imports` section now support having multiple targets as part of an array. - [#&#8203;7454](https://redirect.github.com/biomejs/biome/pull/7454) [`ac17183`](https://redirect.github.com/biomejs/biome/commit/ac171839a31600225e3b759470eaa026746e9cf4) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Greatly improved performance of `noImportCycles` by eliminating allocations. In one repository, the total runtime of Biome with only `noImportCycles` enabled went from \~23s down to \~4s. - [#&#8203;7447](https://redirect.github.com/biomejs/biome/pull/7447) [`7139aad`](https://redirect.github.com/biomejs/biome/commit/7139aad75b6e8045be6eb09425fb82eb035fb704) Thanks [@&#8203;rriski](https://redirect.github.com/rriski)! - Fixes [#&#8203;7446](https://redirect.github.com/biomejs/biome/issues/7446). The GritQL `$...` spread metavariable now correctly matches members in object literals, aligning its behavior with arrays and function calls. - [#&#8203;6710](https://redirect.github.com/biomejs/biome/pull/6710) [`98cf9af`](https://redirect.github.com/biomejs/biome/commit/98cf9af0a4e02434983899ce49d92209a6abab02) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;4723](https://redirect.github.com/biomejs/biome/issues/7423): Type inference now recognises *index signatures* and their accesses when they are being indexed as a string. ##### Example ```ts type BagOfPromises = { // This is an index signature definition. It declares that instances of type // `BagOfPromises` can be indexed using arbitrary strings. [property: string]: Promise<void>; }; let bag: BagOfPromises = {}; // Because `bag.iAmAPromise` is equivalent to `bag["iAmAPromise"]`, this is // considered an access to the string index, and a Promise is expected. bag.iAmAPromise; ``` - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7212](https://redirect.github.com/biomejs/biome/issues/7212), now the [`useOptionalChain`](https://biomejs.dev/linter/rules/use-optional-chain/) rule recognizes optional chaining using `typeof` (e.g., `typeof foo !== 'undefined' && foo.bar`). - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7323](https://redirect.github.com/biomejs/biome/issues/7323). [`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/) no longer reports as unused TypeScript `private` members if the rule encounters a computed access on `this`. In the following example, `member` as previously reported as unused. It is no longer reported. ```ts class TsBioo { private member: number; set_with_name(name: string, value: number) { this[name] = value; } } ``` - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Added the new nursery lint rule `noJsxLiterals`, which disallows the use of string literals inside JSX. The rule catches these cases: ```jsx <> <div>test</div> {/* test is invalid */} <>test</> <div> {/* this string is invalid */} asdjfl test foo </div> </> ``` - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed an issue ([#&#8203;6393](https://redirect.github.com/biomejs/biome/issues/6393)) where the [useHookAtTopLevel](https://biomejs.dev/linter/rules/use-hook-at-top-level/) rule reported excessive diagnostics for nested hook calls. The rule now reports only the offending top-level call site, not sub-hooks of composite hooks. ```js // Before: reported twice (useFoo and useBar). function useFoo() { return useBar(); } function Component() { if (cond) useFoo(); } // After: reported once at the call to useFoo(). ``` - [#&#8203;7461](https://redirect.github.com/biomejs/biome/pull/7461) [`ea585a9`](https://redirect.github.com/biomejs/biome/commit/ea585a9394a4126370b865f565ad43b757e736ab) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Improved performance of `noPrivateImports` by eliminating allocations. In one repository, the total runtime of Biome with only `noPrivateImports` enabled went from \~3.2s down to \~1.4s. - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7411](https://redirect.github.com/biomejs/biome/issues/7411). The Biome Language Server had a regression where opening an editor with a file already open wouldn't load the project settings correctly. - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Added the new nursery rule [`noDuplicateDependencies`](https://next.biomejs.dev/linter/rules/no-duplicate-dependencies/), which verifies that no dependencies are duplicated between the `bundledDependencies`, `bundleDependencies`, `dependencies`, `devDependencies`, `overrides`, `optionalDependencies`, and `peerDependencies` sections. For example, the following snippets will trigger the rule: ```json { "dependencies": { "foo": "" }, "devDependencies": { "foo": "" } } ``` ```json { "dependencies": { "foo": "" }, "optionalDependencies": { "foo": "" } } ``` ```json { "dependencies": { "foo": "" }, "peerDependencies": { "foo": "" } } ``` - [`351bccd`](https://redirect.github.com/biomejs/biome/commit/351bccdfe49a6173cb1446ef2a8a9171c8d78c26) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;3824](https://redirect.github.com/biomejs/biome/issues/3824). Now the option CLI `--color` is correctly applied to logging too. ### [`v2.2.3`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#223) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.2.2...@biomejs/biome@2.2.3) ##### Patch Changes - [#&#8203;7353](https://redirect.github.com/biomejs/biome/pull/7353) [`4d2b719`](https://redirect.github.com/biomejs/biome/commit/4d2b7190f855a88bdae467a2efc00b81721bee62) Thanks [@&#8203;JeetuSuthar](https://redirect.github.com/JeetuSuthar)! - Fixed [#&#8203;7340](https://redirect.github.com/biomejs/biome/issues/7340): The linter now allows the `navigation` property for view-transition in CSS. Previously, the linter incorrectly flagged `navigation: auto` as an unknown property. This fix adds `navigation` to the list of known CSS properties, following the [CSS View Transitions spec](https://www.w3.org/TR/css-view-transitions-2/#view-transition-navigation-descriptor). - [#&#8203;7275](https://redirect.github.com/biomejs/biome/pull/7275) [`560de1b`](https://redirect.github.com/biomejs/biome/commit/560de1bf3f22f4a8a5cdc224256a34dbb9d78481) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;7268](https://redirect.github.com/biomejs/biome/issues/7268): Files that are explicitly passed as CLI arguments are now correctly ignored if they reside in an ignored folder. - [#&#8203;7358](https://redirect.github.com/biomejs/biome/pull/7358) [`963a246`](https://redirect.github.com/biomejs/biome/commit/963a24643cbf4d91cca81569b33a8b7e21b4dd0b) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7085](https://redirect.github.com/biomejs/biome/issues/7085), now the rule `noDescendingSpecificity` correctly calculates the specificity of selectors when they are included inside a media query. - [#&#8203;7387](https://redirect.github.com/biomejs/biome/pull/7387) [`923674d`](https://redirect.github.com/biomejs/biome/commit/923674dbf8cc4c23ab569cd00ae0a0cf2a3ab791) Thanks [@&#8203;qraqras](https://redirect.github.com/qraqras)! - Fixed [#&#8203;7381](https://redirect.github.com/biomejs/biome/issues/7381), now the [`useOptionalChain`](https://biomejs.dev/ja/linter/rules/use-optional-chain/) rule recognizes optional chaining using Yoda expressions (e.g., `undefined !== foo && foo.bar`). - [#&#8203;7316](https://redirect.github.com/biomejs/biome/pull/7316) [`f9636d5`](https://redirect.github.com/biomejs/biome/commit/f9636d5de1e8aef742d145a886f05a4cd79eca31) Thanks [@&#8203;Conaclos](https://redirect.github.com/Conaclos)! - Fixed [#&#8203;7289](https://redirect.github.com/biomejs/biome/issues/7289). The rule [`useImportType`](https://biomejs.dev/linter/rules/use-import-type/) now inlines `import type` into `import { type }` when the `style` option is set to `inlineType`. Example: ```ts import type { T } from "mod"; // becomes import { type T } from "mod"; ``` - [#&#8203;7350](https://redirect.github.com/biomejs/biome/pull/7350) [`bb4d407`](https://redirect.github.com/biomejs/biome/commit/bb4d407747dd29df78776f143ad63657f869be11) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Fixed [#&#8203;7261](https://redirect.github.com/biomejs/biome/issues/7261): two characters `・` (KATAKANA MIDDLE DOT, U+30FB) and `・` (HALFWIDTH KATAKANA MIDDLE DOT, U+FF65) are no longer considered as valid characters in identifiers. Property keys containing these character(s) are now preserved as string literals. - [#&#8203;7377](https://redirect.github.com/biomejs/biome/pull/7377) [`811f47b`](https://redirect.github.com/biomejs/biome/commit/811f47b35163e70dce106f62d0aea4ef9e6b91bb) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where the Biome Language Server didn't correctly compute the diagnostics of a monorepo setting, caused by an incorrect handling of the project status. - [#&#8203;7245](https://redirect.github.com/biomejs/biome/pull/7245) [`fad34b9`](https://redirect.github.com/biomejs/biome/commit/fad34b9db9778fe964ff7dbc489de0bfad2d3ece) Thanks [@&#8203;kedevked](https://redirect.github.com/kedevked)! - Added the new lint rule `useConsistentArrowReturn`. This rule enforces a consistent return style for arrow functions. ##### Invalid ```js const f = () => { return 1; }; ``` This rule is a port of ESLint's [arrow-body-style](https://eslint.org/docs/latest/rules/arrow-body-style) rule. - [#&#8203;7370](https://redirect.github.com/biomejs/biome/pull/7370) [`e8032dd`](https://redirect.github.com/biomejs/biome/commit/e8032ddfdd734a1441335d82b49db478248e6992) Thanks [@&#8203;fireairforce](https://redirect.github.com/fireairforce)! - Support dynamic `import defer` and `import source`. The syntax looks like: ```ts import.source("foo"); import.source("x", { with: { attr: "val" } }); import.defer("foo"); import.defer("x", { with: { attr: "val" } }); ``` - [#&#8203;7369](https://redirect.github.com/biomejs/biome/pull/7369) [`b1f8cbd`](https://redirect.github.com/biomejs/biome/commit/b1f8cbd88619deb269b2028eb0578657987848c5) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Range suppressions are now supported for Grit plugins. For JavaScript, you can suppress a plugin as follows: ```js // biome-ignore-start lint/plugin/preferObjectSpread: reason Object.assign({ foo: "bar" }, baz); // biome-ignore-end lint/plugin/preferObjectSpread: reason ``` For CSS, you can suppress a plugin as follows: ```css body { /* biome-ignore-start lint/plugin/useLowercaseColors: reason */ color: #fff; /* biome-ignore-end lint/plugin/useLowercaseColors: reason */ } ``` - [#&#8203;7384](https://redirect.github.com/biomejs/biome/pull/7384) [`099507e`](https://redirect.github.com/biomejs/biome/commit/099507eb07f14f7d383f848fb6c659b5a6ccfd92) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Reduced the severity of certain diagnostics emitted when Biome deserializes the configuration files. Now these diagnostics are emitted as `Information` severity, which means that they won't interfere when running commands with `--error-on-warnings` - [#&#8203;7302](https://redirect.github.com/biomejs/biome/pull/7302) [`2af2380`](https://redirect.github.com/biomejs/biome/commit/2af2380b8210e74efea467139a8a4cb4747c8af4) Thanks [@&#8203;unvalley](https://redirect.github.com/unvalley)! - Fixed [#&#8203;7301](https://redirect.github.com/biomejs/biome/issues/7301): [`useReadonlyClassProperties`](https://biomejs.dev/linter/rules/use-readonly-class-properties/) now correctly skips JavaScript files. - [#&#8203;7288](https://redirect.github.com/biomejs/biome/pull/7288) [`94d85f8`](https://redirect.github.com/biomejs/biome/commit/94d85f8fe54305e8fa070490bb2f7c86a91c5e92) Thanks [@&#8203;ThiefMaster](https://redirect.github.com/ThiefMaster)! - Fixed [#&#8203;7286](https://redirect.github.com/biomejs/biome/issues/7286). Files are now formatted with JSX behavior when `javascript.parser.jsxEverywhere` is explicitly set. Previously, this flag was only used for parsing, but not for formatting, which resulted in incorrect formatting of conditional expressions when JSX syntax is used in `.js` files. - [#&#8203;7311](https://redirect.github.com/biomejs/biome/pull/7311) [`62154b9`](https://redirect.github.com/biomejs/biome/commit/62154b93e0aa1609afb3d2b1f5468b63ab79374a) Thanks [@&#8203;qraqras](https://redirect.github.com/qraqras)! - Added the new nursery rule `noUselessCatchBinding`. This rule disallows unnecessary catch bindings. ```diff try { // Do something - } catch (unused) {} + } catch {} ``` - [#&#8203;7349](https://redirect.github.com/biomejs/biome/pull/7349) [`45c1dfe`](https://redirect.github.com/biomejs/biome/commit/45c1dfe32879f4bbb75cbf9b3ee86e304a02aaa1) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;4298](https://redirect.github.com/biomejs/biome/issues/4298). Biome now correctly formats CSS declarations when it contains one single value: ```diff .bar { - --123456789012345678901234567890: var(--1234567890123456789012345678901234567); + --123456789012345678901234567890: var( + --1234567890123456789012345678901234567 + ); } ``` - [#&#8203;7295](https://redirect.github.com/biomejs/biome/pull/7295) [`7638e84`](https://redirect.github.com/biomejs/biome/commit/7638e84b026c8b008fa1efdd795b8c0bff0733ab) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7130](https://redirect.github.com/biomejs/biome/issues/7130). Removed the emission of a false-positive diagnostic. Biome no longer emits the following diagnostic: ``` lib/main.ts:1:5 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━ ⚠ Suppression comment has no effect because the tool is not enabled. > 1 │ /** biome-ignore-all assist/source/organizeImports: For the lib root file, we don't want to organize exports */ │ ^^^^^^^^^^^^^^^^ ``` - [#&#8203;7377](https://redirect.github.com/biomejs/biome/pull/7377) [`811f47b`](https://redirect.github.com/biomejs/biome/commit/811f47b35163e70dce106f62d0aea4ef9e6b91bb) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7371](https://redirect.github.com/biomejs/biome/issues/7371) where the Biome Language Server didn't correctly recompute the diagnostics when updating a nested configuration file. - [#&#8203;7348](https://redirect.github.com/biomejs/biome/pull/7348) [`ac27fc5`](https://redirect.github.com/biomejs/biome/commit/ac27fc56dbb14c8f8507ffc4b7d6bf27aa3780db) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;7079](https://redirect.github.com/biomejs/biome/issues/7079). Now the rule [`useSemanticElements`](https://biomejs.dev/linter/rules/use-semantic-elements/) doesn't trigger components and custom elements. - [#&#8203;7389](https://redirect.github.com/biomejs/biome/pull/7389) [`ab06a7e`](https://redirect.github.com/biomejs/biome/commit/ab06a7ea9523ecb39ebf74a14600a02332e9d4e1) Thanks [@&#8203;Conaclos](https://redirect.github.com/Conaclos)! - Fixed [#&#8203;7344](https://redirect.github.com/biomejs/biome/issues/7344). [`useNamingConvention`](https://biomejs.dev/linter/rules/use-naming-convention/) no longer reports interfaces defined in global declarations. Interfaces declared in global declarations augment existing interfaces. Thus, they must be ignored. In the following example, `useNamingConvention` reported `HTMLElement`. It is now ignored. ```ts export {}; declare global { interface HTMLElement { foo(): void; } } ``` - [#&#8203;7315](https://redirect.github.com/biomejs/biome/pull/7315) [`4a2bd2f`](https://redirect.github.com/biomejs/biome/commit/4a2bd2f38d1f449e55f88be351fcc1cf1d561e69) Thanks [@&#8203;vladimir-ivanov](https://redirect.github.com/vladimir-ivanov)! - Fixed [#&#8203;7310](https://redirect.github.com/biomejs/biome/issues/7310): [`useReadonlyClassProperties`](https://biomejs.dev/linter/rules/use-readonly-class-properties/) correctly handles nested assignments, avoiding false positives when a class property is assigned within another assignment expression. Example of code that previously triggered a false positive but is now correctly ignored: ```ts class test { private thing: number = 0; // incorrectly flagged public incrementThing(): void { const temp = { x: 0 }; temp.x = this.thing++; } } ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, 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/settlemint/settlemint-action). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTcuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent b885636 commit 3749d92

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

package-lock.json

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

0 commit comments

Comments
 (0)