Download Latest Version v4.13.13 source code.zip (2.0 MB) Google Add to Preferred Sources
Home / v4.13.13
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-10-04 1.3 kB
v4.13.13 source code.tar.gz 2026-10-04 1.8 MB
v4.13.13 source code.zip 2026-10-04 2.0 MB
Totals: 3 Items   3.8 MB 0

Mount Middleware

app.mount() is now available as the Mount Middleware, hono/mount. It is just a handler, so you register it with app.all():

:::ts
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:

:::diff

- app.mount('/itty-router', ittyRouter.handle)
+ app.all('/itty-router/*', mount(ittyRouter.handle))

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.13.12...v4.13.13

Source: README.md, updated 2026-10-04