chore(deps): update all non-major dependencies
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @types/node (source) | ^22.5.0 -> ^22.6.1 |
||||
| @vitest/coverage-v8 (source) | ^2.0.5 -> ^2.1.1 |
||||
| changelogen | ^0.5.5 -> ^0.5.7 |
||||
| eslint (source) | ^9.9.0 -> ^9.11.1 |
||||
| pnpm (source) | 9.1.0 -> 9.11.0 |
||||
| typescript (source) | ^5.5.4 -> ^5.6.2 |
||||
| vitest (source) | ^2.0.5 -> ^2.1.1 |
Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
v2.1.1
🐞 Bug Fixes
-
browser:
- Make example test callbacks async - by @aqandrew in https://github.com/vitest-dev/vitest/issues/6484 (16aa7)
- Optimize vitest-browser-vue correctly - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6490 (5cbb0)
-
workspace:
- Resolve glob pattern once to avoid name collision - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6489 (36b5a)
View changes on GitHub
v2.1.0
This release makes another big change to the Browser Mode by introducing locators API:
test('renders blog posts', async () => {
const screen = page.render(<Blog />)
await expect.element(screen.getByRole('heading', { name: 'Blog' })).toBeInTheDocument()
const [firstPost] = screen.getByRole('listitem').all()
await firstPost.getByRole('button', { name: 'Delete' }).click()
expect(screen.getByRole('listitem').all()).toHaveLength(3)
})
You can use either vitest-browser-vue, vitest-browser-svelte or vitest-browser-react to render components and make assertions using locators. Locators are also available on the page object from @vitest/browser/context.
🚀 Features
-
api:
- Make spec into a class instead of a tuple - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6355 (874a1)
-
browser:
- Move page.config to server.config, add more docs - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6252 (af2b8)
- Make iframe scalable, improve documentation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6257 (74ca1)
- Introduce built-in locators - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6084 (3347f)
- Support v8 coverage - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6273 (34199)
- Support
userEvent.uploadin playwright provider - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6442 (cf148) - Support
--inspect- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6433 (0499a) - Support
--inspect-brk- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6434 (7ab0f)
-
cli:
- Extend existing list command to output only a list of file names - by @Ma-hawaj and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6392 (008f0)
-
coverage:
- Add
--exclude-after-remap- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6309 (5932a)
- Add
-
mocker:
- Introduce @vitest/mocker package, allow
{ spy: true }instead of a factory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6289 (95f02)
- Introduce @vitest/mocker package, allow
-
vitest:
- Add "provide" option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6253 (4409d)
- Add return type and promisable mockFactory - by @syi0808 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6139 (f5e0b)
- Add
vi.advanceTimersToNextFrame- by @bnjm and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6347 (8ff63) - Allow env to be stubbed to undefined - by @JSanchezIO and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6359 (c3b27)
🐞 Bug Fixes
- Correctly resolve nested mocks with
indexfile - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6266 (081cf) - Don't panic when coverage.reporter is a string - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6267 (7b37d)
- Align RawMatcherFn type definition with Jest - by @wheresrhys in https://github.com/vitest-dev/vitest/issues/6351 (d09f0)
- Cjs build of vite node server - by @AkaraChen in https://github.com/vitest-dev/vitest/issues/6389 (12e70)
- Allow inlining vite's cached dependencies - by @chriswheeldon-peakon in https://github.com/vitest-dev/vitest/issues/6284 (03208)
- Print unexpected error message if peer dependencies have a different version - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6446 (b992b)
- Ignore importer when resolving Vitest - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6469 (0b447)
-
expect.getState().testPathalways returns correct path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6472 (ac698) - UserEvent works consistently between providers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6480 (0b4da)
-
browser:
- Print correct stack trace for unhandled errors - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6134 (1da6c)
- Use documentElement as the root for selector - by @sheremet-va (d8077)
- Keep querying elements even if locator is created with elementLocator, add pubic @vitest/browser/utils - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6296 (30dc5)
- Produce valid config file if preview provider is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6305 (7f0ae)
- Correctly run in-source tests in the browser - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6440 (c8531)
- Exclude missed packages from optimization, print help message - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6445 (8d883)
- Define mocker as a dependency - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6476 (9560a)
-
coverage:
- Warn if
vitestand@vitest/*versions don't match - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6317 (e662c) - V8 to support source maps with multiple sources - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6120 (1f6cb)
- V8 to warn instead of crash when conversion fails - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6318 (91dea)
- Use project specific
vitenodefor uncovered files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6044 (da52d)
- Warn if
-
runner:
- Use
performance.nowinstead ofDate.nowfor duration - by @LuciNyan in https://github.com/vitest-dev/vitest/issues/6382 (fe489) - Async assertion auto await should timeout - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6391 (ad6e7)
- Use
-
snapshot:
- Reject multiple
toMatchInlineSnapshotupdates at the same location - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6332 (1606f) - Improve inline snapshot inside loop rejection - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6339 (e0368)
- Reject multiple
-
typecheck:
- Run both runtime and typecheck tests if
typecheck.includeoverlaps withinclude- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6256 (153ff)
- Run both runtime and typecheck tests if
-
types:
- Allow Callbacks Passed to before*/after* to Return Anything - by @LuciNyan in https://github.com/vitest-dev/vitest/issues/6393 (f6217)
-
ui:
- Remove "filters" flickering - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6463 (0223b)
- Render project name consistently - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6329 (94a18)
-
vite-node:
- Disable watcher if hmr is disabled - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6251 (c51c6)
- Fix watch on vite 6 - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6422 (c3ac4)
-
vitest:
- Update json reporter output - by @Emiyaaaaa in https://github.com/vitest-dev/vitest/issues/6064 (c9979)
- Add more type guards for --merge-reports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6307 (0a5d8)
- Always resolve vitest to the root version - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6369 (163d7)
- Dispose vmForks listeners to avoid memory leak - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6448 (2673c)
-
workspace:
- Correctly resolve workspace globs and file paths - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6316 (afdcb)
View changes on GitHub
unjs/changelogen (changelogen)
v0.5.7
🩹 Fixes
-
bump: Avoid using
+for canary suffix (#224)
❤️ Contributors
- Pooya Parsa (@pi0)
v0.5.6
🚀 Enhancements
🩹 Fixes
- github: Use bearer token (#180)
- Handle repo name with multiple segments (#219)
- Lowercase scope when filtering (#199)
💅 Refactors
- Replace
execawithexecSync(#222) - Use human readable date for canary versions (#223)
- Update execCommand (68127be)
🏡 Chore
- Apply automated lint fixes (72c407f)
- Update ci (bcb16cb)
- Update non major deps (7f714c9)
- Update to eslint v9 (fd40be9)
- Apply automated lint fixes (673255b)
- Update deps (3cfbe27)
❤️ Contributors
- Pooya Parsa (@pi0)
- Klein Petr (@kleinpetr)
- Wan Chiu (@wan54)
- Jianqi Pan (@Jannchie)
- Vasily Kuzin [email protected]
- Daniel Roe (@danielroe)
eslint/eslint (eslint)
v9.11.1
v9.11.0
Features
-
ec30c73feat: add "eslint/universal" to exportLinter(#18883) (唯然) -
c591da6feat: Add language to types (#18917) (Nicholas C. Zakas) -
492eb8ffeat: limit the name given toImportSpecifierinid-length(#18861) (Tanuj Kanti) -
19c6856feat: Addno-useless-constructorsuggestion (#18799) (Jordan Thomson) -
a48f8c2feat: add typeFormatterFunction, updateLoadedFormatter(#18872) (Francesco Trotta)
Bug Fixes
-
5e5f39bfix: add missing types forno-restricted-exportsrule (#18914) (Kristóf Poduszló) -
8f630ebfix: add missing types forno-param-reassignoptions (#18906) (Kristóf Poduszló) -
d715781fix: add missing types forno-extra-boolean-castoptions (#18902) (Kristóf Poduszló) -
2de5742fix: add missing types forno-misleading-character-classoptions (#18905) (Kristóf Poduszló) -
c153084fix: add missing types forno-implicit-coercionoptions (#18903) (Kristóf Poduszló) -
fa11b2efix: add missing types forno-empty-functionoptions (#18901) (Kristóf Poduszló) -
a0deed1fix: add missing types forcamelcaseoptions (#18897) (Kristóf Poduszló)
Documentation
-
e4e5709docs: correctprefer-object-has-owntype definition comment (#18924) (Nitin Kumar) -
91cbd18docs: add unicode abbreviations in no-irregular-whitespace rule (#18894) (Alix Royere) -
59cfc0fdocs: clarifyresultsMetainLoadedFormattertype (#18881) (Milos Djermanovic) -
adcc50ddocs: Update README (GitHub Actions Bot) -
4edac1adocs: Update README (GitHub Actions Bot)
Build Related
Chores
-
ca21a64chore: upgrade @eslint/js@9.11.0 (#18927) (Milos Djermanovic) -
a10f90achore: package.json update for @eslint/js release (Jenkins) -
e4e02ccrefactor: Extract processor logic into ProcessorService (#18818) (Nicholas C. Zakas) -
6d4484dchore: updates for v8.57.1 release (Jenkins) -
71f37c5refactor: use optional chaining when validating config rules (#18893) (lucasrmendonca) -
2c2805fchore: Add PR note to all templates (#18892) (Nicholas C. Zakas) -
7b852cerefactor: useDirectiveclass from@eslint/plugin-kit(#18884) (Milos Djermanovic) -
d594dddchore: update dependency @eslint/core to ^0.6.0 (#18863) (renovate[bot]) -
78b2421chore: Update change.yml (#18882) (Nicholas C. Zakas) -
a416f0achore: enable$ExpectTypecomments in .ts files (#18869) (Francesco Trotta)
v9.10.0
v9.9.1
pnpm/pnpm (pnpm)
v9.11.0
v9.10.0: pnpm 9.10
Minor Changes
-
Support for a new CLI flag,
--exclude-peers, added to thelistandwhycommands. When--exclude-peersis used, peer dependencies are not printed in the results, but dependencies of peer dependencies are still scanned #8506. -
Added a new setting to
package.jsonatpnpm.auditConfig.ignoreGhsasfor ignoring vulnerabilities by their GHSA code #6838.For instance:
{ "pnpm": { "auditConfig": { "ignoreGhsas": [ "GHSA-42xw-2xvc-qx8m", "GHSA-4w2v-q235-vp99", "GHSA-cph5-m8f7-6c5x", "GHSA-vh95-rmgr-6w4m" ] } } }
Patch Changes
- Throw an exception if pnpm switches to the same version of itself.
- Reduce memory usage during peer dependencies resolution.
Platinum Sponsors
|
|
|
Gold Sponsors
|
|
|
|
|
|
|
|
|
Our Silver Sponsors
|
|
|
|
|
|
|
|
|
|
v9.9.0
v9.8.0
v9.7.1
v9.7.0: pnpm 9.7
Minor Changes
-
Added pnpm version management. If the
manage-package-manager-versionssetting is set totrue, pnpm will switch to the version specified in thepackageManagerfield ofpackage.json#8363. This is the same field used by Corepack. Example:{ "packageManager": "[email protected]" } -
Added the ability to apply patch to all versions #8337.
If the key of
pnpm.patchedDependenciesis a package name without a version (e.g.pkg), pnpm will attempt to apply the patch to all versions of the package. Failures will be skipped. If there's only one version ofpkginstalled,pnpm patch pkgand subsequentpnpm patch-commit $edit_dirwill create an entry namedpkginpnpm.patchedDependencies. And pnpm will attempt to apply this patch to other versions ofpkgin the future. -
Change the default edit dir location when running
pnpm patchfrom a temporary directory tonode_modules/.pnpm_patches/pkg[@​version]to allow the code editor to open the edit dir in the same file tree as the main project #8379. -
Substitute environment variables in config keys #6679.
Patch Changes
-
pnpm installshould runnode-gyp rebuildif the project has abinding.gypfile even if the project doesn't have an install script #8293. - Print warnings to stderr #8342.
- Peer dependencies of optional peer dependencies should be automatically installed #8323.
Platinum Sponsors
|
|
|
Gold Sponsors
|
|
|
|
|
|
|
|
|
Our Silver Sponsors
|
|
|
|
|
|
|
|
|
|
|
v9.6.0: pnpm 9.6
Minor Changes
- Support specifying node version (via
pnpm.executionEnv.nodeVersioninpackage.json) for running lifecycle scripts per each package in a workspace #6720. - Overrides now support the
catalogs:protocol #8303.
Patch Changes
- The
pnpm deploycommand now supports thecatalog:protocol #8298. - The
pnpm outdatedcommand now supports thecatalog:protocol #8304. - Correct the error message when trying to run
pnpm patchwithoutnode_modules/.modules.yaml#8257. - Silent reporting fixed with the
pnpm execcommand #7608. - Add registries information to the calculation of dlx cache hash #8299.
Platinum Sponsors
|
|
|
Gold Sponsors
|
|
|
|
|
|
|
|
|
Our Silver Sponsors
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: pnpm-lock.yaml
ERR_PNPM_JSON_PARSE Expected property name or '}' in JSON at position 4 while parsing '{ // This is a comment! "name": "foo' in /tmp/renovate/repos/github/unjs/pkg-types/test/fixture/jsonc/package.json
1 | {
> 2 | // This is a comment!
| ^
3 | "name": "foo",
4 | "version": "1.0.0",
5 | }