v4.12.13

honojs/honov4.12.13Apr 15, 2026by yusukebe

AI Summary

This release introduces new options for trailing slash handling and cache behavior, along with improved type inference for response types in multi-handler on() routes.

Key Highlights

  • Added `skip` option to trailing-slash middleware
  • Added `onCacheNotAvailable` option to cache middleware
  • Fixed type inference for response type from last handler in app.on with 9-/10-handler overloads

New Features

  • trailing-slash middleware skip option
  • cache middleware onCacheNotAvailable option
  • Improved type inference for app.on handlers

Full Release Notes

## What's Changed
* fix(types): infer response type from last handler in app.on 9-/10-handler overloads by @T4ko0522 in https://github.com/honojs/hono/pull/4865
* feat(trailing-slash): add `skip` option by @yusukebe in https://github.com/honojs/hono/pull/4862
* feat(cache): add `onCacheNotAvailable` option by @yusukebe in https://github.com/honojs/hono/pull/4876

## New Contributors
* @T4ko0522 made their first contribution in https://github.com/honojs/hono/pull/4865

**Full Changelog**: https://github.com/honojs/hono/compare/v4.12.12...v4.12.13