Packages

hono

4.13.19 · 16 Nov 2026MIT113.6M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major16 Jul 2022Where it was published

2.7.8 is the newest release of 2.x.

In short

7 breaking2 new10 changed

  • 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

    Body parse middleware is obsolete.

  • Breaking

    GraphQL Server middleware is obsolete.

  • Breaking

    Mustache middleware is obsolete.

Security

44 advisories affect 2.0.0; 4.13.16 fixes them

39 more

Release note

v2.0.0 :tada::tada::tada::tada::tada::tada::tada::tada::tada::tada

v2.0.0 has been released, with support for Deno, Bun, API cleanup, some new features, and BREAKING CHANGES.
And the website honojs.dev has been opened!

Summary

  • Support Deno.

  • Support Bun.

  • Basic auth middleware for Bun.

  • Serve static middleware for Bun.

  • Compress middleware for Deno.

  • hono/mod.ts will not export middleware, hono/middleware.ts export them instead.

  • cookie, body-parse, graphql-server, and mustache middleware are obsolete.

  • Cookie parsing and setting became default functions with c.req.cookie() and c.cookie().

  • Body parsing became a default function with c.req.parseBody().

  • Webstie for Hono honojs.dev.

  • Clean up the API.

  • Prepare to create third-party middleware.

Breaking changes

There are many BREAKING CHANGES.

  • Breaking

    The way to import Middleware on Deno has been changed.

  • Breaking

    Cookie middleware is obsolete.

  • Breaking

    Body parse middleware is obsolete.

  • Breaking

    GraphQL Server middleware is obsolete.

  • Breaking

    Mustache middleware is obsolete.

Follow the migration guide:

github.com/honojs/hono/blob/master/docs/MIGRATI…

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.