Config resolution decoupled from server; pluggable benchmark API
v5.0.0-beta.7
4 features10 enhancements13 fixesThis release4 featuresNew capabilities10 enhancementsImprovements to existing features13 fixesBug fixesAI-tallied from the release notes
From the original release noteView original ↗
🚨 Breaking Changes
- Separate config resolution from the server creation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10554 <samp>(1c0ec)</samp>
🚀 Features
- Add toggable
injectCjsGlobalsoption - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10709 <samp>(82671)</samp> - Promote fsModuleCache to a top-level option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10734 <samp>(78ed7)</samp>
- Support non-ascii characters in
for/eachtitle placeholders - by @k-yle in https://github.com/vitest-dev/vitest/issues/10773 <samp>(15e0a)</samp> - benchmark: Add pluggable benchmark provider API - by @GuillaumeLagrange and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10799 <samp>(86c70)</samp>
🐞 Bug Fixes
- Disable server HMR before plugins read it in their config hook - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10731 <samp>(e060b)</samp>
- Close the pool before the Vite servers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10725 <samp>(96fa6)</samp>
- Remove listeners in the typecheck worker's
off- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10741 <samp>(d758b)</samp> - Keep per-file isolation in vm pools when maxWorkers is 1 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10743 <samp>(83ab9)</samp>
- Node.js 20 deprecation warning for
ci.yml- by @hirehamir in https://github.com/vitest-dev/vitest/issues/10759 <samp>(2127f)</samp> - Prevent node builtins double prefix - by @malobre in https://github.com/vitest-dev/vitest/issues/10630 and https://github.com/vitest-dev/vitest/issues/10767 <samp>(22d35)</samp>
- Set non-zero exit code when teardown throws during close - by @zakcutner and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10794 <samp>(22116)</samp>
- Don't race the typechecker spawn grace period on windows - by @xevrion in https://github.com/vitest-dev/vitest/issues/10814 <samp>(b19e5)</samp>
- browser:
- Preserve pre-transform request defaults - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10748 <samp>(b6060)</samp>
- Fix error stacktrace location off-by-one - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/10724 <samp>(62b8d)</samp>
- Inlined awaited import should not trigger syntax error after transform - by @smeng9, Shaoyu Meng and Claude Opus 4.8 (1M context) in https://github.com/vitest-dev/vitest/issues/10784 <samp>(51acd)</samp>
- Mock window.print to avoid hanging - by @aaravjaichand in https://github.com/vitest-dev/vitest/issues/7375 and https://github.com/vitest-dev/vitest/issues/10798 <samp>(66d95)</samp>
- pool:
- Vm pools to respect cgroupsv2 memory limit - by @milas in https://github.com/vitest-dev/vitest/issues/10721 <samp>(3923c)</samp>
🏎 Performance
- Serve warm modules to workers in one round-trip, enable the node compile cache - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10708 <samp>(b144a)</samp>
- Make the Node compile cache opt-in, persist worker caches on teardown - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10742 <samp>(941bc)</samp>
- Reuse compiled code across vm pool contexts and prewarm the module graph - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10744 <samp>(d8b04)</samp>
- Bundle vitest's own dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10685 <samp>(c0508)</samp>
- browser:
- Open browser sessions adaptively instead of maxWorkers upfront - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10726 <samp>(6db8d)</samp>
- Cut per-file round trips - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10730 <samp>(3feef)</samp>
- Stop serving framework sourcemaps in headless runs - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10728 <samp>(6aefb)</samp>
- Prewarm the browser while the Vite server starts - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10727 <samp>(c1767)</samp>
- Pre-bundle the vitest runtime in optimizeDeps - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10713 <samp>(de631)</samp>
- coverage:
- Speed up v8 report generation (bounded-memory merge + precompiled globs) - by @toxik, Claude Opus 4.8 (1M context) and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10506 <samp>(b05e5)</samp>
- Reduce RPC data and unnecessary serializations - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10781 <samp>(7e7e3)</samp>
View changes on GitHub
Fetched July 24, 2026


