v0.5.0
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
- refactor: compose by @yusukebe in https://github.com/yusukebe/hono/pull/116
- feat:
app.notFound()
andapp.onError()
by @yusukebe in https://github.com/yusukebe/hono/pull/117
Full Changelog: yusukebe/hono@v0.4.2...v0.5.0