@biomejs/biome 2.2.2
2.2.2
Patch Changes
-
#7266
b270bb5Thanks @ematipico! - Fixed an issue where Biome got stuck when analyzing some files. This is usually caused by a bug in the inference engine. Now Biome has some guards in place in case the number of types grows too much, and if that happens, a diagnostic is emitted and the inference is halted. -
#7281
6436180Thanks @ematipico! - Fixed an issue where the functionscanProjectwouldn't work as expected. -
#7285
1511d0cThanks @rriski! - Partially fixed #6782: JSX node kinds are now supported in GritQL AST nodes. -
#7249
dff85c0Thanks @ematipico! - Fixed #748, where Biome Language Server didn't show the unsafe fixes when requesting the quick fixes. Now all LSP editors will show also opt-in, unsafe fixes. -
#7266
b270bb5Thanks @ematipico! - Fixed #7020: Resolved an issue with analysing types of static member expressions involving unions. If the object type was a union that referenced nested unions, it would trigger an infinite loop as it tried to keep expanding nested unions, and the set of types would grow indefinitely. -
#7209
679b70eThanks @patrickshipe! - Resolved an overcorrection inuseImportExtensionswhen importing explicit index files.Imports that explicitly reference an index file are now preserved and no longer rewritten to nested index paths.
Example
// Before - import "./sub/index"; + import "./sub/index/index.js"; // After - import "./sub/index"; + import "./sub/index.js"; -
#7270
953f9c6Thanks @arendjr! - Fixed #6172: Resolved an issue with inferring types for rest parameters. This issue caused rest-parameter types to be incorrect, and in some cases caused extreme performance regressions in files that contained many methods with rest-parameter definitions. -
#7234
b7aa111Thanks @JeetuSuthar! - Fixed #7233: The useIndexOf rule now correctly suggests using indexOf() instead of findIndex().The diagnostic message was incorrectly recommending Array#findIndex() over Array#indexOf(), when it should recommend the opposite for simple equality checks.
-
#7283
0b07f45Thanks @ematipico! - Fixed #7236. Now Biome correctly migrates JSONC configuration files when they are passed using--config-path. -
#7239
1d643d8Thanks @minht11! - Fixed an issue where Svelte globals ($state and so on) were not properly recognized inside.svelte.test.ts/jsand.svelte.spec.ts/jsfiles. -
#7264
62fdbc8Thanks @ematipico! - Fixed a regression where when using--log-kind-prettywasn't working anymore as expected. -
#7244
660031bThanks @JeetuSuthar! - Fixed #7225: ThenoExtraBooleanCastrule now preserves parentheses when removingBooleancalls inside negations.// Before !Boolean(b0 && b1); // After !(b0 && b1); // instead of !b0 && b1 -
#7298
46a8e93Thanks @unvalley! - Fixed #6695:useNamingConventionnow correctly reports TypeScript parameter properties with modifiers.Previously, constructor parameter properties with modifiers like
privateorreadonlywere not checked against naming conventions. These properties are now treated consistently with regular class properties.
What's Changed
- perf: determine folders more efficiently by @arendjr in https://github.com/biomejs/biome/pull/7220
- chore: use
divanfor module graph benchmarks by @arendjr in https://github.com/biomejs/biome/pull/7231 - chore: add repository dispatch to kick off docker image build on release by @stathis-alexander in https://github.com/biomejs/biome/pull/7235
- fix: correct error message in useIndexOf rule by @JeetuSuthar in https://github.com/biomejs/biome/pull/7234
- fix(changelog): correct dead links in 2.2 by @Jayllyz in https://github.com/biomejs/biome/pull/7243
- chore: fix image sponsor by @ematipico in https://github.com/biomejs/biome/pull/7250
- docs: fix CHANGELOG to reflect operatorLinebreak by @blfpd in https://github.com/biomejs/biome/pull/7253
- chore(deps): update github-actions by @renovate[bot] in https://github.com/biomejs/biome/pull/7251
- chore(deps): update rust:1.89.0-bookworm docker digest to e090f7b by @renovate[bot] in https://github.com/biomejs/biome/pull/7252
- chore(deps): update rust:1.89.0-bullseye docker digest to 5b0defc - autoclosed by @renovate[bot] in https://github.com/biomejs/biome/pull/7254
- chore(deps): update dependency @changesets/cli to v2.29.6 by @renovate[bot] in https://github.com/biomejs/biome/pull/7255
- fix(lsp): unsafe fixes when pulling code actions by @ematipico in https://github.com/biomejs/biome/pull/7249
- feat(linter): auto add Svelte globals for .svelte.test/spec files by @minht11 in https://github.com/biomejs/biome/pull/7239
- fix(cli): pretty logger by @ematipico in https://github.com/biomejs/biome/pull/7264
- fix(core): resolve issue with rest params in type inference by @arendjr in https://github.com/biomejs/biome/pull/7270
- chore: remove duplicated fixture by @arendjr in https://github.com/biomejs/biome/pull/7273
- fix(linter): fix
useImportExtensionshandling of index files by @patrickshipe in https://github.com/biomejs/biome/pull/7209 - chore: unduplicate branch by @arendjr in https://github.com/biomejs/biome/pull/7274
- docs(lint): improve noUndeclaredDependencies by @ematipico in https://github.com/biomejs/biome/pull/7272
- fix(wasm):
scanProjectbeing stuck by @ematipico in https://github.com/biomejs/biome/pull/7281 - fix(semantic): missing references in namespaces by @ematipico in https://github.com/biomejs/biome/pull/7282
- fix(module_graph): limit flattening to hardcoded value by @ematipico in https://github.com/biomejs/biome/pull/7266
- fix(migrate): jsonc configuration files by @ematipico in https://github.com/biomejs/biome/pull/7283
- feat(grit): add JSX node name mappings for GritQL patterns by @rriski in https://github.com/biomejs/biome/pull/7285
- fix(noExtraBooleanCast): preserve parentheses to maintain operator precedence by @JeetuSuthar in https://github.com/biomejs/biome/pull/7244
- fix(lint/useNamingConvention): detects ts property parameter with modifier by @unvalley in https://github.com/biomejs/biome/pull/7298
- ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/7238
- ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/7303
New Contributors
- @stathis-alexander made their first contribution in https://github.com/biomejs/biome/pull/7235
- @JeetuSuthar made their first contribution in https://github.com/biomejs/biome/pull/7234
- @blfpd made their first contribution in https://github.com/biomejs/biome/pull/7253
- @patrickshipe made their first contribution in https://github.com/biomejs/biome/pull/7209
- @rriski made their first contribution in https://github.com/biomejs/biome/pull/7285
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.2.0...@biomejs/biome@2.2.2