hono
4.13.19 · 16 Nov 2026MIT114.5M / weekRepositoryHomepagenpmAtom feed
4.13.19 is the newest release of 4.x.
In short
2 deprecated1 fixed2 internal
- Deprecated
app.mount()still works in v4 but is deprecated and will be removed in v5. - Deprecated
mount: Introduce Mount Middleware and deprecate
app.mount
Security
5 advisories affect 4.13.13; 4.13.16 fixes them
- ModerateHono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)GHSA-46wx-v44x-9hh2 · 12 Nov 2026Fixed in 4.13.16
- ModerateHono: `validator('form')` skips validation for `multipart/form-data` requests with extra parametersGHSA-4h7h-rv7c-7m2v · 12 Nov 2026Fixed in 4.13.16
- ModerateHono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefixGHSA-4m76-xfj5-7975 · 12 Nov 2026Fixed in 4.13.16
- ModerateHono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminatorGHSA-h7mg-cq63-vhpq · 12 Nov 2026Fixed in 4.13.16
- LowHono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injectionGHSA-3gg2-335m-rxc6 · 12 Nov 2026Fixed in 4.13.16
Release note
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():
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))What's Changed
jsx: Allow JSXNode function component results
- Deprecated
mount: Introduce Mount Middleware and deprecate
app.mount
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.