[Snyk] Upgrade @biomejs/biome from 1.8.3 to 2.1.3 #22
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.8.3 to 2.1.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 34 versions ahead of your current version.
The recommended version was released 23 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-BABELHELPERS-9397697
SNYK-JS-BABELRUNTIME-10044504
SNYK-JS-TMP-11501554
SNYK-JS-BRACEEXPANSION-9789073
Release notes
Package name: @biomejs/biome
2.1.3
Patch Changes
#7057
634a667Thanks @ mdevils! - Added the rulenoVueReservedKeys, which prevents the use of reserved Vue keys.It prevents the use of Vue reserved keys such as those starting with
# @ biomejs/biome (like$el,$data,$props) and keys starting with_` in data properties, which can cause conflicts and unexpected behavior in Vue components.Invalid example
Valid examples
#6941
734d708Thanks @ JamBalaya56562! - Added@ eslint-react/no-nested-component-definitionsas a rule source fornoNestedComponentDefinitions. Now it will get picked up bybiome migrate --eslint.#6463
0a16d54Thanks @ JamBalaya56562! - Fixed a website link for theuseComponentExportOnlyModuleslinter rule to point to the correct URL.#6944
e53f2feThanks @ sterliakov! - Fixed #6910: Biome now ignores type casts and assertions when evaluating numbers fornoMagicNumbersrule.#6991
476cd55Thanks @ denbezrukov! - Fixed #6973: Add support for parsing the :active-view-transition-type() pseudo-class#6992
0b1e194Thanks @ ematipico! - Added a new JSON rule callednoQuickfixBiome, which disallow the use of code actionquickfix.biomeinside code editor settings.#6943
249306dThanks @ JamBalaya56562! - Fixed@ vitest/eslint-pluginsource url.#6947
4c7ed0fThanks @ JamBalaya56562! - Fixed ESLint migration for the ruleprefer-forfromeslint-plugin-solidto Biome'suseForComponent.#6976
72ebadcThanks @ siketyan! - Fixed #6692: The rulesnoUnusedVariablesandnoUnusedFunctionParametersno longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope).#6990
333f5d0Thanks @ rvanlaarhoven! - Fixed the documentation URL forlint/correctness/noUnknownPseudoClass#7000
4021165Thanks @ harxki! - Fixed #6795:noUnassignedVariablesnow correctly recognizes variables used in JSXrefattributes.#7044
b091ddfThanks @ ematipico! - Fixed #6622, now the ruleuseSemanticElementsworks for JSX self-closing elements too.#7014
c4864e8Thanks @ siketyan! - Fixed #6516: Thebiome migratecommand no longer break the member list with trailing comments.#6979
29cb6daThanks @ unvalley! - Fixed #6767:useSortedClassesnow correctly removes leading and trailing whitespace in className.Previously, trailing spaces in className were not fully removed.
<div className="text-sm font-bold " />
// Before: applied fix, but a trailing space was preserved
<div className="font-bold text-sm " />
// After: applied fix, trailing spaces removed
<div className="font-bold text-sm" />
#7055
ee4828dThanks @ dyc3! - Added the nursery ruleuseReactFunctionComponents. This rule enforces the preference to use function components instead of class components.Valid:
Invalid:
#6924
2d21be9Thanks @ ematipico! - Fixed #113, where the Biome Language Server didn't correctly update the diagnostics when the configuration file is modified in the editor. Now the diagnostics are correctly updated every time the configuration file is modified and saved.#6931
e6b2380Thanks @ arendjr! - Fixed #6915:useHookAtTopLevelno longer hangs when rules call themselves recursively.#7012
01c0ab4Thanks @ siketyan! - Fixed #5837: Invalid suppression comments such asbiome-ignore-all-startorbiome-ignore-all-endno longer causes a panic.#6949
48462f8Thanks @ fireairforce! - Support parseimport defer(which is a stage3 proposal). The syntax look like this:#6938
5feb5a6Thanks @ vladimir-ivanov! - Fixed #6919 and #6920:useReadonlyClassPropertiesnow does checks for mutations in async class methods.Example:
#6942
cfda528Thanks @ sterliakov! - Fixed #6939. Biome now understandsthisbinding in classes outside of methods.What's Changed
useComponentExportOnlyModuleswebsite link by @ JamBalaya56562 in #6463Pathtype by @ arendjr in #6935no-nested-component-definitionsrule to eslint migration by @ JamBalaya56562 in #6941perfer-for→prefer-forby @ JamBalaya56562 in #6947thisby @ sterliakov in #6942as constand similar wrappers innoMagicNumbersrule by @ sterliakov in #6944@ vitest/eslint-pluginsource url by @ JamBalaya56562 in #6943Textby @ arendjr in #6946TypefromTypeDataby @ arendjr in #6963function A(A) {}by @ siketyan in #6976noUnknownPseudoClassby @ rvanlaarhoven in #6990noQuickfixBiomeby @ ematipico in #6992useSemanticElementsself-closing elements by @ ematipico in #7044noVueReservedKeysrule by @ mdevils in #7057New Contributors
Full Changelog: https://github.com/biomejs/biome/compare/@ biomejs/biome@2.1.2...@ biomejs/biome@2.1.3
2.1.2
Patch Changes
#6865
b35bf64Thanks @ denbezrukov! - Fix #6485: Handle multiple semicolons correctly in blocks (#6485)#6798
3579ffaThanks @ dyc3! - Fixed #6762, Biome now knows that~/.config/zed/settings.jsonand~/.config/Code/User/settings.jsonallows comments by default.#6839
4cd62d8Thanks @ ematipico! - Fixed #6838, where the Biome File Watcher incorrectly watched and stored ignored files, causing possible memory leaks when those files were dynamically created (e.g. built files).#6879
0059cd9Thanks @ denbezrukov! - Refactor: remove one level of indirection for CSS declarations with semicolonPreviously, accessing a declaration from a list required an extra step:
Now, it can be done directly with:
#6839
4cd62d8Thanks @ ematipico! - Fixed a bug where the Biome Language Server didn't correctly ignore specific files whenvcs.useIgnoreFileis set totrue.#6884
5ff50f8Thanks @ arendjr! - Improved the performance ofnoImportCyclesby ~30%.#6903
241dd9eThanks @ arendjr! - Fixed #6829: Fixed a false positive reported byuseImportExtensionswhen importing a.jsfile that had a matching.d.tsfile in the same folder.#6846
446112eThanks @ darricheng! - 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.#6823
eebc48eThanks @ arendjr! - Improved #6172: Optimised the way function arguments are stored in Biome's type inference. This led to about 10% performance improvement inRedisCommander.d.tsand about 2% on@ next/fonttype definitions.#6878