Packages

hono

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

Upgrading hono From 2.7.0 to 4.13.19

301 releases in betweenevery note read

Other targets from 2.7.0Newest 2.x2.7.8Clears its 44 advisories4.13.16
  1. 2.7.0yours
  2. 8 releases
  3. 3.0.0major
  4. 26 releases
  5. 3.3.4security
  6. 31 releases
  7. 3.9.2security
  8. 13 releases
  9. 3.11.7security
  10. 5 releases
  11. 3.12.0security
  12. 12 releases
  13. 4.0.0major
  14. 25 releases
  15. 4.2.7security
  16. 28 releases
  17. 4.5.0security
  18. 7 releases
  19. 4.5.8security
  20. 8 releases
  21. 4.6.5security
  22. 43 releases
  23. 4.9.3security
  24. 2 releases
  25. 4.9.6security
  26. 4.9.7security
  27. 7 releases
  28. 4.10.2security
  29. 4.10.3security
  30. 4 releases
  31. 4.10.8security
  32. 4 releases
  33. 4.11.4security
  34. 2 releases
  35. 4.11.7security
  36. 5 releases
  37. 4.12.2security
  38. 1 release
  39. 4.12.4security
  40. 1 release
  41. 4.12.6security
  42. 4.12.7security
  43. 4 releases
  44. 4.12.12security
  45. 1 release
  46. 4.12.14security
  47. 1 release
  48. 4.12.16security
  49. 1 release
  50. 4.12.18security
  51. 2 releases
  52. 4.12.21security
  53. 3 releases
  54. 4.12.25security
  55. 1 release
  56. 4.12.27security
  57. 6 releases
  58. 4.12.34security
  59. 3 releases
  60. 4.13.3security
  61. 1 release
  62. 4.13.5security
  63. 1 release
  64. 4.13.7security
  65. 3 releases
  66. 4.13.11security
  67. 4 releases
  68. 4.13.16security
  69. 1 release
  70. 4.13.18security
  71. 4.13.19target
  72. 21 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking4.13.19
  • Breaking4.12.3
  • Breaking4.8.4
  • Breaking4.6.15
  • Breaking4.6.8
  • Breaking4.5.2
  • Breaking4.5.0
  • Breaking4.3.7
  • Breaking4.0.0
  • Breaking4.0.0

Security

Fixes 44 advisories affecting 2.7.0

  • This completes the fix for GHSA-4h7h-rv7c-7m2v.

    4.13.18
  • GHSA-39q9-qp46-w8xg

    4.13.18
  • GHSA-h25j-2p75-qj33

    4.13.18
  • GHSA-74fm-fwc7-3fwp

    4.13.18
  • GHSA-4m76-xfj5-7975

    4.13.16
  • GHSA-h7mg-cq63-vhpq

    4.13.16
  • GHSA-4h7h-rv7c-7m2v

    4.13.16
  • GHSA-3gg2-335m-rxc6

    4.13.16
  • Affects: csrf() in hono/csrf.

    4.13.16
  • Users who rely on path-scoped middleware with mount(), wildcard middleware with the default router, validator('form'), the css helper with untrusted values, or csrf() are strongly encouraged to upgrade to this version.

    4.13.16

Release by release

  1. 4.13.19

    Migration needed16 Nov 20262 new · 12 fixes
    • Breaking

      proxy: Drop Transfer-Encoding and Keep-Alive from the headers option

    • New

      secure-headers: Add an overwrite option

    • New

      jwt: Add a typ option to verify the token header

    • Fixed

      jsx: Render an async component that returns null, a boolean, or a number

  2. 4.13.18

    Security fix11 Nov 2026
    • Security

      This completes the fix for GHSA-4h7h-rv7c-7m2v.

    • Security

      GHSA-39q9-qp46-w8xg

    • Security

      GHSA-h25j-2p75-qj33

    • Security

      GHSA-74fm-fwc7-3fwp

  3. 4.13.17

    7 Nov 202616 fixes
    • Fixed

      cookie: Match the __Secure- and __Host- prefixes case-insensitively

    • Fixed

      utils/url: Do not match a query key across separators

    • Fixed

      etag,pretty-json: Cancel the discarded response body

    • Fixed

      client: Detect the JSON media type with whitespace before a parameter

  4. 4.13.16

    Security fix1 Nov 20261 fix
    • Security

      GHSA-4m76-xfj5-7975

    • Security

      GHSA-h7mg-cq63-vhpq

    • Security

      GHSA-4h7h-rv7c-7m2v

    • Security

      GHSA-3gg2-335m-rxc6

    • Security

      Affects: csrf() in hono/csrf.

    • Security

      Users who rely on path-scoped middleware with mount(), wildcard middleware with the default router, validator('form'), the css helper with untrusted values, or csrf() are strongly encouraged to upgrade to this version.

    • Fixed

      jwt: Reject a signature segment outside the base64url alphabet and a header with crit

  5. 4.13.15

    1 Nov 20262 fixes
    • Fixed

      auth: Escape backslashes in the WWW-Authenticate realm

    • Fixed

      context: Allow c.header() after the response body is consumed

  6. 4.13.14

    25 Oct 20261 new · 12 fixes
    • New

      bearer-auth: Allow MessageFunction to return a Response #5269

    • Fixed

      adapters: Accept Hono v5 prereleases in the hono peer range #5537

    • Fixed

      serve-static: Only serve GET and HEAD requests #5514

    • Fixed

      build: Keep barrel imports in the bundled d.ts #5557

  7. 4.13.13

    Deprecation4 Oct 20261 fix
    • 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

    • Fixed

      jsx: Allow JSXNode function component results

  8. 4.13.12

    30 Sep 20264 fixes
    • Fixed

      build: Keep internal types private in bundled d.ts and avoid a self-referencing JSX.IntrinsicElements

    • Fixed

      etag: Correctly match mixed-case header name in retainedHeader option

    • Fixed

      jsx: Add px to numeric gridGap, gridRowGap and gridColumnGap

    • Fixed

      combine: Return a Response from a short-circuiting middleware in some()

97 other lines we could not sort, mostly version bumps
  • noAuthenticationHeaderMessage => use noAuthenticationHeader.message

    4.10.6
  • invalidAuthenticationHeaderMessage => use invalidAuthenticationHeader.message

    4.10.6
  • invalidTokenMessage => use invalidToken.message

    4.10.6
  • Route Helper

    4.8.0
  • JWT Custom Header Location

    4.8.0
  • JSX Streaming Nonce Support

    4.8.0
  • CORS Dynamic allowedMethods

    4.8.0
  • JWK Allow Anonymous Access

    4.8.0
  • Cache Status Codes Option

    4.8.0
  • Service Worker fire() Function

    4.8.0

516 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.