Commit graph

784 commits

Author SHA1 Message Date
gyson
1be333ca31 change respond() to a regular function
remove `yield* next` in lib/application, which caused annoy `A promise
was converted into a generator …` message.

benchmark result:
* when bench with native Promise, it has no impact for both stable and
experimental ones.
* when bench with Bluebird, it’s about 5-10% faster than original for
both stable and experimental ones.

closes #472
2015-08-23 13:55:20 -07:00
Jonathan Ong
0b9c032af1 1.0.0 2015-08-22 14:47:31 -07:00
AlexeyKhristov
8804b7ba6f add this.req check for querystring() 2015-08-22 14:40:36 -07:00
Sterling Williams
391650518f Do not log on expected http errors 2015-08-22 14:39:38 -07:00
dead_horse
e021a6e7cb update authors 2015-08-20 01:05:43 +08:00
dead_horse
d3ca581ac9 build: support iojs 3.x 2015-08-20 01:01:27 +08:00
jongleberry
69ed37335b Merge pull request #460 from mking/patch-1
Clarify precondition for freshness check
2015-07-16 07:27:48 -07:00
Matthew King
05b5912912 Clarify precondition for freshness check
I ran into the issue from #294 and thought it was a bug since fresh was always returning false. I think it's fair that, at the very least, the docs are not completely clear on how to use `this.fresh`.
2015-07-16 00:37:41 -07:00
Julian Gruber
a8689e4e41 Merge pull request #457 from th507/master
Fixed a possible typo in the test
2015-07-03 13:01:04 +02:00
Jingwei "John" Liu
b80007c460 fix a possible typo 2015-07-03 18:55:24 +08:00
Yiyu He
0ad06c9810 Merge pull request #446 from targos/upgrade-should
deps: upgrade should, install should-http
2015-05-24 20:28:40 +08:00
Michaël Zasso
0618db83c1 deps: upgrade should, install should-http 2015-05-24 11:08:20 +02:00
Yiyu He
2c9f2dcd9c Merge pull request #445 from yorkie/fix/gh-444
upgrade supertest to ^1.0.1
2015-05-24 14:19:58 +08:00
Yazhong Liu
90b05c09e5 upgrade supertest to ^1.0.1 2015-05-24 12:39:53 +08:00
Jonathan Ong
04dfb19cb2 0.21.0 2015-05-23 20:15:23 -07:00
Jonathan Ong
3f160214e2 ⬆️ fresh@0.3.0 2015-05-23 20:10:21 -07:00
Jonathan Ong
fb797156ef travis: speed up tests 2015-05-23 20:09:44 -07:00
Jonathan Ong
915fa54bab docs: remove performance diff between express
closes #442
2015-05-23 20:07:53 -07:00
TJ Holowaychuk
8c32dd2540 Merge pull request #443 from koajs/fix-query-cache
return same object from request.query
2015-05-21 13:22:32 -07:00
Aaron Heckmann
6392ee0407 return same object from request.query
Before this change, calling request.query when there was no querystring
resulted in a new object created and returned each time. If the resulting
object was ever changed, accessing request.query would not reflect it and
cause weird bugs.
2015-05-21 12:55:58 -07:00
jongleberry
eb7277c95c travis: test iojs v1 and v2 2015-05-04 19:19:06 -07:00
dead_horse
0d916ad727 Release 0.20.0 2015-04-30 16:21:46 +08:00
Yiyu He
e21fc8aabb Merge pull request #438 from koajs/strict
make sure helpers return strict string
2015-04-29 15:25:25 +08:00
dead_horse
c8eb5eefb1 make sure helpers return strict string 2015-04-29 01:44:02 +08:00
Yiyu He
34c36d05c3 Merge pull request #436 from soygul/patch-1
Update doc example to use ctx.state
2015-04-24 01:13:00 +08:00
dead_horse
c021b4610d add experimental to benchmark 2015-04-23 18:36:02 +08:00
dead_horse
1c5cb6f691 feat: alias response.headers to response.header 2015-04-23 17:28:31 +08:00
Teoman Soygul
d5b73ebe4f update doc example to use ctx.state 2015-04-16 15:43:45 +02:00
dead_horse
4b83a5a96c Release 0.19.1 2015-04-14 12:02:02 +08:00
Yiyu He
bb5ecd325c Merge pull request #434 from koajs/non-error
non-error thrown, fixed #432
2015-04-14 11:53:16 +08:00
dead_horse
b6aea969f8 non-error thrown, fixed #432 2015-04-14 10:34:55 +08:00
Jonathan Ong
c307c81c43 0.19.0 2015-04-05 11:24:06 -07:00
fengmk2
7f6086a93c fix Chinese doc link 2015-04-05 20:24:06 +08:00
TJ Holowaychuk
8d74cb9f5c Merge pull request #427 from koajs/make-sure-host-return-string
make sure req.host and req.hostname return strict string
2015-04-03 10:31:37 -06:00
fengmk2
dd3a0fcdfa make sure req.host and req.hostname return strict string
Should return empty string when no host present.
2015-03-30 17:44:32 +08:00
fengmk2
8b14b91bae remove body empty detect 2015-03-29 14:40:09 +08:00
fengmk2
1edd6ec69a test: improve test coverage for application and response 2015-03-29 14:40:09 +08:00
Jonathan Ong
9b4e349c9b 0.18.1 2015-03-01 10:34:35 -08:00
Jonathan Ong
04e60b374c move babel to dev deps 2015-03-01 10:34:21 -08:00
Jonathan Ong
b721273682 rename 6to5 to babel 2015-02-15 16:47:18 -08:00
Jonathan Ong
4e1ad97f87 readme: it's ES7 not ES6!!! 2015-02-14 19:56:47 -08:00
Jonathan Ong
e3510bab28 0.18.0 2015-02-14 19:54:21 -08:00
Jonathan Ong
c5545cd918 add experimental async function support 2015-02-14 17:33:08 -08:00
jongleberry
0e02798a8b travis: don't test iojs minors because it moves too fast 2015-02-10 19:36:20 -08:00
Yiyu He
568725c30a Merge pull request #412 from koajs/content-type
Parse Content-Type with "content-type" instead of "media-typer"
2015-02-08 11:47:36 +08:00
Douglas Christopher Wilson
9dd99f5da2 Parse Content-Type with "content-type" instead of "media-typer" 2015-02-07 21:24:04 -05:00
jongleberry
089bc45e90 test on node v0.12 instead of v0.11 2015-02-06 14:42:27 -08:00
Jonathan Ong
4b57c105e3 0.17.0 2015-02-06 00:01:35 -08:00
Jonathan Ong
d4d1c617ec test each minor version of iojs 2015-02-05 23:57:27 -08:00
Rui Marinho
6d5f506c99 Re-enable io.js support on .travis.yml
On the 3rd of February, the planned roll out on Travis was reverted
and is now rescheduled for a later date. This commit re-enables io.js
support on Travis due the original one being reverted.
2015-02-05 23:57:06 -08:00