@vitest/mocker
5.1.0 · 2 Nov 2026MIT190.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @vitest/mocker From 2.1.3 to 4.1.12
61 releases in betweennotes for 60
Counted from 60 of 61 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking4.1.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 2 advisories affecting 2.1.3
- 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
Release by release
- Fixed
mocker: Harden manual and redirect mocks [backport to v4]
- Fixed
- Fixed
Revive global concurrency limit for test lifecycle [backport to v4]
- Fixed
browser: Encode iframeId in tester iframe URL [backport to v4]
- Fixed
browser: Trigger playwright/chromium gc on lower disk availability [backport to v4]
- Fixed
mocker: Restrict redirect mocks to the fs allowlist [backport to v4]
- Fixed
- Fixed
browser: Check fs access in builtin commands [backport to v4]
- Fixed
vm: Fix external module resolve error with deps optimizer query for encoded URI [backport to v4]
- Fixed
- Fixed
Fix
importOriginalwith optimizer and query import [backport to v4] - by Hiroshi Ogawa, David Harris, Codexand Vladimir in #10546 - Fixed
browser: Wait for orchestrator readiness before resolving browser sessions [backport to v4] - by Vladimir and Séamus O'Connor in #10555
- Fixed
- Fixed
mocker: Hoist vi.mock() for vite-plus/test imports [backport to v4] - by Hiroshi Ogawa, LongYinan, Claude Opus 4.8 and Vladimir in #10548
- Fixed
- Fixed
- Fixed
browser: Disable client
cdpAPI whenallowWrite/allowExec: false[backport to v4] - Fixed
browser: Remove orphaned Playwright route when same module is mocked via multiple ids [backport to v4]
- Fixed
- Fixed
runner: Limit concurrency per task branch in addition to per leaf callbacks (backport)
- Fixed
- New
Stringify diff objects only once
- Fixed
browser: Provide project reference in
ToMatchScreenshotResolvePath - Fixed
Global
sequence.concurrent: truewith top-leveltest(..., { concurrent: false })+ depreactesequentialtest API and options - Fixed
browser: Simplify orchestrator otel carrier
- New
- New
coverage: Istanbul to support
instrumenteroption - Fixed
--project negation excludes browser instances
- Fixed
Project color label on html reporter
- Fixed
Fix
vi.defineHelpercalled as object method
- New
1 other line we could not sort, mostly version bumps
- 3.0.1
Revert "fix: re-apply default conditions if using vite 6 or later (#7071)"
9 internal lines (docs, tests, tooling) left out.
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.