271 Commits

Author SHA1 Message Date
Khoajs Sync Bot
4ec52ed9c8 chore: apply Khoajs naming transformations (upstream sync)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
Node.js CI / build (22.x) (push) Has been cancelled
2026-04-17 21:07:17 +00:00
Khoajs Sync Bot
7b59e2d8ec chore: apply Khoajs naming transformations (upstream sync)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
Node.js CI / build (22.x) (push) Has been cancelled
2026-04-17 20:35:09 +00:00
Khoajs Sync Bot
1f4bbea3d9 chore: apply Khoajs naming transformations (upstream sync)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
Node.js CI / build (22.x) (push) Has been cancelled
2026-04-17 19:46:56 +00:00
Josh Hsieh
8694a06eb6 docs: use correct term "Server-Sent Events" in guide (#1920)
This PR updates the terminology in `docs/guide.md` from **"Server-Side
Events"** to the correct term **"Server-Sent Events" (SSE)**.

Changes:

- Rename the section heading from `Server-Side Events` to `Server-Sent
Events`.
- Update the description text to use “server-sent events” consistently.

This aligns the docs with the standard naming used in the HTML
specification and MDN Web Docs, and should make it easier for readers to
search for related resources (e.g. “Server-Sent Events”, “SSE”,
`EventSource`).

## Checklist

- [x] I have ensured my pull request is not behind the main or master
branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this
pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes
along with context if necessary.
2026-01-04 00:06:24 +01:00
WuMingDao
0a6afa5a61 fix: typo in troubleshooting.md (#1916)
## Checklist

- [x] I have ensured my pull request is not behind the main or master
branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this
pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes
along with context if necessary.

Signed-off-by: WuMingDao <146366930+WuMingDao@users.noreply.github.com>
2025-11-04 09:06:14 -08:00
Imed Jaberi
2f6e8147db feat: replace debug module with pure node:util::debuglog (#1885)
## Checklist

- [x] I have ensured my pull request is not behind the main or master
branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this
pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes
along with context if necessary.
2025-06-05 22:32:10 +01:00
Jeff Wainwright
9746a8f7e0 chore: adds initial doc text refresh; migration guide [CHORE-1870] (#1877)
## Checklist

Adds initial migration guide from v2 to v3. 

- [x] I have ensured my pull request is not behind the main or master
branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this
pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes
along with context if necessary.

---

@jonathanong should I try to make a reasonable codemod for this?
2025-04-28 12:01:14 -07:00
jongleberry
f7b9a1835f feat: add custom asyncLocalStorage support 2025-04-27 18:10:38 -07:00
jongleberry
44b568f90f docs++ 2025-04-27 17:59:14 -07:00
jongleberry
d601d7ba52 breaking: remove redirect(back) for v3 2025-04-27 16:50:35 -07:00
jongleberry
7a666e59f6 node@18 closes #1850 2025-03-16 21:30:24 -07:00
jongleberry
7aad3d38bc docs: add an SSE example 2024-08-31 11:23:31 -07:00
jongleberry
b95dfcb8ed docs: add note about features in koa-vs-express
closes #1654
2024-08-30 21:57:15 -07:00
jongleberry
d0f8543824 docs: add example of using an HTTP2, closes #1833 2024-08-30 21:45:06 -07:00
Tommy Dew
cfdb77f34d docs: Add writable getter to the response doc (#1832)
Fixes #1680
2024-06-28 23:26:17 +08:00
十叶
00f3fed66d doc: add partitioned and priority for cookies (#1816)
sync latest cookie options
2024-05-30 09:00:30 +08:00
Dana Sommerich
6fbc40b222 docs: Fix definition of middleware in guide.md (#1810) 2024-04-22 14:23:25 +08:00
那里好脏不可以
5ba533f831 chore: fix jsdoc and typo (#1662) 2023-11-08 23:05:20 +08:00
hustLer2k
ec912a3db7 docs: add missing entries to response aliases in context.md (#1769) 2023-10-31 21:09:26 +08:00
宋昆达
dbf4b8f412 docs: fix node quickly install with nvm (#1760)
update `nvm install  7 ` to `nvm install 12`
2023-05-17 15:50:49 +08:00
Hrvoje Šimić
b3fffc06cd docs: fix grammar in koa vs express doc (#1068) 2022-12-06 10:28:51 +08:00
rosald
e0abc5fc3c docs: Update guide.md (#1702)
since nodejs v12, native fs promises (require('fs').promises) is not experimental any more, should use it instead of third party libary
2022-12-06 10:27:19 +08:00
wangqi
7ab659423d update node version to v12 in readme 2022-07-02 08:58:45 +02:00
Matheus Souza
33a8f39407 Fix grammar mistake (#1527)
* Fix grammar mistake

* Simplify correction
2021-08-17 21:56:29 -07:00
Yiyu He
eb51cf5fb3 doc: app.keys needs to be long enought and random (#1520) 2021-01-18 14:13:32 +08:00
Matan Shavit
b4398f5d68 correct verb tense in doc (#1512)
In this sentence, the subject is the word "using," which acts as a gerund, and not "functions."
2020-10-29 09:30:27 -05:00
Hridayesh Sharma
39e1a5a380 fixed multiple grammatical errors in docs. (#1497)
* fixed grammatical errors in faq docs

* fixed grammatical and style issues in error handling docs

* fixed grammatical issues in guide

* fixed grammatical error in error handling docs

* Updated middleware to use plural form to be middleware instead of
middlewares
2020-08-24 16:35:27 -05:00
AlbertAZ1992
38cb591254 docs: update specific for auto response status 2020-07-27 09:52:31 +02:00
Imed Jaberi
2224cd9b6a docs: remove babel ref. (#1488) 2020-07-21 18:56:38 +08:00
Imed Jaberi
d51f98328c docs: fix assert example for response (#1489) 2020-07-21 18:55:35 +08:00
Paul Annekov
f7c732fd06 docs: fixed incorrect onerror example (#1459) 2020-05-16 16:33:29 +08:00
Zac Anger
6b6b0ddf7a docs(api): add app.use chainability note (#1449) 2020-04-25 14:40:32 +08:00
Marc-Aurèle DARCHE
8ddab48cbd docs: Document response status with empty body (#1445)
Co-authored-by: Marc-Aurèle DARCHE <madarche@users.noreply.github.com>
2020-04-18 22:54:46 +08:00
Brad Ito
7deedb2352 docs: Updating context.md with the latest cookies opts (#1433) 2020-04-10 16:59:33 +08:00
Yiyu He
422e539e89 feat: support app.proxyIPHeader and app.maxIpsCount to make ctx.ips more security 2019-10-28 10:39:21 +08:00
Konstantin Vyatkin
d48d88ee17 feat: implement response.has (#1397) 2019-10-14 20:00:45 +08:00
Jake
5afff89eca feat: accept options in the Application constructor (#1372) 2019-08-19 10:44:09 +08:00
Gunnlaugur Thor Briem
3b23865340 docs: parameter of request.get is case-insensitive (#1373) 2019-08-19 10:43:35 +08:00
Jeff
a245d18a13 docs: Update response.socket (#1357)
* docs: Include `dead-horse`'s comment 

https://github.com/koajs/koa/pull/1355#discussion_r302404837

* Update docs/api/response.md

Polish English

Co-Authored-By: Martin Iwanowski <martin@iwanowski.se>
2019-08-16 01:31:15 +08:00
Peng Jie
219bf22237 docs(context): update link (#1354)
* docs(context): update link

* docs(response): add code highlight
2019-07-30 14:06:19 +08:00
Jeff
ff70bdc75a fix: typo on document (#1355) 2019-07-11 15:44:52 +08:00
Peng Jie
b9e35469d3 docs(api): fix keygrip link (#1350) 2019-06-28 12:55:19 +08:00
Peng Jie
62f29eb0c4 docs(context): update cookies link (#1348) 2019-06-26 11:07:09 +08:00
Igor Adamenko
b7fc526ea4 docs: fix typo in cookie path default value docs (#1340) 2019-06-10 14:49:53 +08:00
Dobes Vandermeer
132c9ee63f docs: Clarify the format of request.headers (#1325) 2019-06-03 15:58:02 +08:00
Andrew Peterson
5810f279a4 docs: Removed Document in Progress note in Koa vs Express (#1336)
closes #1335
2019-06-03 15:57:14 +08:00
rosald
130e363856 docs: use 'fs-extra' instead of 'fs-promise' (#1309) 2019-02-14 13:17:35 +08:00
Francisco Ryan Tolmasky I
b25e79dfb5 Mark two examples as live for the corresponding documentation change in https://github.com/koajs/koajs.com/pull/38. (#1031)
Reviewed by @tolmasky.
2019-01-06 01:51:55 -06:00
Douglas Wade
48993ade9b docs: Document other body types (#1285) 2018-12-12 12:33:36 +08:00
Douglas Wade
a007198fa2 docs: Document ctx.app.emit (#1284) 2018-12-07 15:28:23 +08:00