npm / @hono/standard-validator
@hono/standard-validator
What changed in @hono/standard-validator 0.2 to 0.4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking1 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@hono/standard-validator 0.42 changes
New APIs and options 1
Adds a utility to sort errors by form and field errors, with field errors also sorted by path.
Fixes and other changes 1
The default 400 response body for header validation no longer includes the cookie header.
@hono/standard-validator 0.31 changes
Breaking changes 1
Uses InferInput from hono/validator instead of a local copy to avoid duplication; requires hono >=4.11.2.
@hono/standard-validator 0.24 changes
Fixes and other changes 4
Uses
InferInputrather thanInferOutputfor hook data, matching the raw input value passed to the hook at runtime.Preserves literal union types in the RPC client's input type, while retaining wire-level types for non-literal values.
Fixes an undefined Response type.
Error handling now respects the type of Response returned by the hook.