Impact Score: 5/10
Vitest v4.1.2 โ Release Notes & Engineering Impact
Source available โ automated, not human-reviewed
Component: vitest ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-01.
โก Executive Summary (TL;DR)
Vitest v4.1.2. Source highlight: This release bumps Vitest's `flatted` version and removes version pinning to resolve `flatted`'s CVE related issues (https://github.com/vitest-dev/vitest/issues/9975).
Who Does This Impact? (Role-Based Analysis)
๐ป Software Engineers & Devs
Check the source notes against the package and APIs you use before upgrading.
๐ Product & Engineering Leads
Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.
โ๏ธ DevOps & Security
Verify the target version, runtime requirements and rollback procedure in the official documentation.
๐ง Bug Fixes & Patches (6)
- Don't resolve `setupFiles` from parent directory - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 <samp>(7aa93)</samp>
- Ensure sequential mock/unmock resolution - by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9830 <samp>(7c065)</samp>
- **browser**: Take failure screenshot if `toMatchScreenshot` can't capture a stable screenshot - by @macarie in https://github.com/vitest-dev/vitest/issues/9847 <samp>(faace)</samp>
- **coverage**: Correct `coverageConfigDefaults` values and types - by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 <samp>(b3c99)</samp>
- **pretty-format**: Fix output limit over counting - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 <samp>(d3b7a)</samp>
- Disable colors if agent is detected - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 <samp>(6f97b)</samp>
๐ View Raw Release Notes (Original Developer Log)
This release bumps Vitest's `flatted` version and removes version pinning to resolve `flatted`'s CVE related issues (https://github.com/vitest-dev/vitest/issues/9975).
### ๐ Bug Fixes
- Don't resolve `setupFiles` from parent directory - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 [<samp>(7aa93)</samp>](https://github.com/vitest-dev/vitest/commit/7aa937776)
- Ensure sequential mock/unmock resolution - by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9830 [<samp>(7c065)</samp>](https://github.com/vitest-dev/vitest/commit/7c06598db)
- **browser**: Take failure screenshot if `toMatchScreenshot` can't capture a stable screenshot - by @macarie in https://github.com/vitest-dev/vitest/issues/9847 [<samp>(faace)</samp>](https://github.com/vitest-dev/vitest/commit/faace1fbe)
- **coverage**: Correct `coverageConfigDefaults` values and types - by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 [<samp>(b3c99)</samp>](https://github.com/vitest-dev/vitest/commit/b3c992cb2)
- **pretty-format**: Fix output limit over counting - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 [<samp>(d3b7a)</samp>](https://github.com/vitest-dev/vitest/commit/d3b7a40fa)
- Disable colors if agent is detected - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 [<samp>(6f97b)</samp>](https://github.com/vitest-dev/vitest/commit/6f97b55dd)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.1...v4.1.2)