---
title: "@vitest/pretty-format 4.1.2 Breaking Changes on npm"
description: "What each @vitest/pretty-format release removed, renamed or changed: 11 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@vitest/pretty-format
last_updated: 2026-12-04
---

# @vitest/pretty-format breaking changes

@vitest/pretty-format 4.1.2 (March 26, 2026) is its newest release with breaking changes. The first: Removed Config.outputLength. Every breaking API change we have recorded in @vitest/pretty-format on npm: 11 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.2`, released November 25, 2026. [Source repository](https://github.com/vitest-dev/vitest)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.0.0](#v-4-0-0) to [4.1.2](#v-4-1-2): 2 breaking changes in 2 versions.

## @vitest/pretty-format 4.1.2 breaking changes

@vitest/pretty-format 4.1.2, released March 26, 2026: 1 breaking change.

- **Removed** `Config.outputLength`  

Config.outputLength was removed in @vitest/pretty-format 4.1.2 [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.1.2)

## @vitest/pretty-format 4.1.1 breaking changes

@vitest/pretty-format 4.1.1, released March 23, 2026: 1 breaking change.

- **Behavior changed**  

Formatting a large object now produces truncated output instead of the full text, so code that depends on the complete formatted string may need to change. [github.com](https://github.com/vitest-dev/vitest/releases/tag/v4.1.1)

## @vitest/pretty-format 4.0.0 breaking changes

@vitest/pretty-format 4.0.0, released October 22, 2025: 8 breaking changes.

- **Behavior changed**  

Output produced by pretty-format now includes the contents of shadow roots, so snapshots and other output that depend on it may change and need updating. [github.com](https://github.com/vitest-dev/vitest/releases/tag/v4.0.0)
- **Signature changed** `Colors.comment`  

Was comment: {close: string open: string}; now comment: {close: string; open: string;}. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `Colors.content`  

Was content: {close: string open: string}; now content: {close: string; open: string;}. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `Colors.prop`  

Was prop: {close: string open: string}; now prop: {close: string; open: string;}. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `Colors.tag`  

Was tag: {close: string open: string}; now tag: {close: string; open: string;}. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `Colors.value`  

Was value: {close: string open: string}; now value: {close: string; open: string;}. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `plugins`  

Was const plugins: {AsymmetricMatcher: NewPlugin DOMCollection: NewPlugin DOMElement: NewPlugin Immutable: NewPlugin ReactElement: NewPlugin ReactTestComponent: NewPlugin Error: NewPlugin}; now const plugins: {AsymmetricMatcher: NewPlugin... [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)
- **Signature changed** `Theme`  

Was type Theme = Required<{comment?: string content?: string prop?: string tag?: string value?: string}>; now type Theme = Required<{comment?: string; content?: string; prop?: string; tag?: string; value?: string;}>. [npmjs.com](https://www.npmjs.com/package/@vitest/pretty-format/v/4.0.0)

## @vitest/pretty-format 4.0.0-beta.11 breaking changes

@vitest/pretty-format 4.0.0-beta.11, released October 22, 2025: 1 breaking change.

- **Behavior changed**  

Pretty-format output now includes the contents of shadow roots, so snapshots that use it may change and need to be updated. [github.com](https://github.com/vitest-dev/vitest/releases/tag/v4.0.0-beta.11)

## Related packages

- [@vitest/ui](https://since.dev/packages/npm/@vitest/ui.md)
- [@vitest/expect](https://since.dev/packages/npm/@vitest/expect.md)
- [@vitest/browser](https://since.dev/packages/npm/@vitest/browser.md)
- [@vitest/browser-playwright](https://since.dev/packages/npm/@vitest/browser-playwright.md)
- [vitest](https://since.dev/packages/npm/vitest.md)
- [@vitest/coverage-istanbul](https://since.dev/packages/npm/@vitest/coverage-istanbul.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
