Commit graph

729 commits

Author SHA1 Message Date
Jonathan Ong
26f0d16644 docs: cleanup middleware guide, including TJ's yoda-style conditionals
changes on top of 789c30f926. closes
#158, closes #157
2013-12-30 22:20:32 -08:00
Matthew Chase Whittemore
789c30f926 adding docs on how to add multiple middleware at once. #157 2013-12-30 22:08:56 -08:00
Jonathan Ong
d9e56b901d docs: clarify node response property support 2013-12-30 22:08:56 -08:00
TJ Holowaychuk
c4e9f6da33 Release 0.2.1 2013-12-30 10:56:30 -08:00
TJ Holowaychuk
dc96d9828b refactor Response#status= 2013-12-30 10:04:34 -08:00
TJ Holowaychuk
41502429de Merge pull request #163 from koajs/404
better 404 handling
2013-12-30 10:02:23 -08:00
Jonathan Ong
e71937491b refactor: remove unused argument 2013-12-29 22:33:59 -08:00
Jonathan Ong
b7b1c0fd44 better 404 handling 2013-12-29 22:26:19 -08:00
Jonathan Ong
7ee4f43dc0 docs: add debugging and ._name docs 2013-12-29 22:16:04 -08:00
Jonathan Ong
51da356a5f debug: check for fn._name as well 2013-12-29 16:04:06 -08:00
TJ Holowaychuk
ebed2a34af Merge pull request #162 from detj/master
Fix typo in api/index.md
2013-12-29 15:41:15 -08:00
Debjeet Biswas
e492899443 Fix typo in api/index.md
* `negotation` to `negotiation`
2013-12-30 05:06:49 +05:30
TJ Holowaychuk
7c3181e4d7 fix ctx.inspect() after previous commit
otherwise .body will be missing
2013-12-29 11:20:51 -08:00
TJ Holowaychuk
14fe56e632 add explicit .toJSON() calls to ctx.toJSON() 2013-12-29 10:19:21 -08:00
TJ Holowaychuk
88fb4c841d remove trailing comma 2013-12-29 05:46:12 -08:00
TJ Holowaychuk
08a88a92db Release 0.2.0 2013-12-28 18:37:40 -08:00
Jonathan Ong
c86fc2cec9 Merge pull request #160 from jbergstroem/patch-1
Benchmarks: Table-fy
2013-12-27 22:11:04 -08:00
Johan Bergström
c6c375c252 Benchmarks: Table-fy
Had to un-indent text for the GFM markdown to accept the table. Not sure what to do with rest of the file, so I'll leave it open.

`benchmark/` probably needs some love if we expect it to generate
similar output. Even without it, I still think the most readable for end-users.
is the best possible result.
2013-12-28 17:07:00 +11:00
Jonathan Ong
20615b808d refactor: move .is to type-is 2013-12-27 18:56:09 -08:00
Jonathan Ong
7fe4133b4a refactor: move content negotiation to accepts 2013-12-27 18:56:02 -08:00
TJ Holowaychuk
3891e1787b docs: more benchmark stuff 2013-12-26 11:03:47 -08:00
TJ Holowaychuk
064a7b8fc1 docs: update koa vs express benchmark stuff 2013-12-26 11:02:26 -08:00
TJ Holowaychuk
946eeb6917 Merge pull request #155 from tricknotes/fix-history.md
Fix typo in History.md
2013-12-26 10:59:26 -08:00
Ryunosuke SATO
78c06a09d4 Fix typo in History.md
* Fix version number
* Fix release date
2013-12-26 23:33:07 +09:00
Jonathan Ong
40c64a37d7 docs: koa vs express draft 2013-12-26 00:31:01 -08:00
Jonathan Ong
969614dba1 docs: manual responses are not supported
closes #145
2013-12-26 00:11:14 -08:00
TJ Holowaychuk
101bfe42e3 Merge pull request #149 from koajs/move-this-aliases-down
docs: move context aliases below context-specific stuff
2013-12-25 09:31:42 -08:00
TJ Holowaychuk
b944b89df7 Merge pull request #147 from koajs/delegate-next-bench
benchmark: use generator delegation
2013-12-25 09:25:00 -08:00
Jonathan Ong
23548b6c97 test: add a test case for *respond !socket.writable
https://github.com/koajs/koa/commit/9fe483ca767b64de3e9b9e2c78b7bfaf4208
61c2#diff-5372f626ee15242f1e2c6eb31655b4faR187
2013-12-25 00:13:54 -08:00
Jonathan Ong
86effcd5c6 docs: move context aliases below context-specific stuff 2013-12-24 22:59:55 -08:00
Jonathan Ong
3c9dcde11b benchmark: use generator delegation 2013-12-24 22:12:48 -08:00
TJ Holowaychuk
d3e3c4d117 Merge branch 'master' of github.com:koajs/koa 2013-12-24 12:30:37 -08:00
TJ Holowaychuk
93c4a56d2d Merge pull request #141 from yosssi/fix-docs-api-index-md
Fixed the link url to the list of middlewares on docs/api/index.md.
2013-12-24 05:31:24 -08:00
yosssi
b047805f9e Fixed the link url to the list of middlewares on docs/api/index.md. 2013-12-24 21:13:42 +09:00
Jonathan Ong
b56531f75d bump koa compose to 2.1.0 2013-12-22 15:13:01 -08:00
Jonathan Ong
0d9336622c use yield *next internally 2013-12-22 14:48:28 -08:00
mako-taco
9fe483ca76 handle manually written responses 2013-12-22 14:46:36 -08:00
TJ Holowaychuk
7da0a609db use 8 threads for benchmarks 2013-12-22 08:56:34 -08:00
TJ Holowaychuk
6ba0cb48e9 update koa-compose 2013-12-22 08:54:46 -08:00
TJ Holowaychuk
33a513898b docs: add note about gnode perf 2013-12-22 07:38:30 -08:00
TJ Holowaychuk
cfeefac191 docs: typo 2013-12-22 07:33:37 -08:00
TJ Holowaychuk
f19ab98156 Merge pull request #137 from nicoder/patch-2
fix typo
2013-12-22 07:32:24 -08:00
nicoder
46163dba03 fix typo 2013-12-22 13:26:30 +01:00
TJ Holowaychuk
663c0f7a6e Merge pull request #135 from kennethormandy/master
Updates logo in README for hi-dpi screens
2013-12-21 22:56:54 -08:00
Kenneth Ormandy
0b02d62e96 Updates logo in README for hi-dpi screens 2013-12-21 22:41:06 -08:00
Jonathan Ong
6b16574df7 0.1.2 2013-12-21 16:14:21 -08:00
Jonathan Ong
afc9c32356 update deps 2013-12-21 16:10:50 -08:00
TJ Holowaychuk
998b348632 Merge pull request #131 from koajs/add/throw-status-msg
Add/throw status msg
2013-12-21 10:57:19 -08:00
TJ Holowaychuk
4ee0ad0a82 Merge pull request #133 from jed/patch-1
Update keygrip dependency version
2013-12-21 10:53:18 -08:00
Jed Schmidt
64666798ba Update keygrip dependency version
The 0.2.4 version of keygrip was problematic for Windows installations, due to the generation of a default secret (jed/keygrip#11). Since generating default keys wasn't a well advised API to begin with, we removed it. The major version was bumped to reflect the breaking change.
2013-12-21 09:43:18 -05:00