# Vitest v5.0.4 — Release & Upgrade Intelligence
- **Product:** Vitest (https://vitest.dev)
- **Version:** v5.0.4
- **Released:** Oct 12, 2026
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/vitest/updates/v5.0.4/

## Executive Summary (TL;DR)
Vitest v5.0.4. Source highlight: &nbsp;&nbsp;&nbsp;🚀 Features

## New Features
- Tag cache directories with CACHEDIR.TAG &nbsp;-&nbsp; by @lifeiscontent in https://github.com/vitest-dev/vitest/issues/11461 <samp>(a8ea3)</samp>
- Support `test.ui.theme` option &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11499 <samp>(1da66)</samp>
- Highlight selector multiple matches in trace view &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11489 <samp>(5abba)</samp>
- Print how many tests were affected and a total when running `--changed` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11424 <samp>(a2336)</samp>
- Add an option to cache dependencies instead of statically parsing them &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11515 <samp>(c0601)</samp>
- Add fit and zoom controls to trace viewer &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11490 <samp>(f5dd9)</samp>

## Improvements
- Reuse fsModuleCache when filtering by source &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11428 <samp>(7ebd9)</samp>
- **spy**: Reset only mocks that were called or reconfigured &nbsp;-&nbsp; by @johan-gorter and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11197 <samp>(28ef9)</samp>

## Bug Fixes
- Fail the run on git and location filter errors &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11430 <samp>(30d03)</samp>
- Enable fsModuleCache by default &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11435 <samp>(ad208)</samp>
- Track project files and mocks with --changed &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11432 <samp>(b0f2b)</samp>
- Refactor caching, fix `:` in project and change the shape of `results` cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11453 <samp>(9673c)</samp>
- Keep full `$` string values when `taskTitleValueFormatTruncate` is 0 &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11485 <samp>(4f7e1)</samp>
- Resolve node builtins in client environments &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11417 <samp>(56b31)</samp>
