# What changed in @hono/zod-validator

> 8 changes in @hono/zod-validator 0.7 to 5 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@hono/zod-validator/

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

## @hono/zod-validator 5

### Breaking changes

- c.req.json() now returns Promise<unknown> instead of Promise<any>; pass a type explicitly or use c.req.valid() with a validator. (5.0.0) — [upgrade guide](https://hono.dev/docs/guides/migrating-to-v5)

## @hono/zod-validator 0.9

### Breaking changes

- Using this release requires hono >=4.11.2. (0.9.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.9.0)

### Performance

- Case-insensitive header schema metadata is cached when validator middleware is created. (0.9.1) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.9.1)

## @hono/zod-validator 0.8

### Behavior and default changes

- The no-hook overload exposes the default typed 400 failure response, so it propagates to the RPC schema and appears as a typed 400 branch in hc<typeof app>. (0.8.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.8.0)

### Fixes and other changes

- The inferred middleware response is intersected with Response so zValidator middleware remains assignable to a plain MiddlewareHandler, avoiding a TS2322 regression. (0.8.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.8.0)
- The no-hook overload accepts undefined as the hook parameter alongside options.validationFunction, enabling that call to match the typed-failure path. (0.8.0) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.8.0)

## @hono/zod-validator 0.7

### Fixes and other changes

- Query input now supports union and optional types. (0.7.6) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.7.6)
- The hook's return value is now reflected in zValidator's return value. (0.7.5) — [release notes](https://github.com/honojs/middleware/releases/tag/%40hono/zod-validator%400.7.5)
