Releases: honojs/hono
Releases Β· honojs/hono
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
v0.3.3
What's Changed
- feat: Basic-auth with polyfill by @yusukebe in https://github.com/yusukebe/hono/pull/86
Basic auth support Fastly Compute@Edge with polyfills.
Webpack example:
const path = require('path')
module.exports = {
entry: './index.js',
target: ['webworker'],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'bin'),
libraryTarget: 'this',
},
resolve: {
fallback: {
buffer: require.resolve('buffer/'),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
process: require.resolve('process/browser'),
},
}
}
Full Changelog: yusukebe/hono@v0.3.2...v0.3.3
v0.3.2
What's Changed
- fix: Unicode problem about atob/btoa by @yusukebe in https://github.com/yusukebe/hono/pull/85
Full Changelog: yusukebe/hono@v0.3.1...v0.3.2
v0.3.1
What's Changed
- fix: basic auth by @yusukebe in https://github.com/yusukebe/hono/pull/83
- fix: use
atob
for basic auth by @yusukebe in https://github.com/yusukebe/hono/pull/84
Full Changelog: yusukebe/hono@v0.3.0...v0.3.1
v0.3.0
BREAKING CHANGES!!
Now, builtin middleware are not in main package. You can't use Middleware.logger()
method. Call sub modules if needed:
import { Hono } from 'hono'
import { poweredBy } from 'hono/powered-by'
import { logger } from 'hono/logger'
const app = new Hono()
app.use('*', poweredBy())
app.use('*', logger())
What's Changed
- fix: about parsedBody on Request by @yusukebe in https://github.com/yusukebe/hono/pull/78
- example: fix blog example by @yusukebe in https://github.com/yusukebe/hono/pull/79
- feat: builtin middleware as sub module by @yusukebe in https://github.com/yusukebe/hono/pull/81
Full Changelog: yusukebe/hono@v0.2.4...v0.3.0