Skip to content

Releases: honojs/hono

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

v0.3.3

02 Feb 23:47
Compare
Choose a tag to compare

What's Changed

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

02 Feb 08:57
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.3.1...v0.3.2

v0.3.1

02 Feb 01:32
Compare
Choose a tag to compare

What's Changed

Full Changelog: yusukebe/hono@v0.3.0...v0.3.1

v0.3.0

01 Feb 13:18
Compare
Choose a tag to compare

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

Full Changelog: yusukebe/hono@v0.2.4...v0.3.0