Zum Inhalt springen
verdict:

Vitest 5.0.0-beta.7

preview

note: die Zusammenfassung und die Release Notes sind auf Englisch

note: keine Zusammenfassung für dieses ältere Release

Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.

release-notesgithub.com/vitest-dev/vitest · 46 Zeilen
  1. ###    🚨 Breaking Changes
  2. - Separate config resolution from the server creation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10554 [<samp>(1c0ec)</samp>](https://github.com/vitest-dev/vitest/commit/1c0ec3444)
  3. ### &nbsp;&nbsp;&nbsp;🚀 Features
  4. - Add toggable `injectCjsGlobals` option &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10709 [<samp>(82671)</samp>](https://github.com/vitest-dev/vitest/commit/826714ece)
  5. - Promote fsModuleCache to a top-level option &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10734 [<samp>(78ed7)</samp>](https://github.com/vitest-dev/vitest/commit/78ed73afd)
  6. - Support non-ascii characters in `for/each` title placeholders &nbsp;-&nbsp; by @k-yle in https://github.com/vitest-dev/vitest/issues/10773 [<samp>(15e0a)</samp>](https://github.com/vitest-dev/vitest/commit/15e0af953)
  7. - **benchmark**: Add pluggable benchmark provider API &nbsp;-&nbsp; by @GuillaumeLagrange and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10799 [<samp>(86c70)</samp>](https://github.com/vitest-dev/vitest/commit/86c700ed8)
  8. ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
  9. - Disable server HMR before plugins read it in their config hook &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10731 [<samp>(e060b)</samp>](https://github.com/vitest-dev/vitest/commit/e060b8fa9)
  10. - Close the pool before the Vite servers &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10725 [<samp>(96fa6)</samp>](https://github.com/vitest-dev/vitest/commit/96fa6d73d)
  11. - Remove listeners in the typecheck worker's `off` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10741 [<samp>(d758b)</samp>](https://github.com/vitest-dev/vitest/commit/d758b4755)
  12. - Keep per-file isolation in vm pools when maxWorkers is 1 &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10743 [<samp>(83ab9)</samp>](https://github.com/vitest-dev/vitest/commit/83ab9a44f)
  13. - Node.js 20 deprecation warning for `ci.yml` &nbsp;-&nbsp; by @hirehamir in https://github.com/vitest-dev/vitest/issues/10759 [<samp>(2127f)</samp>](https://github.com/vitest-dev/vitest/commit/2127fa6ce)
  14. - Prevent node builtins double prefix &nbsp;-&nbsp; by @malobre in https://github.com/vitest-dev/vitest/issues/10630 and https://github.com/vitest-dev/vitest/issues/10767 [<samp>(22d35)</samp>](https://github.com/vitest-dev/vitest/commit/22d353a80)
  15. - Set non-zero exit code when teardown throws during close &nbsp;-&nbsp; by @zakcutner and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10794 [<samp>(22116)</samp>](https://github.com/vitest-dev/vitest/commit/22116feb7)
  16. - Don't race the typechecker spawn grace period on windows &nbsp;-&nbsp; by @xevrion in https://github.com/vitest-dev/vitest/issues/10814 [<samp>(b19e5)</samp>](https://github.com/vitest-dev/vitest/commit/b19e5ece9)
  17. - **browser**:
  18. - Preserve pre-transform request defaults &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10748 [<samp>(b6060)</samp>](https://github.com/vitest-dev/vitest/commit/b60605ca7)
  19. - Fix error stacktrace location off-by-one &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **OpenCode** in https://github.com/vitest-dev/vitest/issues/10724 [<samp>(62b8d)</samp>](https://github.com/vitest-dev/vitest/commit/62b8d3b36)
  20. - Inlined awaited import should not trigger syntax error after transform &nbsp;-&nbsp; by @smeng9, **Shaoyu Meng** and **Claude Opus 4.8 (1M context)** in https://github.com/vitest-dev/vitest/issues/10784 [<samp>(51acd)</samp>](https://github.com/vitest-dev/vitest/commit/51acd5778)
  21. - Mock window.print to avoid hanging &nbsp;-&nbsp; by @aaravjaichand in https://github.com/vitest-dev/vitest/issues/7375 and https://github.com/vitest-dev/vitest/issues/10798 [<samp>(66d95)</samp>](https://github.com/vitest-dev/vitest/commit/66d95af84)
  22. - **pool**:
  23. - Vm pools to respect cgroupsv2 memory limit &nbsp;-&nbsp; by @milas in https://github.com/vitest-dev/vitest/issues/10721 [<samp>(3923c)</samp>](https://github.com/vitest-dev/vitest/commit/3923cab3d)
  24. ### &nbsp;&nbsp;&nbsp;🏎 Performance
  25. - Serve warm modules to workers in one round-trip, enable the node compile cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10708 [<samp>(b144a)</samp>](https://github.com/vitest-dev/vitest/commit/b144ab56e)
  26. - Make the Node compile cache opt-in, persist worker caches on teardown &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10742 [<samp>(941bc)</samp>](https://github.com/vitest-dev/vitest/commit/941bc8361)
  27. - Reuse compiled code across vm pool contexts and prewarm the module graph &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10744 [<samp>(d8b04)</samp>](https://github.com/vitest-dev/vitest/commit/d8b040c63)
  28. - Bundle vitest's own dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10685 [<samp>(c0508)</samp>](https://github.com/vitest-dev/vitest/commit/c050842b6)
  29. - **browser**:
  30. - Open browser sessions adaptively instead of maxWorkers upfront &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10726 [<samp>(6db8d)</samp>](https://github.com/vitest-dev/vitest/commit/6db8de2e2)
  31. - Cut per-file round trips &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10730 [<samp>(3feef)</samp>](https://github.com/vitest-dev/vitest/commit/3feefd9e2)
  32. - Stop serving framework sourcemaps in headless runs &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10728 [<samp>(6aefb)</samp>](https://github.com/vitest-dev/vitest/commit/6aefb3d91)
  33. - Prewarm the browser while the Vite server starts &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10727 [<samp>(c1767)</samp>](https://github.com/vitest-dev/vitest/commit/c17677a83)
  34. - Pre-bundle the vitest runtime in optimizeDeps &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10713 [<samp>(de631)</samp>](https://github.com/vitest-dev/vitest/commit/de63174f5)
  35. - **coverage**:
  36. - Speed up v8 report generation (bounded-memory merge + precompiled globs) &nbsp;-&nbsp; by @toxik, **Claude Opus 4.8 (1M context)** and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10506 [<samp>(b05e5)</samp>](https://github.com/vitest-dev/vitest/commit/b05e5d634)
  37. - Reduce RPC data and unnecessary serializations &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10781 [<samp>(7e7e3)</samp>](https://github.com/vitest-dev/vitest/commit/7e7e35cb4)
  38. ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.0-beta.6...v5.0.0-beta.7)

auf github ansehenimported 2026-09-28 über npm