Packages

hono

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

Your version

3.0.3

2 Mar 2023Where it was published

3.12.12 is the newest release of 3.x.

In short

2 new4 fixed1 internal

Security

44 advisories affect 3.0.3; 4.13.16 fixes them

39 more

Release note

Summary

This is a patch release but includes small new features.

Improve app.route()

We can specify "base path" with app.route:

const api = new Hono().route('/api')
const route = api.get('/search', (c) => c.jsonT({ ok: true }))

type AppType = typeof route

const client = hc<AppType>('/')
client.api.search.$get()

Improve handling types

jsonT() does not allow non-JSON object such as Date:

If $get() needs arguments but it's blank, it throw the type error.

What's Changed

  • Improve route()

  • Add missing MergePath

  • Let the app.request behave the same as fetch

  • jsonT: Check JSON type

  • client: Show type error if $get() needs args

  • pages/nextjs: Don't use route() if path is not passed

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.