v4.12.9
honojs/honov4.12.9Mar 23, 2026by yusukebe
AI Summary
This release includes several bug fixes across request handling, client types, SSG, service workers, and CORS. It adds a new type for picking responses by status code and fixes CORS behavior to properly reflect request origin when credentials are enabled with wildcard.
Key Highlights
- Fixed parseBody removal from bodyCache to prevent TypeError
- Added PickResponseByStatusCode type for client
- Fixed SSG_CONTEXT passing for forGetInfoURLRequest
- Fixed service-worker fire() fallback behavior to match handle()
- Fixed CORS to reflect request origin when credentials is true with wildcard
New Features
- PickResponseByStatusCode type for client
Full Release Notes
## What's Changed * fix(request): remove `parseBody` from bodyCache to prevent TypeError by @yusukebe in https://github.com/honojs/hono/pull/4807 * feat(client): add `PickResponseByStatusCode` type by @yusukebe in https://github.com/honojs/hono/pull/4791 * fix(ssg): pass SSG_CONTEXT to forGetInfoURLRequest by @yuintei in https://github.com/honojs/hono/pull/4810 * fix(service-worker): make `fire()` fallback behavior consistent with `handle()` by @yusukebe in https://github.com/honojs/hono/pull/4821 * fix(cors): reflect request origin when credentials is true with wildcard by @ctonneslan in https://github.com/honojs/hono/pull/4813 ## New Contributors * @yuintei made their first contribution in https://github.com/honojs/hono/pull/4810 * @ctonneslan made their first contribution in https://github.com/honojs/hono/pull/4813 **Full Changelog**: https://github.com/honojs/hono/compare/v4.12.8...v4.12.9