v0.4.0
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
- feat: add option for
no
strict routing by @yusukebe in https://github.com/yusukebe/hono/pull/103 - refactor: do some refactoring by @yusukebe in https://github.com/yusukebe/hono/pull/104
- feat: nested route by @yusukebe in https://github.com/yusukebe/hono/pull/105
Full Changelog: yusukebe/hono@v0.3.8...v0.4.0