Releases: honojs/hono
Releases · honojs/hono
v0.5.1
What's Changed
- refactor: create
utils/crypto.ts
by @yusukebe in https://github.com/yusukebe/hono/pull/118 - feat: etag middleware by @yusukebe in https://github.com/yusukebe/hono/pull/119
- chore: update benchmark script by @yusukebe in https://github.com/yusukebe/hono/pull/120
- refactor: compose by @yusukebe in https://github.com/yusukebe/hono/pull/121
- fix: mime-type bug by @yusukebe in https://github.com/yusukebe/hono/pull/122
Full Changelog: yusukebe/hono@v0.5.0...v0.5.1
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
v0.4.2
What's Changed
- feat: basic auth middleware supports multiple users by @yusukebe in https://github.com/yusukebe/hono/pull/112
- Make ParamMap Array<[key, value]>. by @usualoma in https://github.com/yusukebe/hono/pull/113
- refactor: directory structure by @yusukebe in https://github.com/yusukebe/hono/pull/114
- feat: exports
RegExpRouter
by @yusukebe in https://github.com/yusukebe/hono/pull/115
Full Changelog: yusukebe/hono@v0.4.1...v0.4.2
v0.4.1
What's Changed
- chore: set up prettier by @yusukebe in https://github.com/yusukebe/hono/pull/106
- refactor: router must have only one hander by @yusukebe in https://github.com/yusukebe/hono/pull/107
- perf: Optimize router by @usualoma in https://github.com/yusukebe/hono/pull/108
- feat: RegExpRouter by @usualoma in https://github.com/yusukebe/hono/pull/109
- feat:
app.notFound
for setting default 404 not found by @yusukebe in https://github.com/yusukebe/hono/pull/110 - feat:
app.onError
for handling error by @yusukebe in https://github.com/yusukebe/hono/pull/111
Full Changelog: yusukebe/hono@v0.4.0...v0.4.1
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
v0.3.8
What's Changed
- chore: update nano-jsx example by @yusukebe in https://github.com/yusukebe/hono/pull/97
- refactor: remove not used files by @yusukebe in https://github.com/yusukebe/hono/pull/98
- docs: update readme by @yusukebe in https://github.com/yusukebe/hono/pull/99
- chore: fix hono-example-blog by @yusukebe in https://github.com/yusukebe/hono/pull/100
- chore: update examples by @yusukebe in https://github.com/yusukebe/hono/pull/101
- Added type to c.req.param key. by @usualoma in https://github.com/yusukebe/hono/pull/102
New Contributors
- @usualoma made their first contribution in https://github.com/yusukebe/hono/pull/102
Full Changelog: yusukebe/hono@v0.3.7...v0.3.8
v0.3.7
What's Changed
- feat: Add new shortcuts for request/response by @yusukebe in https://github.com/yusukebe/hono/pull/62
- Flamework to Framework by @metrue in https://github.com/yusukebe/hono/pull/95
- feat: exports buffer util by @yusukebe in https://github.com/yusukebe/hono/pull/96
Full Changelog: yusukebe/hono@v0.3.6...v0.3.7
v0.3.6
BREAKING CHANGES!!!
c.statusText()
is obsoleted!! Status text is set automatically.
What's Changed
- test: add default middleware test by @yusukebe in https://github.com/yusukebe/hono/pull/90
- refactor: remove default middleware by @yusukebe in https://github.com/yusukebe/hono/pull/91
- feat: auto set
statusText
by @yusukebe in https://github.com/yusukebe/hono/pull/93 - feat: check response type by @yusukebe in https://github.com/yusukebe/hono/pull/94
Full Changelog: yusukebe/hono@v0.3.5...v0.3.6
v0.3.5
What's Changed
- fix: default content-type by @yusukebe in https://github.com/yusukebe/hono/pull/88
- feat: add root option on mustache middleware by @yusukebe in https://github.com/yusukebe/hono/pull/89
Full Changelog: yusukebe/hono@v0.3.4...v0.3.5
v0.3.4
What's Changed
- fix: use require by @yusukebe in https://github.com/yusukebe/hono/pull/87
Full Changelog: yusukebe/hono@v0.3.3...v0.3.4