@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
5.1.1 is the newest release of 5.x.
In short
1 deprecated9 fixed
- Deprecated
Warn when deprecated
deps.optimizer.webis used
Security
2 advisories affect 5.0.1; 5.0.3 fixes them
- ModerateVitest: Code injection via unauthenticated manual mock registrationGHSA-qxg6-89mg-rqv8 · 21 Oct 2026Fixed in 5.0.3
- ModerateVitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fixGHSA-xp26-3454-mjgp · 21 Oct 2026Fixed in 5.0.3
Release note
The section about @vitest/mocker of a note shared by several packages.
Bug Fixes
Exit 1 when vitest list fails collection
Keep parse error details in static collection
Avoid recursive prototype in automocking
Prevent false Vitest import resolution
Keep metadata file when clearing the cache
Correct typos in error message and comments
Resolve ResolvedConfig exactOptionalPropertyTypes errors
Share the server on self-referencing
extends- Deprecated
Warn when deprecated
deps.optimizer.webis used types: Make public declarations self-contained
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.