# What changed in @hono/standard-validator

> 7 changes in @hono/standard-validator 0.2 to 0.4 from its official release notes, upgrade guides and advisories: 1 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@hono/standard-validator/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @hono/standard-validator 0.4

### New APIs and options

- Adds a utility to sort errors by form and field errors, with field errors also sorted by path. (0.4.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.4.0)

### Fixes and other changes

- The default 400 response body for header validation no longer includes the cookie header. (0.4.1) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.4.1)

## @hono/standard-validator 0.3

### Breaking changes

- Uses InferInput from hono/validator instead of a local copy to avoid duplication; requires hono >=4.11.2. (0.3.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.3.0)

## @hono/standard-validator 0.2

### Fixes and other changes

- Uses `InferInput` rather than `InferOutput` for hook data, matching the raw input value passed to the hook at runtime. (0.2.3) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.2.3)
- Preserves literal union types in the RPC client's input type, while retaining wire-level types for non-literal values. (0.2.3) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.2.3)
- Fixes an undefined Response type. (0.2.1) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.2.1)
- Error handling now respects the type of Response returned by the hook. (0.2.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/standard-validator%400.2.0)
