vitest-dev/vitest (@vitest/coverage-v8)
### [`v1.2.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.2.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.1...v1.2.2)
##### 🐞 Bug Fixes
- **coverage**:
- Remove `coverage/.tmp` files after run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5008](https://togithub.com/vitest-dev/vitest/issues/5008) [(d53b8)](https://togithub.com/vitest-dev/vitest/commit/d53b8580)
- Don't crash when re-run removes earlier run's reports - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5022](https://togithub.com/vitest-dev/vitest/issues/5022) [(66898)](https://togithub.com/vitest-dev/vitest/commit/6689856f)
- **expect**:
- Improve `toThrow(asymmetricMatcher)` failure message - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5000](https://togithub.com/vitest-dev/vitest/issues/5000) [(a199a)](https://togithub.com/vitest-dev/vitest/commit/a199ac2d)
- **forks**:
- Set correct `VITEST_POOL_ID` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5002](https://togithub.com/vitest-dev/vitest/issues/5002) [(7d0a4)](https://togithub.com/vitest-dev/vitest/commit/7d0a4692)
- **threads**:
- Mention common work-around for the logged error - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5024](https://togithub.com/vitest-dev/vitest/issues/5024) [(915d6)](https://togithub.com/vitest-dev/vitest/commit/915d6c43)
- **typecheck**:
- Fix `ignoreSourceErrors` in run mode - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5044](https://togithub.com/vitest-dev/vitest/issues/5044) [(6dae3)](https://togithub.com/vitest-dev/vitest/commit/6dae3feb)
- **vite-node**:
- Provide import.meta.filename and dirname - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5011](https://togithub.com/vitest-dev/vitest/issues/5011) [(73148)](https://togithub.com/vitest-dev/vitest/commit/73148575)
- **vitest**:
- Expose getHooks & setHooks - by [@adriencaccia](https://togithub.com/adriencaccia) in [https://github.com/vitest-dev/vitest/issues/5032](https://togithub.com/vitest-dev/vitest/issues/5032) [(73448)](https://togithub.com/vitest-dev/vitest/commit/73448706)
- Test deep dependencies change detection - by [@blake-newman](https://togithub.com/blake-newman) in [https://github.com/vitest-dev/vitest/issues/4934](https://togithub.com/vitest-dev/vitest/issues/4934) [(9c7c0)](https://togithub.com/vitest-dev/vitest/commit/9c7c0fc9)
- Throw an error if vi.mock is exported - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5034](https://togithub.com/vitest-dev/vitest/issues/5034) [(253df)](https://togithub.com/vitest-dev/vitest/commit/253df1cc)
- Allow `useFakeTimers` to fake `requestIdleCallback` on non browser - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5028](https://togithub.com/vitest-dev/vitest/issues/5028) [(a9a48)](https://togithub.com/vitest-dev/vitest/commit/a9a486f2)
- Support older NodeJS with async `import.meta.resolve` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5045](https://togithub.com/vitest-dev/vitest/issues/5045) [(cf564)](https://togithub.com/vitest-dev/vitest/commit/cf5641a9)
- Don't throw an error if mocked file was already imported - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5050](https://togithub.com/vitest-dev/vitest/issues/5050) [(fff1a)](https://togithub.com/vitest-dev/vitest/commit/fff1a270)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.2.1...v1.2.2)
unjs/citty (citty)
### [`v0.1.6`](https://togithub.com/unjs/citty/blob/HEAD/CHANGELOG.md#v016)
[Compare Source](https://togithub.com/unjs/citty/compare/v0.1.5...v0.1.6)
[compare changes](https://togithub.com/unjs/citty/compare/v0.1.5...v0.1.6)
##### 🩹 Fixes
- **usage:** Render valueHint for positional args ([dbd1d92](https://togithub.com/unjs/citty/commit/dbd1d92))
##### 🏡 Chore
- Apply automated lint fixes ([f00055d](https://togithub.com/unjs/citty/commit/f00055d))
- Update lockfile ([0e73aad](https://togithub.com/unjs/citty/commit/0e73aad))
##### ❤️ Contributors
- Pooya Parsa ([@pi0](http://github.com/pi0))
pnpm/pnpm (pnpm)
### [`v8.15.2`](https://togithub.com/pnpm/pnpm/releases/tag/v8.15.2)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.15.1...v8.15.2)
#### Patch Changes
- When purging multiple `node_modules` directories, pnpm will no longer print multiple prompts simultaneously.
- Don't print an unnecessary warning when adding new dependencies to a project that uses hoisted `node_modules`.
- Linking globally the command of a package that has no name in `package.json` [#4761](https://togithub.com/pnpm/pnpm/issues/4761).
- Installation should work with lockfile created by pnpm v9.0.0-alpha.4
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
### [`v8.15.1`](https://togithub.com/pnpm/pnpm/releases/tag/v8.15.1)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.15.0...v8.15.1)
#### Patch Changes
- Use the `object-hash` library instead of `node-object-hash` for hashing keys of side-effects cache [#7591](https://togithub.com/pnpm/pnpm/pull/7591).
- `bundledDependencies` should never be added to the lockfile with `false` as the value [#7576](https://togithub.com/pnpm/pnpm/issues/7576).
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
### [`v8.15.0`](https://togithub.com/pnpm/pnpm/releases/tag/v8.15.0)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.14.3...v8.15.0)
#### Minor Changes
- When the license field does not exist in `package.json` but a license file exists, try to match and extract the license name [#7530](https://togithub.com/pnpm/pnpm/pull/7530).
#### Patch Changes
- Running `pnpm update -r --latest` will no longer downgrade prerelease dependencies [#7436](https://togithub.com/pnpm/pnpm/issues/7436).
- `--aggregate-output` should work on scripts executed from the same project [#7556](https://togithub.com/pnpm/pnpm/issues/7556).
- Prefer hard links over reflinks on Windows as they perform better [#7564](https://togithub.com/pnpm/pnpm/pull/7564).
- Reduce the length of the side-effects cache key. Instead of saving a stringified object composed from the dependency versions of the package, use the hash calculated from the said object [#7563](https://togithub.com/pnpm/pnpm/pull/7563).
- Throw an error if `pnpm update --latest` runs with arguments containing versions specs. For instance, `pnpm update --latest foo@next` is not allowed [#7567](https://togithub.com/pnpm/pnpm/pull/7567).
- Don't fail in Windows CoW if the file already exists [#7554](https://togithub.com/pnpm/pnpm/issues/7554).
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
### [`v8.14.3`](https://togithub.com/pnpm/pnpm/releases/tag/v8.14.3)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.14.2...v8.14.3)
#### Patch Changes
- `pnpm pack` should work as expected when "prepack" modifies the manifest [#7558](https://togithub.com/pnpm/pnpm/pull/7558).
#### Platinum Sponsors
#### Gold Sponsors
#### Our Silver Sponsors
prettier/prettier (prettier)
### [`v3.2.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325)
[Compare Source](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5)
[diff](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5)
##### Support Angular inline styles as single template literal ([#15968](https://togithub.com/prettier/prettier/pull/15968) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
[Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles.
```ts
// Input
@Component({
template: `
`,
})
export class AppComponent {}
```
##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.com/sosukesuzuki))
In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**.
When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data.
`tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension.
We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file
```json
{
"overrides": [
{
"files": ["tsconfig.json", "jsconfig.json"],
"options": {
"parser": "jsonc"
}
}
]
}
```
```
```
Configuration
📅 Schedule: Branch creation - "after 2am and before 3am" (UTC), Automerge - "after 1am and before 2am" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^20.11.5
->^20.11.17
^1.2.1
->^1.2.2
^0.1.5
->^0.1.6
8.14.2
->8.15.2
^3.2.4
->^3.2.5
^1.2.1
->^1.2.2
Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
### [`v1.2.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.2.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.1...v1.2.2) ##### 🐞 Bug Fixes - **coverage**: - Remove `coverage/.tmp` files after run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5008](https://togithub.com/vitest-dev/vitest/issues/5008) [(d53b8)](https://togithub.com/vitest-dev/vitest/commit/d53b8580) - Don't crash when re-run removes earlier run's reports - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5022](https://togithub.com/vitest-dev/vitest/issues/5022) [(66898)](https://togithub.com/vitest-dev/vitest/commit/6689856f) - **expect**: - Improve `toThrow(asymmetricMatcher)` failure message - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5000](https://togithub.com/vitest-dev/vitest/issues/5000) [(a199a)](https://togithub.com/vitest-dev/vitest/commit/a199ac2d) - **forks**: - Set correct `VITEST_POOL_ID` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5002](https://togithub.com/vitest-dev/vitest/issues/5002) [(7d0a4)](https://togithub.com/vitest-dev/vitest/commit/7d0a4692) - **threads**: - Mention common work-around for the logged error - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5024](https://togithub.com/vitest-dev/vitest/issues/5024) [(915d6)](https://togithub.com/vitest-dev/vitest/commit/915d6c43) - **typecheck**: - Fix `ignoreSourceErrors` in run mode - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5044](https://togithub.com/vitest-dev/vitest/issues/5044) [(6dae3)](https://togithub.com/vitest-dev/vitest/commit/6dae3feb) - **vite-node**: - Provide import.meta.filename and dirname - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5011](https://togithub.com/vitest-dev/vitest/issues/5011) [(73148)](https://togithub.com/vitest-dev/vitest/commit/73148575) - **vitest**: - Expose getHooks & setHooks - by [@adriencaccia](https://togithub.com/adriencaccia) in [https://github.com/vitest-dev/vitest/issues/5032](https://togithub.com/vitest-dev/vitest/issues/5032) [(73448)](https://togithub.com/vitest-dev/vitest/commit/73448706) - Test deep dependencies change detection - by [@blake-newman](https://togithub.com/blake-newman) in [https://github.com/vitest-dev/vitest/issues/4934](https://togithub.com/vitest-dev/vitest/issues/4934) [(9c7c0)](https://togithub.com/vitest-dev/vitest/commit/9c7c0fc9) - Throw an error if vi.mock is exported - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5034](https://togithub.com/vitest-dev/vitest/issues/5034) [(253df)](https://togithub.com/vitest-dev/vitest/commit/253df1cc) - Allow `useFakeTimers` to fake `requestIdleCallback` on non browser - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5028](https://togithub.com/vitest-dev/vitest/issues/5028) [(a9a48)](https://togithub.com/vitest-dev/vitest/commit/a9a486f2) - Support older NodeJS with async `import.meta.resolve` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5045](https://togithub.com/vitest-dev/vitest/issues/5045) [(cf564)](https://togithub.com/vitest-dev/vitest/commit/cf5641a9) - Don't throw an error if mocked file was already imported - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5050](https://togithub.com/vitest-dev/vitest/issues/5050) [(fff1a)](https://togithub.com/vitest-dev/vitest/commit/fff1a270) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.2.1...v1.2.2)unjs/citty (citty)
### [`v0.1.6`](https://togithub.com/unjs/citty/blob/HEAD/CHANGELOG.md#v016) [Compare Source](https://togithub.com/unjs/citty/compare/v0.1.5...v0.1.6) [compare changes](https://togithub.com/unjs/citty/compare/v0.1.5...v0.1.6) ##### 🩹 Fixes - **usage:** Render valueHint for positional args ([dbd1d92](https://togithub.com/unjs/citty/commit/dbd1d92)) ##### 🏡 Chore - Apply automated lint fixes ([f00055d](https://togithub.com/unjs/citty/commit/f00055d)) - Update lockfile ([0e73aad](https://togithub.com/unjs/citty/commit/0e73aad)) ##### ❤️ Contributors - Pooya Parsa ([@pi0](http://github.com/pi0))pnpm/pnpm (pnpm)
### [`v8.15.2`](https://togithub.com/pnpm/pnpm/releases/tag/v8.15.2) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.15.1...v8.15.2) #### Patch Changes - When purging multiple `node_modules` directories, pnpm will no longer print multiple prompts simultaneously. - Don't print an unnecessary warning when adding new dependencies to a project that uses hoisted `node_modules`. - Linking globally the command of a package that has no name in `package.json` [#4761](https://togithub.com/pnpm/pnpm/issues/4761). - Installation should work with lockfile created by pnpm v9.0.0-alpha.4 #### Platinum Sponsorsprettier/prettier (prettier)
### [`v3.2.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) [diff](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) ##### Support Angular inline styles as single template literal ([#15968](https://togithub.com/prettier/prettier/pull/15968) by [@sosukesuzuki](https://togithub.com/sosukesuzuki)) [Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles. ```ts // Input @Component({ template: `{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.4 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.5 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} ``` ##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.com/sosukesuzuki)) In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**. When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data. `tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension. We decide to treat it as a JSON file for now to avoid the extra configuration step. To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file ```json { "overrides": [ { "files": ["tsconfig.json", "jsconfig.json"], "options": { "parser": "jsonc" } } ] } ``` ``` ```Configuration
📅 Schedule: Branch creation - "after 2am and before 3am" (UTC), Automerge - "after 1am and before 2am" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.