Hono 4.13.19
Hono 4.13.19 was released on November 16, 2026. It is a maintenance patch: sixteen changes, thirteen of them fixes and two of them new options, plus a documentation pass over JSDoc annotations in middleware and helpers. No breaking changes, no deprecations.
Overview
The bulk of the patch sits in the JSX DOM renderer, which absorbs eight fixes and one type-level correction. The rest is spread across the Bun adapter, the proxy helper, method override middleware, combine middleware, the Lambda@Edge adapter, and the shared type utilities. Routing and the core request/response pipeline are untouched.
New Options
secureHeaders() accepts an overwrite option
The secure headers middleware can now replace header values that are already present on the response instead of leaving them as they are. That matters when an upstream middleware or a handler has written a value you want tightened, for example a weaker HSTS policy set by a reverse proxy library, or a cached header from a template helper. Without the option, the middleware's own set is skipped for headers that already exist.
jwt() verification takes a typ option
The JWT middleware can now check the typ field of the token header. A service that issues and accepts several kinds of token, such as access and refresh tokens signed with the same secret, can reject anything whose declared type does not match what the endpoint expects. Prior to this release the header type was not part of verification.
Fixes
JSX DOM
- An async component that resolves to
null, a boolean, or a number now renders correctly instead of being dropped by the renderer (PR 5594). useActionStateis aligned with React 19 behavior (PR 5635).- A form's pending state is reset when the submitted action rejects, so the form does not stay stuck in its pending visual state (PR 5636).
- An
ErrorBoundarystays in sync when its parent re-renders (PR 5638). - Keyed components keep their order when an update reorders them (PR 5637).
- A falsy Suspense fallback is preserved rather than treated as missing (PR 5644).
- Attributes and effects are restored when Suspense children suspend a second time (PR 5642).
Adapters and middleware
- Bun: errors thrown inside a WebSocket handler are now forwarded to
onErrorinstead of escaping the adapter (PR 5620). - proxy:
Transfer-EncodingandKeep-Aliveare dropped from theheadersoption, which previously forwarded hop-by-hop headers that the upstream connection had already consumed (PR 5640). - method-override: the request body is dropped when a request is overridden to
GETorHEAD(PR 5641). - combine:
every()continues along the chain when aConditionreturns true (PR 5392). - Lambda@Edge: a
204result no longer carries a body, which the platform rejected (PR 5643).
Types and docs
JSONParsedstops at a recursive JSON type instead of expanding it indefinitely (PR 5645).- JSDoc parameter types and missing annotations were corrected across middleware and helpers (PR 5409).
Deprecations
None.
Upgrade
npm install [email protected]. Two behavior changes deserve a check before you deploy. If a client sends a form body to an endpoint that relies on methodOverride() to reach a GET handler, that endpoint will no longer receive the body. And if you pass a custom headers object to proxy(), remove Transfer-Encoding and Keep-Alive from your configuration, since the middleware now strips them anyway.
Full changelog: v4.13.18...v4.13.19.