Yusukebe Hono Versions Save

Web Framework built on Web Standards

v4.2.6

1 week ago

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.2.5...v4.2.6

v4.2.5

1 week ago

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.2.4...v4.2.5

v4.2.4

2 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.2.3...v4.2.4

v4.2.3

3 weeks ago

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.2.2...v4.2.3

v4.2.2

3 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.2.1...v4.2.2

v4.2.1

4 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.2.0...v4.2.1

v4.2.0

4 weeks ago

Hono v4.2.0 is now available! Let's take a look at the new features.

Added more algorithms for JWT

The number of algorithms that JWT util can handle has increased from only 3 to 13! This means that JWT util now implements many of the algorithms supported by JWT.

  • HS256
  • HS384
  • HS512
  • RS256
  • RS384
  • RS512
  • PS256
  • PS384
  • PS512
  • ES256
  • ES384
  • ES512
  • EdDSA

You can use these algorithms from the JWT middleware or JWT helpers. Thanks @Code-Hex!

Method Override Middleware

Method Override Middleware has been added. This middleware override the method of the real request with the specified method.

HTML form does not allow you to send a DELETE method request. Instead, by sending an input with name as _method and a value of DELETE, you can call the handler registered in app.delete().

const app = new Hono()

// If no options are specified, the value of `_method` in the form,
// e.g. DELETE, is used as the method.
app.use('/posts', methodOverride({ app }))

app.delete('/posts', (c) => {
  // ....
})

Trailing Slash Middleware

Trailing Slash Middleware resolves the handling of Trailing Slashes in GET requests. You can use appendTrailingSlash and trimTrailingSlash functions.

For example, it redirects a GET request to /about/me to /about/me/.

import { Hono } from 'hono'
import { appendTrailingSlash } from 'hono/trailing-slash'

const app = new Hono({ strict: true })

app.use(appendTrailingSlash())
app.get('/about/me/', (c) => c.text('With Trailing Slash'))

Thanks @rnmeow!

Other features

All Updates

New Contributors

Full Changelog: https://github.com/honojs/hono/compare/v4.1.7...v4.2.0

v4.2.0-rc.1

1 month ago

This is a pre-release.

v4.1.7

1 month ago

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.1.6...v4.1.7