Packages

hono

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

Upgrading hono From 2.2.5 to 2.7.8

28 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.2.5Clears its 44 advisories4.13.16Latest4.13.19
  1. 2.2.5yours
  2. 2.3.0security
  3. 11 releases
  4. 2.5.7security
  5. 14 releases
  6. 2.7.8target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.3.0
  • Breaking2.3.0
  • Breaking2.3.0

Security

  • Vulnerability detail: The handler is called even if it's a preflight request.

    2.5.7
  • Vulnerability detail: Even if "unauthorized", the Handler will be executed.

    2.3.0

Release by release

  1. 2.7.8nothing new or fixed in the note

  2. 2.7.7

    9 Feb 20232 new
    • New

      Use added app's errorHandler

    • New

      Use added app's errorHandler with comose()

  3. 2.7.6

    5 Feb 20232 fixes
    • Fixed

      Fix 404 error on Serve Static Middleware

    • Fixed

      serve-static: Decode url pathname

  4. 2.7.5

    23 Jan 20231 fix
    • Fixed

      context: Fixed bug raw Response content-type is overwritten

  5. 2.7.4

    22 Jan 20232 fixes
    • Fixed

      request: Make optional param type correct

    • Fixed

      context: Set the header values of already set

  6. 2.7.3

    18 Jan 20232 fixes
    • Fixed

      context: Enable destruction such json

    • Fixed

      Fixed type error for optional parameters

  7. 2.7.2

    8 Jan 20231 fix
    • Fixed

      cors: Fix bugs handling pre-flight

  8. 2.7.1nothing new or fixed in the note

8 other lines we could not sort, mostly version bumps
  • Header may return undefined

    2.7.8
  • Revert "feat: use added app's errorHandler (#871)"

    2.7.7
  • Missing mime types

    2.7.6
  • Remove unnecessary individual strict mode family options

    2.7.3
  • Log a more detailed error stack.

    2.6.2
  • cookie should return string | undefined

    2.6.0
  • Updated CORS

    2.5.7
  • Update MIGRATION.md

    2.5.3

20 internal lines (docs, tests, tooling) left out.

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.