v4.7.7

honojs/honov4.7.7Apr 15, 2025by yusukebe

AI Summary

This is a patch release (v4.7.7) for Hono, a web framework, focusing on bug fixes and minor improvements. The release includes fixes for trailing slash middleware handling HEAD requests, allowing Request objects in proxy initialization, and preventing errors when using c.header() on finalized responses.

Key Highlights

  • Fixed trailing slash middleware to properly handle HEAD requests
  • Fixed proxy to accept a Request object as proxyInit parameter
  • Fixed context to not throw errors when using c.header() on finalized responses
  • Added and then reverted Bundle Analysis CI workflow
  • Test improvements for Deno stream handling

Full Release Notes

## What's Changed
* fix(trailing-slash): handle HEAD request in trailing slash middleware  by @sushichan044 in https://github.com/honojs/hono/pull/4049
* fix(proxy): accept a Request object as proxyInit by @usualoma in https://github.com/honojs/hono/pull/4067
* test(deno): wait for stream to start before aborting request by @yusukebe in https://github.com/honojs/hono/pull/4068
* ci: Add Bundle Analysis by @katia-sentry in https://github.com/honojs/hono/pull/4072
* chore: Revert "ci: Add Bundle Analysis (#4072)" by @yusukebe in https://github.com/honojs/hono/pull/4076
* fix(context): don't throw the error with `c.header()` when it's finalized by @yusukebe in https://github.com/honojs/hono/pull/4078

## New Contributors
* @katia-sentry made their first contribution in https://github.com/honojs/hono/pull/4072

**Full Changelog**: https://github.com/honojs/hono/compare/v4.7.6...v4.7.7