hono
4.13.19 · 16 Nov 2026MIT113.6M / weekRepositoryHomepagenpmAtom feed
Upgrading hono From 1.6.4 to 2.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 7
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
44 advisories still affect 2.0.0
- Hono allows bypass of CSRF Middleware by a request without Content-Type header.moderate · GHSA-2234-fmw7-43wr
- Hono missing validation of cookie name on write path in setCookie()moderate · GHSA-26pp-8wgv-hjvm
- Hono: app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded pathsmoderate · GHSA-2gcr-mfcq-wcc3
Upgrading to 4.13.16 clears them.
Release by release
- Breaking
v2.0.0 has been released, with support for Deno, Bun, API cleanup, some new features, and BREAKING CHANGES.
- Breaking
There are many BREAKING CHANGES.
- Breaking
The way to import Middleware on Deno has been changed.
- Breaking
Cookie middleware is obsolete.
- Breaking
10 other lines we could not sort, mostly version bumps
- 2.0.0
Basic auth middleware for Bun.
- 2.0.0
Serve static middleware for Bun.
- 2.0.0
Compress middleware for Deno.
- 2.0.0
hono/mod.tswill not export middleware,hono/middleware.tsexport them instead. - 2.0.0
cookie,body-parse,graphql-server, andmustachemiddleware are obsolete. - 2.0.0
Cookie parsing and setting became default functions with
c.req.cookie()andc.cookie(). - 2.0.0
Body parsing became a default function with
c.req.parseBody(). - 2.0.0
Webstie for Hono honojs.dev.
- 2.0.0
Clean up the API.
- 2.0.0
Prepare to create third-party middleware.
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.