Commit graph

993 commits

Author SHA1 Message Date
Bernie Stern
6029064756 HTTP/2 has no status message (#1048) (#1049) 2017-11-06 12:17:43 +00:00
Sergei Osipov
18e4fafb02 Update fresh to ^0.5.2 to close vulnerability (#1086) 2017-11-06 12:00:22 +00:00
Jonas Zhang
e8a024cbc0 docs: ddd Chinese docs link for v2.x (#1092) 2017-11-03 11:13:19 +08:00
Taehwan, No
1e81ea3691 docs: update babel setup (#1077) 2017-10-18 03:22:26 -05:00
Nick McCurdy
43a1df8200 test: Remove --forceExit flag for Jest (#1071) 2017-09-26 21:58:37 -05:00
Pedro Pablo Aste Kompen
0168fd87a8 docs: Update middleware.gif (#1052) 2017-09-25 23:22:22 -05:00
Shawn Sit
e1e030cc3d docs: command is wrong for running tests (#1065) 2017-09-25 23:08:21 -05:00
JamesWang
77ca4290a1 test: replace request(app.listen()) with request(app.callback()) 2017-09-25 23:07:57 -05:00
Martin Iwanowski
7f577aff2d meta: update AUTHORS (#1067) 2017-09-25 23:02:07 -05:00
Hrvoje Šimić
f3ede44ffa docs: fix dead link to logo image (#1069) 2017-09-25 23:00:15 -05:00
Martin Iwanowski
7e78147f52 tools: remove --fix to catch lint errors (#1062) 2017-09-19 03:23:32 -05:00
Todor Stoychev
09f1b7bb1f docs: fix typo (#1058) 2017-09-13 12:58:43 -05:00
jongleberry
86ab4ae84a Revert "refactor: remove duplicate assignment in respond test (#1055)" (#1056)
This reverts commit c161c0f2e9.
2017-09-11 21:35:13 -05:00
Clark Du
c161c0f2e9 refactor: remove duplicate assignment in respond test (#1055)
Signed-off-by: Clark Du <clark.duxin@gmail.com>
2017-09-11 10:22:34 -07:00
Usman Hussain
392e8aa90d Koa routing (third party libraries support) (#1038) 2017-08-17 10:20:57 -07:00
Yu Qi
78832ff6c6 bench: add bench for async/await (#1036) 2017-08-03 09:33:51 +08:00
Rico Sta. Cruz
7294eae078 koa-vs-express: Update note about generators (#1015) 2017-07-20 18:02:17 -07:00
Saad Quadri
40a6dd2c80 docs: improve consistency in api code examples (#1029) 2017-07-20 18:01:03 -07:00
Hartley Melamed
0c44c11ce3 Updates documentation to include reference for RFC2324 (HTTP Status 418) (#1028) 2017-07-19 11:04:59 -07:00
Luke Bousfield
67630217ae Fix context.inspect when called on the prototype (#1012)
* Fix context.inspect when called on the prototype

Fixes #837

* Add tests
2017-07-15 20:05:26 -04:00
haoxin
9f2182dec7 docs: fix typo (#1023) 2017-07-13 10:52:07 -07:00
Chiahao Lin
87cde82399 docs: modified examples using the wrong keyword (yield -> await) (#1021) 2017-07-07 00:48:31 -07:00
jongleberry
aaac09af1a 2.3.0 2017-06-20 10:01:10 -07:00
Martin Iwanowski
327b65cb6b Use node 7+ WHATWG parser for hostname, fixes #1002 (#1004)
* Use node 7+ WHATWG parser for hostname, fixes #1002

* only use URL if host is IPv6, expose parsed URL

* catch invalid URLs, memoize empty obj

* hostname returns empty string when URL throws
2017-06-20 09:57:30 -07:00
Martin fl0w Iwanowski
012587889d added setters for header and headers, fixes #991 2017-06-20 09:57:07 -07:00
Martin fl0w Iwanowski
f6f1ab73e1 lint: commit --fix 2017-06-20 09:57:07 -07:00
Martin fl0w Iwanowski
4b41a8b94b update gitignore, added package-lock 2017-06-20 09:57:07 -07:00
Yiyu He
41f8776350 test: run ci on node 7,8 (#992) 2017-06-20 09:56:47 -07:00
designgrill
beec26ebf8 docs: A middleware is always responsible for calling downstream (#978)
Irrespective of whether it is called by an upstream middleware or not.
2017-06-12 11:38:25 -07:00
Kareem Kwong
0a7856ca15 docs: Add note about overwriting charset in response.type (#993) 2017-06-12 11:37:16 -07:00
Richard Marmorstein
7941fb5221 grammar (#994) 2017-06-12 11:36:19 -07:00
Equim
08eb1a20c3 docs: apply Date.now() to all docs (#988) 2017-05-21 23:33:25 +08:00
Shaun Warman
302814e7a3 docs: Fix minor nitpick in documentation (#987) 2017-05-21 13:40:08 +08:00
song
bfce5806c2 Update Readme.md (#985)
Change ```new Date``` to ```Date.now```
2017-05-17 10:38:00 +08:00
Gilles De Mey
d394724200 test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
ziyunfei
13c7ca6139 res.type=: remove no-op code (#980) 2017-05-05 10:27:11 -07:00
joehecn
9248660efd test: fix spelling error (#972) 2017-04-29 10:30:24 +08:00
TJ Holowaychuk
32ebd1bd6a Update Readme.md
I'll fill everyone in a bit
2017-04-26 09:46:25 -07:00
Francisco Presencia
3bbb74b3ee docs: added note about arrays (#964)
Added note about arrays being returned as JSON.
2017-04-23 16:17:48 -07:00
bananaappletw
2da3dd49fa eslint: remove unused eslint-plugin-babel (#969) 2017-04-23 16:14:34 -07:00
Thiago Lagden
ee5af59f1f replace apply by spread syntax (#971) 2017-04-23 16:14:16 -07:00
Remek Ambroziak
7f3d0765d7 docs: fix documentation to match new http-errors API (#957) (#967) 2017-04-21 21:49:06 +08:00
George Chung
cd5d6a1c37 docs: reorganize "response.status=" section (#966)
Reference: https://github.com/jshttp/statuses/blob/v1.2.0/src/iana.json
Since koa@2.2.0 depends statuses@1.2.0
2017-04-21 15:50:39 +08:00
joehecn
1b3e08e046 test: change a describe to it (#963) 2017-04-20 10:43:06 +08:00
joehecn
19fc4194b7 Test: change a describe to it (#959) 2017-04-16 22:02:32 -06:00
Aesop Wolf
cb12aa8ae5 readme: update the order of accepted functions(#958)
Update the order of accepted functions so that it matches the following blocks of text.
2017-04-14 11:50:31 -06:00
jongleberry
7bd82ac410 ⬆️ koa-compose@4 — remove any-promise 2017-04-12 22:47:17 -07:00
Martin Iwanowski
3721f6be0b test: remove redudant test case (#956) 2017-04-12 23:41:38 -06:00
bananaappletw
efb05d2836 eslint: remove deprecated babel/arrow-parens (#953) 2017-03-28 00:26:09 -07:00
Ivan Kleshnin
87036857e6 readme: fix typo (#951) 2017-03-27 12:37:42 -07:00