v4.13.1

honojs/honov4.13.1Aug 7, 2026by yusukebe

AI Summary

Bug fixes for router counting, stream handling, and ETag logic. It ensures proper slash counting in routes and handles writer lock re-acquisition on pipe errors.

Key Highlights

  • Fixed trie-router counting every slash a pattern consumes.
  • Fixed stream writer lock re-acquisition when `pipe()` throws.
  • Fixed ETag skipping unsafe methods or error responses on non-* cases.

Full Release Notes

## What's Changed
* fix(trie-router): count every slash a pattern consumes by @Jaybhade in https://github.com/honojs/hono/pull/5189
* fix(utils/stream): re-acquire writer lock when pipe() throws by @Sriharsha-dev369 in https://github.com/honojs/hono/pull/4988
* fix(etag): skip unsafe methods or error responses on non-* case by @na-trium-144 in https://github.com/honojs/hono/pull/5196

## New Contributors
* @Jaybhade made their first contribution in https://github.com/honojs/hono/pull/5189
* @Sriharsha-dev369 made their first contribution in https://github.com/honojs/hono/pull/4988

**Full Changelog**: https://github.com/honojs/hono/compare/v4.13.0...v4.13.1