Skip to content
Myr

docs: grammar issue (#4508)

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

* Fix MIGRATION.md * Fix CONTRIBUTING.md * Fix CODE_OF_CONDUCT.md

authored by WuMingDao · committed by GitHub · parent df7ac8d · Browse files · 3 files+14 added−14 removed
This commit

State

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

Diff stats

3 files+14 added−14 removed

  • other:+14 added−14 removed

3 files+14 added−14 removed

modified:docs/CODE_OF_CONDUCT.md+5 added-5 removed
modified:docs/CONTRIBUTING.md+2 added-2 removed
modified:docs/MIGRATION.md+7 added-7 removed
48 unmodified lines
49```5051### Others5253- The default value of `docType` option in JSX Renderer Middleware is now `true`.53- The default value of the `docType` option in JSX Renderer Middleware is now `true`.54- `FC` in `hono/jsx` does not pass `children`. Use `PropsWithChildren`.55- Some Mime Types are removed https://github.com/honojs/hono/pull/2119.56- Types for chaining routes with middleware matter: https://github.com/honojs/hono/pull/2046.57- Types for the validator matter: https://github.com/honojs/hono/pull/2130.
5 unmodified lines
6364### `c.req` is now `HonoRequest`6566`c.req` becomes `HonoRequest`, not `Request`.67Although APIs are almost same, but if you want to access `Request`, use `c.req.raw`.67Although APIs are almost the same, if you want to access `Request`, use `c.req.raw`.6869```ts70app.post('/', async (c) => {71 const metadata = c.req.raw.cf?.hostMetadata?
4 unmodified lines
76### StaticRouter is obsolete7778You can't use `StaticRouter`.7980### Validator is changed80### Validator has been changed8182Previous Validator Middleware is obsolete.83You can still use `hono/validator`, but the API has been changed.84See [the document](https://hono.dev).8586### `serveStatic` is provided from Adapter86### `serveStatic` is provided from the Adapter8788Serve Static Middleware is obsolete. Use Adapters instead.8990```ts
57 unmodified lines
148```149150## v2.2.5 to v2.3.0151152There is a breaking change associated to the security update.152There is a breaking change associated with the security update.153154### Basic Auth Middleware and Bearer Auth Middleware155156If you are using Basic Auth and Bearer Auth in your Handler (nested), change as follows:
54 unmodified lines
211```212213## v1.6.4 to v2.0.0214215There are many BREAKING CHANGES. Please follow instructions below.215There are many BREAKING CHANGES. Please follow the instructions below.216217### The way to import Middleware on Deno has been changed218219**DO NOT** import middleware from `hono/mod.ts`.
43 unmodified lines
263```ts264import { bodyParse } from 'hono/body-parse' // <--- Obsolete!265```266267You do not have to use Body parse middleware to parse request body. Use `c.req.parseBody()` method instead.267You do not have to use Body parse middleware to parse the request body. Use `c.req.parseBody()` method instead.268269```ts270// Parse Request body271app.post('', (c) => {
24 unmodified lines