Packages

hono

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

Your version

2.7.7

9 Feb 2023Where it was published

2.7.8 is the newest release of 2.x.

In short

2 new1 changed

Security

44 advisories affect 2.7.7; 4.13.16 fixes them

39 more

Release note

Summary

Since it only includes a slight change in the feature, released as a patch-release.

Enable onError of sub instances

This release enables onError of sub instances attached by app.route().

const app = new Hono()
const sub = new Hono()

sub.get('/ok', async (c) => {
  return c.text('ok')
})

sub.get('/error', () => {
  throw new Error('This is Error')
})

sub.onError((_, c) => {
  return c.text('onError by sub', 500)
})

app.route('/sub', sub)

If you access GET /sub/error, it will return onError by sub.

What's Changed

  • Use added app's errorHandler

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

  • Use added app's errorHandler with comose()

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.