---
title: "zod-validation-error 5.0.0 Breaking Changes on npm"
description: "What each zod-validation-error release removed, renamed or changed: 13 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/zod-validation-error
last_updated: 2026-12-04
---

# zod-validation-error breaking changes

zod-validation-error 5.0.0 (November 3, 2025) is its newest release with breaking changes, 2 of them. The first: Error messages now follow a consistent expected/received format in zod-validation-error 5.0.0. Every breaking API change we have recorded in zod-validation-error on npm: 13 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.0`, released November 3, 2025. [Source repository](https://github.com/causaly/zod-validation-error)

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 [5.0.0](#v-5-0-0): 2 breaking changes in 1 version.

## zod-validation-error 5.0.0 breaking changes

zod-validation-error 5.0.0, released November 3, 2025: 2 breaking changes.

- **Behavior changed**  

Validation error messages were rewritten to the 'expected \<expectation>, received \<realization>' format. Code that matches on the exact wording of these messages must be updated. [github.com](https://github.com/causaly/zod-validation-error/releases/tag/v5.0.0)
- **Signature changed** `ErrorMapOptions`  

Was type ErrorMapOptions = {dateLocalization: boolean | Intl.LocalesArgument; numberLocalization: boolean | Intl.LocalesArgument; displayInvalidFormatDetails: boolean; allowedValuesSeparator: string; allowedValuesLastSeparator: string |... [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/5.0.0)

## zod-validation-error 4.0.0 breaking changes

zod-validation-error 4.0.0, released July 22, 2025: 11 breaking changes.

- **Removed** `errorMap`  

errorMap was removed in zod-validation-error 4.0.0 [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Default changed**  

The package's default export is now the v4 API, so code relying on the default import gets v4 behavior. Import the older version explicitly if you need it. [github.com](https://github.com/causaly/zod-validation-error/blob/v.4.0.0/CHANGELOG.md)
- **Signature changed**  

The API was updated to split error mapping and message building into separate parts, so existing calls that combine them need to be updated. [github.com](https://github.com/causaly/zod-validation-error/blob/v.4.0.0/CHANGELOG.md)
- **Signature changed** `createMessageBuilder`  

Was function createMessageBuilder(props?: CreateMessageBuilderProps): MessageBuilder; now function createMessageBuilder(partialOptions?: Partial\<MessageBuilderOptions>): MessageBuilder. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `FromZodErrorOptions`  

Was type FromZodErrorOptions = {messageBuilder: MessageBuilder;} | CreateMessageBuilderProps; now type FromZodErrorOptions = {messageBuilder: MessageBuilder;} | Partial\<MessageBuilderOptions>. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `FromZodIssueOptions`  

Was type FromZodIssueOptions = {messageBuilder: MessageBuilder;} | Omit\<CreateMessageBuilderProps, 'maxIssuesInMessage'>; now type FromZodIssueOptions = {messageBuilder: MessageBuilder;} | Partial\<Omit\<MessageBuilderOptions... [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `isZodErrorLike`  

Was function isZodErrorLike(err: unknown): err is zod.ZodError; now function isZodErrorLike(err: unknown): err is zod.$ZodError. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `ValidationError.details`  

Was details: Array\<zod.ZodIssue>; now details: Array\<zod.$ZodIssue>. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `ValidationError.name`  

Was name: 'ZodValidationError'; now name: typeof ZOD_VALIDATION_ERROR_NAME. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)
- **Signature changed** `ZodError`  

Was type ZodError = zod.ZodError; now type ZodError = zod.$ZodError. [npmjs.com](https://www.npmjs.com/package/zod-validation-error/v/4.0.0)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## 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.
