Skip to content

Releases: honojs/hono

v0.5.1

01 Mar 19:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.5.0...v0.5.1

v0.5.0

25 Feb 23:41
Compare
Choose a tag to compare

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

v0.4.2

23 Feb 02:36
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.4.1...v0.4.2

v0.4.1

20 Feb 13:48
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.4.0...v0.4.1

v0.4.0

16 Feb 02:10
Compare
Choose a tag to compare

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

Full Changelog: yusukebe/hono@v0.3.8...v0.4.0

v0.3.8

14 Feb 06:37
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: yusukebe/hono@v0.3.7...v0.3.8

v0.3.7

07 Feb 20:55
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.3.6...v0.3.7

v0.3.6

05 Feb 14:33
Compare
Choose a tag to compare

BREAKING CHANGES!!!

c.statusText() is obsoleted!! Status text is set automatically.

What's Changed

Full Changelog: yusukebe/hono@v0.3.5...v0.3.6

v0.3.5

03 Feb 23:03
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.3.4...v0.3.5

v0.3.4

03 Feb 13:12
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.3.3...v0.3.4