v4.12.19
honojs/honov4.12.19May 16, 2026by yusukebe
AI Summary
This minor release includes several bug fixes and new features for the Hono web framework. Key improvements include making the serveStatic options parameter optional, fixing cookie handling to return the first cookie when duplicates exist, adding generic type support to bearer-auth, implementing vary headers for cache keying, and adding a bytes() method to request.
Key Highlights
- Fix serveStatic options parameter to be optional in all adapters
- Fix cookie handling to return the first cookie when multiple cookies have the same name
- Make bearerAuth generic for typed context in verifyToken
- Add support for keying cache entries by configured vary headers
- Add bytes() method to request object
New Features
- bearerAuth now supports generic typed context in verifyToken
- Cache entries can be keyed by configured vary headers
- Request object now has bytes() method for parsing request body as bytes
- Upgraded @hono/node-server to v2 with improved abort handling
Full Release Notes
## What's Changed * ci: pin GitHub Actions to SHAs by @yusukebe in https://github.com/honojs/hono/pull/4932 * fix(serveStatic): make options parameter optional in all adapters by @mixelburg in https://github.com/honojs/hono/pull/4934 * fix(cookie): return the first cookie when there are multiple cookies with the same name by @usualoma in https://github.com/honojs/hono/pull/4922 * feat(bearer-auth): make bearerAuth generic for typed context in verifyToken by @justinnais in https://github.com/honojs/hono/pull/4913 * feat(cache): key cache entries by configured vary headers by @usualoma in https://github.com/honojs/hono/pull/4915 * feat(request): add `bytes()` by @yusukebe in https://github.com/honojs/hono/pull/4921 * fix(stream): upgrade `@hono/node-server` to v2 and fix abort handling by @yusukebe in https://github.com/honojs/hono/pull/4940 ## New Contributors * @justinnais made their first contribution in https://github.com/honojs/hono/pull/4913 **Full Changelog**: https://github.com/honojs/hono/compare/v4.12.18...v4.12.19