@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @vitest/mocker From 3.0.6 to 3.2.7
16 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 20
- new
- 60
- fixes
Before you upgrade
Tick each one off as you go- Deprecated3.2.0
Security
2 advisories still affect 3.2.7
- Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mockmoderate · GHSA-82fw-gwwq-j7x9
- Vitest: Code injection via unauthenticated manual mock registrationmoderate · GHSA-qxg6-89mg-rqv8
Upgrading to 4.1.12 clears them.
Release by release
- Fixed
browser: Check fs access in builtin commands [backport to v3]
- Fixed
- Fixed
Pin last supported vite-node version
- Fixed
- New
api: Add
allowWriteandallowExecoptions toapi[backport to v3] - Fixed
browser: Disable client
cdpAPI whenallowWrite/allowExec: false[backport to v3]
- New
- Fixed
Rerun tests when project's setup file is changed
- Fixed
Revert
expect.anyreturn type - Fixed
Run only the name plugin last, not all config plugins
- Fixed
- New
Support rolldown-vite
- New
- Fixed
Use sha1 instead of md5 for hashing
- Fixed
expect: Fix chai import in dts
- Fixed
expect: Export
DeeplyAllowMatchers
- Fixed
- Deprecated
Deprecate
workspacein favor ofprojects - New
Provide
ctx.signal - New
Support custom colors for
test.name - New
Add
vi.mockObjectto automock any object
- Deprecated
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.