Packages

hono

4.13.19 · 16 Nov 2026MIT113.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.6

10 Jun 2022Where it was published

1.6.4 is the newest release of 1.x.

In short

4 new1 faster2 changed

Security

44 advisories affect 1.4.6; 4.13.16 fixes them

39 more

Release note

Summary

Now, JSX MIddleware is available! You can write JSX for rendering HTML.

import { Hono } from 'hono'
import { h, jsx } from 'hono/jsx'

export const app = new Hono()
app.use('*', jsx())

const Layout = (props: { children?: string }) => {
  return (
    <html>
      <body>{props.children}</body>
    </html>
  )
}

const Top = (props: { message: string }) => {
  return (
    <Layout>
      <h1>{props.message}</h1>
    </Layout>
  )
}

app.get('/', (c) => {
  const message = 'Hello! Hono!!'
  return c.render(<Top message={message} />)
})

export default app

tsconfig.json

{
  "compilerOptions": {
    "jsx": "react",
    "jsxFactory": "h"
  }
}

Enjoy!

What's Changed

  • notFound support asyc/await

  • Update README.md

  • Export md5 function in src/utils/crypto.ts

  • utils/html: Improve performance escape()

  • middleware/jsx: Support dangerouslySetInnerHTML and some special spec

  • middleware/jsx: Introduce memo.

  • Jsx middleware

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.