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
Fangdun Cai
18d753ca2d
use Buffer.from instead ( #946 )
2017-03-20 14:48:37 +08:00
Michał Gołębiowski
682d7b484a
docs: add the missing next param ( #942 )
2017-03-20 01:02:21 +08:00
jongleberry
9a9949f9ee
2.2.0
2017-03-14 01:57:39 -07:00
Lee Bousfield
55d1d9a607
travis: cache node_modules ( #934 )
2017-03-14 01:55:54 -07:00
jongleberry
4816cd76f0
:arrow-up: deps
...
closes #939
2017-03-14 01:55:15 -07:00
jongleberry
f841418b10
package: drop package.engines.node req to v6
...
closes #938
closes #936
closes #935
2017-03-14 01:48:36 -07:00
jongleberry
ebed04f342
2.1.0
2017-03-07 23:09:56 -08:00
Lee Bousfield
e6539e1cf2
Return middleware chain promise from callback()
( #848 )
...
The v2.x version of 8836cd3 on master.
2017-03-07 23:05:28 -08:00
jongleberry
65c130db5b
readme docs++ ( #932 )
...
* Better expose documentation in overview readme
* Add code examples for context, request and response
* docs++
* fix indentation
2017-03-07 23:04:43 -08:00
jongleberry
e812339033
docs: create v2 Migration document ( #931 )
...
* Give v2 migration documentation its own document. Incorporate docs from #533
* Fix mis-capitalization of Koa
* Remove unnecessary Dependency section
* Hint at koa-convert enabled compatibility
* Add section on constructing with new
* Clarify es6 constructors are used
* Fix varying capitalization
* Restore mistakenly removed Dependency changes section
* v1.x should not receive feature updates
* Add next() to signature, add missing backticks
* docs++
2017-03-07 22:59:42 -08:00
jongleberry
e9d7abaf79
res: use http.ServerResponse._header when accessors exist ( #930 )
...
* Don't use http.ServerResponse._header when accessors exist
Structure of http.ServerResponse._header will change in future
Node versions. Avoid reading and setting it directly when
helpers exist.
* Add new header test case
* make things a little more strict
2017-03-07 22:59:24 -08:00
Jeff Moore
188c0968e1
Add Troubleshooting documentation ( #921 )
...
* Move Common Problems wiki documentation to troubleshooting.md
* Fix header levels and TOC linking
* Change header structure, move causes to their own sections
* Fix fragment capitalization
* Add an example for missing await
* Cleanup language due to problem generalization
* Add visibility for troubleshooting
* Fix fragment typo
2017-03-01 15:50:02 -08:00
fengmk2
e452b68bd9
feat: set err.headerSent before app error event emit ( #919 )
2017-02-28 10:52:54 +08:00
Ilkka Oksanen
0c28d1f57b
Fix async/await babel recommendation
2017-02-26 12:23:42 -06:00
Stéphane Bisinger
909b829ac6
Fix typo
2017-02-26 12:23:11 -06:00
Ilkka Oksanen
d740d9b2b1
Update the link to migration instructions ( #916 )
2017-02-26 21:41:14 +08:00
Yiyu He
73e9e13580
chore: unify badge's style ( #914 )
2017-02-26 15:57:49 +08:00
jongleberry
612a77b72b
travis: test node@8 nightly
2017-02-25 14:09:51 -06:00
石发磊
207aa4e75b
readme: change generatorFunction
to generator function
( #912 )
...
change word `generatorFunction` to `generator function`, because to correspondence with the above form
2017-02-25 12:59:55 -06:00
Filip Skokan
0c2d881b67
update engines in package.json for 7.6.0 min node ( #911 )
2017-02-25 21:29:16 +08:00
Xavier Damman
2fda9dd0bf
Added OpenCollective backers and sponsors ( #748 )
...
* Added OpenCollective backers and sponsors
* Removed become a backer/sponsor links
2017-02-25 00:50:07 -06:00