v4.9.5
honojs/honov4.9.5Aug 29, 2025by yusukebe
AI Summary
This is a minor patch release (v4.9.5) for the Hono web framework that includes bug fixes and CORS enhancements. The release improves AWS Lambda query string handling, fixes service-worker fetch arguments, and adds async support for CORS origin and allowMethods options.
Key Highlights
- CORS middleware now supports async functions for `origin` and `allowMethods` options
- Fixed percent-encoded values preservation in query strings for AWS Lambda
- Fixed service-worker `app.fetch` arguments in handle function
- Replaced supertest with undici for internal testing
- Fixed language detection from path after getPath change
New Features
- Allow async functions for CORS `origin` option
- Allow async functions for CORS `allowMethods` option
- Correct origin function return type for asynchronously returning null or undefined
Full Release Notes
## What's Changed * chore: replace supertest with undici by @BarryThePenguin in https://github.com/honojs/hono/pull/4365 * fix(aws-lambda): preserve percent-encoded values in query strings by @yusukebe in https://github.com/honojs/hono/pull/4372 * feat(cors): Allow async functions for `origin` and `allowMethods` by @jobrk in https://github.com/honojs/hono/pull/4373 * feat(cors): Correct origin function return type asynchronously returning null or undefined for origin by @jobrk in https://github.com/honojs/hono/pull/4375 * fix(service-worker): correct args for `app.fetch` in `handle` by @yusukebe in https://github.com/honojs/hono/pull/4374 * fix(language-detector): Detect language from path after getPath changed by @iflamed in https://github.com/honojs/hono/pull/4369 ## New Contributors * @jobrk made their first contribution in https://github.com/honojs/hono/pull/4373 * @iflamed made their first contribution in https://github.com/honojs/hono/pull/4369 **Full Changelog**: https://github.com/honojs/hono/compare/v4.9.4...v4.9.5