[Snyk] Upgrade @biomejs/biome from 1.9.2 to 1.9.3 #157
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @biomejs/biome from 1.9.2 to 1.9.3.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 2 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: @biomejs/biome
CLI
New features
GritQL queries that match functions or methods will now match async functions or methods as well.
If this is not what you want, you can capture the
async
keyword (or its absence) in a metavariable and assert its emptiness:Contributed by @ arendjr
Bug fixes
Fix #4077: Grit queries no longer need to match the statement's trailing semicolon. Contributed by @ arendjr
Fix #4102. Now the CLI command
lint
doesn't exit with an error code when using--write
/--fix
. Contributed by @ ematipicoConfiguration
Bug fixes
noLabelWithoutControl
options where incorrectly marked as mandatory. Contributed by @ ematipicoEditors
Formatter
Bug fixes
Fix #3924 where GraphQL formatter panics in block comments with empty line. Contributed by @ vohoanglong0107
Fix a case where raw values inside
url()
functions weren't properly trimmed.Contributed by @ ematipico
Fixed #4076, where a media query wasn't correctly formatted:
Contributed by @ blaze-d83
JavaScript API
Bug fixes
Linter
New features
Add noDescendingSpecificity. Contributed by @ tunamaguro
Add noNestedTernary. Contributed by @ kaykdm
Add noTemplateCurlyInString. Contributed by @ fireairforce
Add noOctalEscape. Contributed by @ fireairforce
Bug fixes
noControlCharactersInRegex no longer panics on regexes with incomplete escape sequences. Contributed by @ Conaclos
noMisleadingCharacterClass no longer reports issues outside of character classes.
The following code is no longer reported:
Contributed by @ Conaclos
noUndeclaredDependencies no longer reports Node.js builtin modules as undeclared dependencies.
The rule no longer reports the following code:
Contributed by @ Conaclos
noUnusedVariables no longer panics when suggesting the renaming of a variable at the start of a file (#4114). Contributed by @ Conaclos
noUselessEscapeInRegex no longer panics on regexes that start with an empty character class. Contributed by @ Conaclos
noUselessStringConcat no longer panics when it encounters malformed code. Contributed by @ Conaclos
noUnusedFunctionParameters no longer reports unused parameters inside an object pattern with a rest parameter.
In the following code, the rule no longer reports
a
as unused.This matches the behavior of noUnusedVariables.
Contributed by @ Conaclos
useButtonType no longer reports dynamically created button with a valid type (#4072).
The following code is no longer reported:
Contributed by @ Conaclos
useSemanticElements now ignores elements with the
img
role (#3994).MDN recommends using
role="img"
for grouping images or creating an image from other elements.The following code is no longer reported:
Contributed by @ Conaclos
useSemanticElements now ignores
alert
andalertdialog
roles (#3858). Contributed by @ ConaclosnoUselessFragments don't create invaild JSX code when Fragments children contains JSX Expression and in a LogicalExpression. Contributed by @ fireairforce
Parser
Bug fixes
What's Changed
Other changes
.prettierignore
by @ Jayllyz in #4134New Contributors
Full Changelog: cli/v1.9.3-nightly.75b4387...cli/v1.9.3
Analyzer
CLI
New features
GritQL queries that match functions or methods will now match async functions or methods as well.
If this is not what you want, you can capture the
async
keyword (or its absence) in a metavariable and assert its emptiness:Contributed by @ arendjr
Bug fixes
Configuration
Editors
Formatter
Bug fixes
JavaScript API
Linter
New features
Bug fixes
noMisleadingCharacterClass no longer reports issues outside of character classes.
The following code is no longer reported:
Contributed by @ Conaclos
noUndeclaredDependencies no longer reports Node.js builtin modules as undeclared dependencies.
The rule no longer reports the following code:
Contributed by @ Conaclos
noUselessEscapeInRegex no longer panics on regexes that start with an empty character class. Contributed by @ Conaclos
noUselessStringConcat no longer panics when it encounters malformed code. Contributed by @ Conaclos
noUnusedFunctionParameters no longer reports unused parameters inside an object pattern with a rest parameter.
In the following code, the rule no longer reports
a
as unused.This matches the behavior of noUnusedVariables.
Contributed by @ Conaclos
useButtonType no longer reports dynamically created button with a valid type (#4072).
The following code is no longer reported:
Contributed by @ Conaclos
useSemanticElements now ignores elements with the
img
role (#3994).MDN recommends using
role="img"
for grouping images or creating an image from other elements.The following code is no longer reported:
Contributed by @ Conaclos
useSemanticElements now ignores
alert
andalertdialog
roles (#3858). Contributed by @ ConaclosnoUselessFragments don't create invaild JSX code when Fragments children contains JSX Expression and in a LogicalExpression. Contributed by @ fireairforce
Parser
Bug fixes
What's Changed
Other changes
FeatureKind
entries for debug features by @ dyc3 in #3892noExcessiveCognitiveComplexity
diagnostic shows levels by @ chrisgrieser in #4028param
to void elements list by @ dyc3 in #4020to_ascii_lowercase_cow
by @ dyc3 in #4053options
JSON schema field by @ Conaclos in #4080isNan
toisNaN
by @ Omochice in #4106New Contributors
Full Changelog: cli/v1.9.2...cli/v1.9.3-nightly.75b4387
CLI
New features
Added support for custom GritQL definitions, including:
Contributed by @ arendjr
Bug fixes
contains
queries to report false positives when the matchednode appeared inside a sibling node. Contributed by @ arendjr
Editors
Bug fixes
Fix #3923. Now the
.editorconfig
is correctly parsed by the LSP, and the options are correctly applied to files when formatting is triggered.Plus, the Biome LSP now watches for any change to the
.editorconfig
, and updates the formatting settings.Reduced the number of log files generated by the LSP server. Now the maximum number of logs saved on disk is seven. Contributed by @ ematipico
Fix the code actions capabilities available in the LSP Biome server. Before, the LSP was using the default capabilities, which resulted in pulling code actions even when they were disabled by the editor.
This means that the code actions are pulled by the client only when the editor enables
quickfix.biome
,source.organizeImports.biome
andsource.fixAll.biome
.Now, if you enable
organizeImports.enabled: true
in thebiome.json
, and then you configure your editor with the following code actionsource.organizeImports.biome: false
, the editor won't sort the imports.Contributed by @ ematipico
Linter
New features
Bug fixes
noLabelWithoutControl now accept JSX expression as label value (#3875). Contributed by @ Conaclos
useFilenamingConvention no longer suggests names with a disallowed case (#3952). Contributed by @ Conaclos
useFilenamingConvention now recognizes file names starting with ASCII digits as lowercase (#3952).
Thus,
2024-09-17-filename
,2024_09_17_filename
and20240917FileName
are inkebab-case
,snake_case
, andcamelCase
respectively.Contributed by @ Conaclos
useFilenamingConvention now applies the configured formats to the file extensions (#3650). Contributed by @ Conaclos
Parser
Bug fixes
useStrictMode now reports Script files with some directives, but without the
use strict
directive. Contributed by @ ConaclosThe CSS parser now accepts the characters U+FFDCF and U+FFFD in identifiers. Contributed by @ Conaclos
What's Changed
Other changes