# Vitest v2.1.0 — Release & Upgrade Intelligence
- **Product:** Vitest (https://vitest.dev)
- **Version:** v2.1.0
- **Released:** Sep 12, 2024
- **Impact Score:** 7/10
- **Breaking Changes:** Source flagged
- **Canonical Analysis:** https://changelogs.us/vitest/updates/v2.1.0/

## Executive Summary (TL;DR)
Vitest v2.1.0. Source highlight: This release makes another big change to the Browser Mode by introducing locators API:

## Breaking Changes & Deprecations
- Potential Breaking Change - **workspace**:

## New Features
- Make spec into a class instead of a tuple &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6355 <samp>(874a1)</samp>
- Move page.config to server.config, add more docs &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6252 <samp>(af2b8)</samp>
- Make iframe scalable, improve documentation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6257 <samp>(74ca1)</samp>
- Introduce built-in locators &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6084 <samp>(3347f)</samp>
- Support v8 coverage &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6273 <samp>(34199)</samp>
- Support `userEvent.upload` in playwright provider &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6442 <samp>(cf148)</samp>

## Bug Fixes
- Correctly resolve nested mocks with `index` file &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6266 <samp>(081cf)</samp>
- Don't panic when coverage.reporter is a string &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6267 <samp>(7b37d)</samp>
- Align RawMatcherFn type definition with Jest &nbsp;-&nbsp; by @wheresrhys in https://github.com/vitest-dev/vitest/issues/6351 <samp>(d09f0)</samp>
- Cjs build of vite node server &nbsp;-&nbsp; by @AkaraChen in https://github.com/vitest-dev/vitest/issues/6389 <samp>(12e70)</samp>
- Allow inlining vite's cached dependencies &nbsp;-&nbsp; by @chriswheeldon-peakon in https://github.com/vitest-dev/vitest/issues/6284 <samp>(03208)</samp>
- Print unexpected error message if peer dependencies have a different version &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6446 <samp>(b992b)</samp>
