useConsistentArrayType and useShorthandArrayType now ignore Array in the extends and implements clauses. Fix #3247. Contributed by @Conaclos
Fixes #3066 by taking into account the dependencies declared in the package.json. Contributed by @ematipico
The code action of the useArrowFunction rule now preserves a trailing comma when there is only a single type parameter in the arrow function and JSX is enabled. Fixes #3292. Contributed by @Sec-ant
Enhancements
Enhance tailwind sorting lint rule #1274 with variant support.
Every preconfigured variant is assigned a weight that concurs on establishing the output sorting order.
Since nesting variants on the same utility class is possible, the resulting weight is the Bitwise XOR of all the variants weight for that class.
Dynamic variants (e.g. has-[.custom-class], group-[:checked]) are also supported and they take the weight of their base variant name the custom value attached (e.g. has-[.custom-class] takes has weight).
Arbitrary variants (e.g. [&nth-child(2)]) don't have a weight assigned and they are placed after every known variant.
Classes with the same amount of arbitrary variants follow lexicographical order. The class that has the highest number of nested arbitrary variants is placed last.
Screen variants (e.g. sm:, max-md:, min-lg:) are not supported yet.
useConsistentArrayType and useShorthandArrayType now ignore Array in the extends and implements clauses. Fix #3247. Contributed by @Conaclos
Fixes #3066 by taking into account the dependencies declared in the package.json. Contributed by @ematipico
The code action of the useArrowFunction rule now preserves a trailing comma when there is only a single type parameter in the arrow function and JSX is enabled. Fixes #3292. Contributed by @Sec-ant
Enhancements
Enhance tailwind sorting lint rule #1274 with variant support.
Every preconfigured variant is assigned a weight that concurs on establishing the output sorting order.
Since nesting variants on the same utility class is possible, the resulting weight is the Bitwise XOR of all the variants weight for that class.
Dynamic variants (e.g. has-[.custom-class], group-[:checked]) are also supported and they take the weight of their base variant name the custom value attached (e.g. has-[.custom-class] takes has weight).
Arbitrary variants (e.g. [&nth-child(2)]) don't have a weight assigned and they are placed after every known variant.
Classes with the same amount of arbitrary variants follow lexicographical order. The class that has the highest number of nested arbitrary variants is placed last.
Screen variants (e.g. sm:, max-md:, min-lg:) are not supported yet.
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See vitest-dev/vitest#5423 for more details.
Previously, the location field pointed to the error location instead of the test location. Now it is aligned with jest and contains the line and column of a test function, but requires includeTaskLocation to be enabled.
⚠️ Vitest no longer unwraps promises in spy.mock.returns. If the function is async or returns a promise, it will always succeed and have a Promise in results. To make migration easier, we introduced spy.mock.settledResults that unwraps promises and expect().toHaveResolved() matcher that accepts unwrapped value.
⚠️ Vitest coverage no longer adds test files to exclude patterns if coverage.exclude was overridden in the config. Add your test patterns manually, or merge your overrides with default ones: ['**/my-pattern.js', ...coverageConfigDefaults.exclude]. See https://vitest.dev/config/#coverage-exclude for an example.
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See vitest-dev/vitest#5423 for more details.
Previously, the location field pointed to the error location instead of the test location. Now it is aligned with jest and contains the line and column of a test function, but requires includeTaskLocation to be enabled.
⚠️ Vitest no longer unwraps promises in spy.mock.returns. If the function is async or returns a promise, it will always succeed and have a Promise in results. To make migration easier, we introduced spy.mock.settledResults that unwraps promises and expect().toHaveResolved() matcher that accepts unwrapped value.
⚠️ Vitest coverage no longer adds test files to exclude patterns if coverage.exclude was overridden in the config. Add your test patterns manually, or merge your overrides with default ones: ['**/my-pattern.js', ...coverageConfigDefaults.exclude]. See https://vitest.dev/config/#coverage-exclude for an example.
Provide Dirent or Stats object as second argument to filter
4.3
Return boolean indicating whether the path was fully removed
Add filter option
bin: add --verbose, -v to print files as they are deleted
bin: add --no-verbose, -V to not print files as they are deleted
bin: add -i --interactive to be prompted on each deletion
bin: add -I --no-interactive to not be prompted on each
deletion
4.3.1 Fixed inappropriately following symbolic links to
directories
v4.2
Brought back glob support, using the new and improved glob v9
v4.1
Improved hybrid module with no need to look at the .default
dangly bit. .default preserved as a reference to rimraf
for compatibility with anyone who came to rely on it in v4.0.
Accept and ignore -rf and -fr arguments to the bin.
v4.0
Remove glob dependency entirely. This library now only
accepts actual file and folder names to delete.
Accept array of paths or single path.
Windows performance and reliability improved.
All strategies separated into explicitly exported methods.
Drop support for Node.js below version 14
rewrite in TypeScript
ship CJS/ESM hybrid module
Error on unknown arguments to the bin. (Previously they were
silently ignored.)
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See vitest-dev/vitest#5423 for more details.
Previously, the location field pointed to the error location instead of the test location. Now it is aligned with jest and contains the line and column of a test function, but requires includeTaskLocation to be enabled.
⚠️ Vitest no longer unwraps promises in spy.mock.returns. If the function is async or returns a promise, it will always succeed and have a Promise in results. To make migration easier, we introduced spy.mock.settledResults that unwraps promises and expect().toHaveResolved() matcher that accepts unwrapped value.
Do not exit process if global setup has failed - by @sheremet-va
Bumps the development-dependencies group with 8 updates in the / directory:
1.8.0
1.8.3
0.5.8
0.6.2
20.14.2
20.14.10
1.6.0
2.0.1
1.6.0
2.0.1
5.0.7
6.0.0
5.4.5
5.5.3
1.6.0
2.0.1
Updates
@biomejs/biome
from 1.8.0 to 1.8.3Release notes
Sourced from
@biomejs/biome
's releases.... (truncated)
Changelog
Sourced from
@biomejs/biome
's changelog.... (truncated)
Commits
c28d597
release: v1.8.3 (#3302)f88b7b2
chore: update codegen to include GraphQL (#3301)6f9c938
feat(noExportedImports): add lint rule (#3097)cd3bb04
chore(deps): update@biomejs
packages (#3266)54b4c9a
release: v1.8.2 (#3243)6f8cab7
feat(biome_css_analyzer): implement function-linear-gradient-no-nonstandard-d...0d9b60a
feat(lint/useValidAutocomplete): add rule (#3143)9d518d8
chore(deps): update@biomejs
packages (#3145)4a7baaa
feat(biome_js_analyzer):noSubstr
(#3125)535acc7
fix(ci): rule check error messages (#3158)Updates
@effect/vitest
from 0.5.8 to 0.6.2Release notes
Sourced from
@effect/vitest
's releases.Changelog
Sourced from
@effect/vitest
's changelog.... (truncated)
Commits
3429c8f
Version Packages (#3172)ad51cbe
Version Packages (#3162)a4982f6
Version Packages (#3128)489d20a
refactor vitest (#3122)c187493
Version Packages (#3100)e86211a
Version Packages (#3093)6b3bd87
Version Packages (#3081)a70705c
Version Packages (#3071)7ba763c
Version Packages (#3060)01075fb
Version Packages (#3034)Updates
@types/node
from 20.14.2 to 20.14.10Commits
Updates
@vitest/coverage-v8
from 1.6.0 to 2.0.1Release notes
Sourced from
@vitest/coverage-v8
's releases.... (truncated)
Commits
16eb6c8
chore: release v2.0.11b150a3
chore: release v2.0.05611895
chore: release v2.0.0-beta.13368c137
fix(coverage): remove work-around for implicitelse
(#6014)05d5f38
chore(deps): update all non-major dependencies (#5957)169bc1f
fix(coverage): support overridingexclude
(#5997)cd9cc6b
chore: release v2.0.0-beta.12fca8b92
chore(deps): updatev8-to-istanbul
(#5958)7080513
fix(coverage): pass thresholds errors tostderr
ofstartVitest()
(#5954)3fd15ba
chore: release v2.0.0-beta.11Updates
@vitest/ui
from 1.6.0 to 2.0.1Release notes
Sourced from
@vitest/ui
's releases.... (truncated)
Commits
16eb6c8
chore: release v2.0.1f94ede0
fix(ui): move virtual scroller to dev dependencies (#6053)1b150a3
chore: release v2.0.05611895
chore: release v2.0.0-beta.1305d5f38
chore(deps): update all non-major dependencies (#5957)7ec298e
feat(ui): add action to explorer item to show the test/suite line in the sour...cd9cc6b
chore: release v2.0.0-beta.127fd341c
chore(ui): addexplorer.md
overall behavior (#5950)c31c41c
feat(ui): add initializing explorer logic (#5941)ea12834
chore(ui): fix teardown type in Error shim (#5949)Updates
rimraf
from 5.0.7 to 6.0.0Changelog
Sourced from rimraf's changelog.
... (truncated)
Commits
90d1feb
6.0.09b2a2b1
drop dead node versions546c9ec
5.0.9043338a
restore support for dead node versions0d83c12
5.0.888e632b
drop eol node 14f8c4b20
DOC: missing punctuation & some grammar fixes (#307)dc3ffe5
update tap, tshy, drop node 16 from ciUpdates
typescript
from 5.4.5 to 5.5.3Release notes
Sourced from typescript's releases.
... (truncated)
Commits
f0e9921
Bump version to 5.5.3 and LKG738bd60
Cherry-pick #58966 to release-5.5 (#59002)ce2e60e
Update LKGf3b21a2
🤖 Pick PR #58931 (Defer creation of barebonesLibSourc...) into release-5.5 (#...7b1620b
🤖 Pick PR #58811 (fix(58801): "Move to file" on globa...) into release-5.5 (#...5367ae1
Bump version to 5.5.2 and LKG02132e5
🤖 Pick PR #58895 (Fix global when typescript.js loade...) into release-5.5 (#...45b1e3c
🤖 Pick PR #58872 (Fix declaration emit crash) into release-5.5 (#58874)17933ee
🤖 Pick PR #58810 (Fixed declaration emit issue relate...) into release-5.5 (#...552b07e
🤖 Pick PR #58786 (Fixed declaration emit crash relate...) into release-5.5 (#...Updates
vitest
from 1.6.0 to 2.0.1Release notes
Sourced from vitest's releases.
Superseded by #399.