Skip to content
Myr

docs(migration): add descriptions (#904)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent d7e67d1 · Browse files · 1 file+14 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−1 removed

  • other:+14 added−1 removed

1 file+14 added−1 removed

modified:docs/MIGRATION.md+14 added-1 removed
44 unmodified lines
4546app.get('/static/*', serveStatic({ root: './' }))47```4849## `serveStatic` for Cloudflare Workers "Service Worker mode" is obsolete49### `serveStatic` for Cloudflare Workers "Service Worker mode" is obsolete5051For Cloudflare Workers, the `serveStatic` is obsolete in Service Worker mode.5253Note: Service Worker mode is that using `app.fire()`.54We recommend use "Module Worker" mode with `export default app`.5556### Use `type` to define the Generics for `new Hono`5758You must use `type` to define the Generics for `new Hono`. Do not use `interface`.5960```ts61// Should use `type`62type Bindings = {63 TOKEN: string64}6566const app = new Hono<{ Bindings: Bindings }>()67```6869## v2.7.1 - v2.x.x7071### Current Validator Middleware is deprecated72
167 unmodified lines