Packages

hono

4.13.19 · 16 Nov 2026MIT112.7M / weekRepositoryHomepagenpmAtom feed

Your version

0.4.0

16 Feb 2022Where it was published

0.5.10 is the newest release of 0.4.x.

In short

3 breaking

  • Breaking

    Add option for no strict routing

  • Breaking

    Do some refactoring

  • Breaking

    Nested route

Security

43 advisories affect 0.4.0; 4.13.16 fixes them

38 more

Release note

Breaking changes!!!

app.route is changed:

Chained route is obsolete:

app.route('/')
  .get((c) => c.text('get /'))
// ^^^ Not working now!!

Now, app.route enables nested route:

const book = app.route('/book')
book.get('/', (c) => c.text('List books')) // => GET /book
book.get('/:id', (c) => {
  return c.text('Get Book: ' + c.req.param('id'))) // => GET /book/:id
})

What's Changed

  • Breaking

    Add option for no strict routing

  • Breaking

    Do some refactoring

  • Breaking

    Nested route

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.