github honojs/hono v0.5.0

latest releases: v4.2.7, v4.2.6, v4.2.5...
2 years ago

BREAKING CHANGES!!

app.notFound and app.onError are changed:

// Custom Not Found Response
app.notFound((c) => c.text('404', 404))

// Handle Error and return custom Error Response
app.onError((err, c) => {
  console.error(`${err}`)
  return c.text('500', 500)
})

What's Changed

Full Changelog: v0.4.2...v0.5.0

Don't miss a new hono release

NewReleases is sending notifications on new releases.