Adapters are now separate packages
The runtime adapters are now published as their own packages: @hono/bun, @hono/deno, @hono/cloudflare-workers, @hono/aws-lambda, @hono/lambda-edge, @hono/netlify, @hono/vercel, and @hono/service-worker. @hono/deno is also on JSR.
hono/<adapter> still works in v4 but is deprecated and will be removed in v5. Migrating is an import change:
- import { serveStatic } from 'hono/bun'
+ import { serveStatic } from '@hono/bun'hono/cloudflare-pages is deprecated without a replacement package; Cloudflare recommends Workers with static assets.
What's Changed
- chore: migrate the package manager from bun to pnpm in #5433
- chore(package.json): invoke package scripts through pnpm instead of bun in #5434
- chore: replace prettier with oxfmt in #5435
- chore(deps): upgrade vitest to 5.0.1 in #5437
- chore: let oxfmt sort imports instead of eslint in #5442
- chore: replace eslint with oxlint in #5443
- chore: introduce Vite+ in #5444
- fix(types): allow returning a Blob as a response body in #5446
- chore: convert build scripts into plugins in #5448
- chore: stop editorconfig-checker from checking Markdown indent size in #5455
- ci: remove empty step left in
cr.ymlby the pnpm migration in #5456 - chore(deps): upgrade vite-plus to
1.0.0-rc.1in #5459 - feat(adapters): add @hono/bun as a workspace package in #5447
- chore(adapters/bun): ship ESM only in #5462
- feat(adapters): add the seven adapters as workspace packages in #5463
- feat(adapters/deno): publish to JSR in #5465
- test: move adapter runtime tests into
adapters/*in #5466
Full Changelog: v4.13.9...v4.13.10