Skip to content

v0.5.0

Compare
Choose a tag to compare
@yusukebe yusukebe released this 25 Feb 23:41

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: yusukebe/hono@v0.4.2...v0.5.0