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
Provenance
- Commit
d3479a3- Tree
52b4bc3- Author
WuMingDao <146366930+WuMingDao@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
df7ac8d
3 files changed+14 added−14 removed
modified:docs/CODE_OF_CONDUCT.md+5 added-5 removed
12 unmodified lines13141516171817181920212216 unmodified lines3940414243434445464733 unmodified lines8182838485858687888914 unmodified lines10410510610710810810911011111216 unmodified lines12 unmodified linesdiverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for ourcommunity include:Examples of behavior that contribute to a positive environment for ourcommunity includes:
- Demonstrating empathy and kindness toward other people- Being respectful of differing opinions, viewpoints, and experiences- Giving and gracefully accepting constructive feedback16 unmodified lines## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards ofacceptable behavior and will take appropriate and fair corrective action inresponse to any behavior that they deem inappropriate, threatening, offensive,response to any behavior that they deem inappropriate, threatening, or offensive,or harmful.
Community leaders have the right and responsibility to remove, edit, or rejectcomments, commits, code, wiki edits, issues, and other contributions that are33 unmodified linesbehavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series**Community Impact**: A violation through a single incident or a seriesof actions.
**Consequence**: A warning with consequences for continued behavior. Nointeraction with the people involved, including unsolicited interaction with14 unmodified linesViolating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community**Community Impact**: Demonstrating a pattern of violation of the communitystandards, including sustained inappropriate behavior, harassment of anindividual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within16 unmodified linesmodified:docs/CONTRIBUTING.md+2 added-2 removed
33 unmodified lines3435363738383940414243444546474848495051524 unmodified lines33 unmodified lines
## Third-party middleware
Third-party middleware is not in the core.It is allowed to depend on other libraries or work only in specific environments, such as only Cloudflare Workers. For examples:It is allowed to depend on other libraries or work only in specific environments, such as Cloudflare Workers. For example:
- GraphQL Server middleware- Firebase Auth middleware- Sentry middleware
You can make a third-party middleware by yourself.It may be under the "honojs organization" and distributed in the `@honojs` namespace.
The monorepo "[honojs/middleware](https://github.com/honojs/middleware)" manages these middleware.If you want to do it, create the issue about your middleware.If you want to do it, create an issue about your middleware.
## Local Development
```bash4 unmodified linesmodified:docs/MIGRATION.md+7 added-7 removed
48 unmodified lines49 ```50 51 ### Others52 53-- 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 lines63 64 ### `c.req` is now `HonoRequest`65 66 `c.req` becomes `HonoRequest`, not `Request`.67-Although APIs are almost same, but if you want to access `Request`, use `c.req.raw`.67+Although APIs are almost the same, if you want to access `Request`, use `c.req.raw`.68 69 ```ts70 app.post('/', async (c) => {71 const metadata = c.req.raw.cf?.hostMetadata?4 unmodified lines76 ### StaticRouter is obsolete77 78 You can't use `StaticRouter`.79 80-### Validator is changed80+### Validator has been changed81 82 Previous Validator Middleware is obsolete.83 You can still use `hono/validator`, but the API has been changed.84 See [the document](https://hono.dev).85 86-### `serveStatic` is provided from Adapter86+### `serveStatic` is provided from the Adapter87 88 Serve Static Middleware is obsolete. Use Adapters instead.89 90 ```ts57 unmodified lines148 ```149 150 ## v2.2.5 to v2.3.0151 152-There is a breaking change associated to the security update.152+There is a breaking change associated with the security update.153 154 ### Basic Auth Middleware and Bearer Auth Middleware155 156 If you are using Basic Auth and Bearer Auth in your Handler (nested), change as follows:54 unmodified lines211 ```212 213 ## v1.6.4 to v2.0.0214 215-There are many BREAKING CHANGES. Please follow instructions below.215+There are many BREAKING CHANGES. Please follow the instructions below.216 217 ### The way to import Middleware on Deno has been changed218 219 **DO NOT** import middleware from `hono/mod.ts`.43 unmodified lines263 ```ts264 import { bodyParse } from 'hono/body-parse' // <--- Obsolete!265 ```266 267-You do not have to use Body parse middleware to parse request body. Use `c.req.parseBody()` method instead.267+You do not have to use Body parse middleware to parse the request body. Use `c.req.parseBody()` method instead.268 269 ```ts270 // Parse Request body271 app.post('', (c) => {24 unmodified lines