v4.13.13
app.mount() is now available as the Mount Middleware, hono/mount. It is just a handler, so you register it with app.all():
import { Router as IttyRouter } from 'itty-router'
import { Hono } from 'hono'
import { mount } from 'hono/mount'
const ittyRouter = IttyRouter()
ittyRouter.get('/hello', () => new Response('Hello from itty-router'))
const app = new Hono()
app.all('/itty-router/*', mount(ittyRouter.handle))
app.mount() still works in v4 but is deprecated and will be removed in v5. Migrating is a one-line change:
- app.mount('/itty-router', ittyRouter.handle)
+ app.all('/itty-router/*', mount(ittyRouter.handle))
- test(client): simulate network error for undefined route in parseResponse test in https://github.com/honojs/hono/pull/5439
- docs(request): fix jsdoc comments for some getters in https://github.com/honojs/hono/pull/5445
- fix(jsx): allow JSXNode function component results in https://github.com/honojs/hono/pull/5476
- feat(mount): introduce Mount Middleware and deprecate
app.mountin https://github.com/honojs/hono/pull/5221
Full Changelog: https://github.com/honojs/hono/compare/v4.13.12...v4.13.13
v16.4.0-canary.59
- Followup from #99249 remove some redundant tests and enable missing assertions all the time: #99605
- Simplify turbo-tasks-backend guards and execution contexts: #99599
- Add allocation and memory data to the trace-server MCP protocol: #98546
- turbo-tasks-backend: check access in track_modification and only track Data on serialization invalidation: #99581
- Fix CI break caused by #98932: #99621
- Fix: Unnecessary Suspense fallback triggered by URL update: #99612
- Don't suspend client params on shallow URL updates: #99611
- Add React Compiler memoization preservation option: #98589
Huge thanks to @lukesandberg, @sokra, @acdlite, and @wbinnssmith for helping!