Packages

hono

4.13.19 · 16 Nov 2026MIT114.5M / weekRepositoryHomepagenpmAtom feed

Your version

4.9.0

7 Aug 2025Where it was published

4.13.19 is the newest release of 4.x.

In short

2 deprecated15 new1 fixed1 changed1 internal

  • Deprecated

    ssg: Mark old hook options as deprecated #4331

  • Deprecated

    ssg: Mark old hook options as deprecated

Security

49 advisories affect 4.9.0; 4.13.16 fixes them

44 more

Release note

Release Notes

Hono v4.9.0 is now available!

This release introduces several enhancements and utilities.

The main highlight is the new parseResponse utility that makes it easier to work with RPC client responses.

parseResponse Utility

The new parseResponse utility provides a convenient way to parse responses from Hono RPC clients (hc). It automatically handles different response formats and throws structured errors for failed requests.

import { parseResponse, DetailedError } from 'hono/client'

// result contains the parsed response body (automatically parsed based on Content-Type)
const result = await parseResponse(client.hello.$get()).catch(
  // parseResponse automatically throws an error if response is not ok
  (e: DetailedError) => {
    console.error(e)
  }
)

This makes working with RPC client responses much more straightforward and type-safe.

Thanks @NamesMT!

New features

  • bun: Allow importing upgradeWebSocket and websocket directly #4242

  • aws-lambda: Specify content-type as binary #4250

  • jwt: Add validation for the issuer (iss) claim #4253

  • jwk: Add headerName to JWK middleware #4279

  • cookie: Add generateCookie and generateSignedCookie helpers #4285

  • serve-static: Use join to correct path resolution #4291

  • jwt: Expose utility function verifyWithJwks for external use #4302

  • Add parseResponse util to smartly parse hc's Response #4314

  • Deprecated

    ssg: Mark old hook options as deprecated #4331

All changes

  • aws-lambda: Specify content-type as binary

  • jwt: Added validation for the issuer (iss) claim

  • jwk: Add custom headerName to JWK middleware

  • cookie: generateCookie and generateSignedCookie helpers

  • serve-static: Use join to correct path resolution

  • jwt: Exposing utility function verifyWithJwks for external use

  • Add parseResponse util to smartly parse hc's Response

  • Deprecated

    ssg: Mark old hook options as deprecated

  • bun: Exports functions related to websocket

  • Next

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.