Hono 4.13.20
Hono 4.13.20 shipped on November 22, 2026. Nine fixes, no new APIs, no deprecations. The tag lands nineteen days after 4.13.19 and closes a batch of client, compression and JSX reports from the issue tracker.
Fix List
- Client: class instances passed in the
initoptions are kept as they are instead of being flattened (PR #5650). - Compress middleware:
HEADrequests now receive the compressed response headers (PR #5651). - Cookie helper: a lone double quote is no longer accepted as a cookie value (PR #5652).
- WebSocket helper: the helper no longer depends on DOM-only types, which unblocks non-DOM type configurations (PR #5653).
- JSX DOM: the
useActionStatechanges removed by PR #5636 are restored (PR #5656). - JSX: the value of each async
Provideris isolated, so sibling providers no longer leak state into one another (PR #5660). - AWS Lambda and Lambda@Edge: a leading UTF-8 byte order mark in a text body is preserved (PR #5665).
Types
Two changes touch the type utilities. JSONParsed stays cheap for non-recursive types (PR #5658), and an optional property remains optional inside JSONParsed (PR #5664). Both are compile-time fixes. Nothing changes at runtime.
Upgrade
Run npm install [email protected]. If you rely on @hono/node-ws types with a non-DOM TypeScript configuration, this is the patch that fixes the errors. The full diff between 4.13.19 and 4.13.20 is available in the repository's compare view.