46 Commits

Author SHA1 Message Date
Yiyu He
d6be949973 chore: remove chinese commnets (#749) 2017-04-13 23:35:13 +08:00
Yiyu He
26efa427cf fix: remove unused jsonp delegate (#739) 2017-04-11 11:48:30 +08:00
fengmk2
c33523db3e feat: export context base classes on Application (#737) 2017-04-11 00:11:50 +08:00
fengmk2
80a06fcd07 feat: extend runInBackground on application (#442)
use mz-modules/sleep instead of ko-sleep
2017-02-24 12:56:52 +08:00
Haoliang Gao
3ba38b1faf feat: [BREAKING_CHANGE] reimplement view, use egg-view plugin (#402) 2017-02-23 14:31:59 +08:00
Yiyu He
b781db16c6 fix: listen CookieLimitExceed in app (#429) 2017-02-23 11:27:05 +08:00
Yiyu He
54a3e3c8cd feat: log error when cookie value's length exceed the limit (#418) 2017-02-21 20:33:05 +08:00
Yiyu He
1d93002578 feat: [BREAKING_CHANGE] remove notfound.enableRedirect (#368) 2017-02-13 19:09:59 +08:00
Yiyu He
c6914e0ef4 feat: view base promise to support async function (#343) 2017-02-09 19:07:51 +08:00
Yiyu He
6dd9feb677 feat: curl return promise (#342) 2017-02-09 17:56:20 +08:00
fengmk2
61f8907660 test: improve coverage to 100% (#333)
* test: remove all skip tests
2017-02-08 17:02:25 +08:00
fengmk2
08bc84e1b8 feat: remove overrideMethod middleware (#324)
It's not safe it enable by default in egg
2017-02-07 22:04:18 +08:00
Haoliang Gao
0ee445134d feat: remove worker client, use app.cluster (#282)
Closes https://github.com/eggjs/egg/issues/278
2017-02-07 21:35:01 +08:00
Haoliang Gao
0c38b9b50c feat: remove tracer (#311) 2017-02-03 17:04:57 +08:00
Haoliang Gao
41cc411be4 feat: move ctx.runtime to egg-instrument (#302)
Ref https://github.com/eggjs/egg/issues/301
2017-01-25 00:35:10 +08:00
Haoliang Gao
0e0bef541b feat: merge the api of application/agent from extend to instance (#294)
* feat: do not export app.View
* feat: remove ctx.runtime
2017-01-24 14:57:10 +08:00
Haoliang Gao
4ff01ea572 style: fix code style for app and config (#300) 2017-01-23 16:10:04 +08:00
Yiyu He
49f14db04c refactor: remove ctx.jsonp and add egg-jsonp plugin (#299) 2017-01-23 15:38:18 +08:00
Yiyu He
d4be77804a feat: remove isAjax (#295)
- remove request.isAjax
- remove ctx.roleFailureHandler

Closes #186
2017-01-22 17:56:01 +08:00
Haoliang Gao
99338c7d66 feat: move app.Service egg-core (#279) 2017-01-20 16:42:21 +08:00
Haoliang Gao
d0d0a75a7e feat: remove instrument (#283)
Closes https://github.com/eggjs/egg/issues/280
2017-01-20 14:48:36 +08:00
TZ | 天猪
23e9122d9a fix: typo conext -> context (#259) 2017-01-14 15:11:51 +08:00
fengmk2
bf46ad3b54 refactor: ctx.realStatus delegate ctx.response.realStatus (#252)
closes https://github.com/eggjs/egg/issues/185
2017-01-13 15:28:47 +08:00
Yiyu He
d0aa3b8f19 feat: delegate ctx.jsonp to ctx.response.jsonp (#248) 2017-01-13 12:33:05 +08:00
Yiyu He
13ed9ebc76 refactor: remove ctx.getCookie, ctx.setCookie and ctx.deleteCookie (#240) 2017-01-11 23:26:41 +08:00
Yiyu He
96d5360986 feat: support app.config.proxy to identify app is behind a proxy (#231)
* feat: support app.config.proxy to identify app is behind a proxy

* test: fix cookie test
2017-01-11 12:18:24 +08:00
zōng yǔ
00b7eb3926 feat: add cluster-client (#191) 2017-01-10 00:48:15 +08:00
fengmk2
06295b833d docs: add core/httpclient document (#197) 2017-01-09 18:30:26 +08:00
Shawn
20fb479be1 doc: guide/basics/extend doc (#187) 2017-01-07 22:21:40 +08:00
Haoliang Gao
db614d4fb7 fix: protocolHeaders can split with whitespace (#164) 2016-12-19 19:45:23 +08:00
Yiyu He
912fd2adfe deps: egg-cookies@2 (#155) 2016-11-23 02:06:54 +08:00
Yiyu He
406264816e fix: already supported in egg-core (#154) 2016-11-22 00:19:11 +08:00
Yiyu He
1082d6d543 feat: body parser support disable, ignore and match (#150) 2016-11-17 14:13:52 +08:00
fengmk2
e646fedfa4 feat: add ip setter on request (#138)
closes https://github.com/eggjs/egg/issues/123
2016-11-02 15:44:02 +08:00
Haoliang Gao
cd99a1f06a feat: add getLogger to app and ctx (#136)
it can be override with custom function

Closes eggjs/egg#36
2016-11-02 13:57:28 +08:00
fengmk2
56d1deb17a feat: support background task on ctx (#119)
* feat: support background task on ctx

```js
ctx.runAtBackground(function* (ctx) {
  // async actions here
});
```

* fix: eslint style no-useless-escape

* chore: add license
2016-10-29 11:28:22 +08:00
Haoliang Gao
5dafb5838e feat: close return promise (#128)
logger should close stream when app close
2016-10-26 15:45:04 +08:00
fengmk2
d246b76c0c perf: get header using lower case (#106)
can improve 6x on node 6.x
see https://gist.github.com/fengmk2/d7d0091a5eeae8ce0c9580f31e748371
2016-09-12 18:55:47 +08:00
Yiyu He
711f9c015d fix: set header use lowercase (#76) 2016-09-01 20:53:16 +08:00
fengmk2
2b0dbd3079 refactor: change accept to getter (#68) 2016-08-31 10:46:04 +08:00
Yiyu He
4f48acaead Revert raw header (#65)
* Revert "refactor: use ctx.setRawHeader (#61)"

This reverts commit 4f3029d75bfc72477953208c9129cbff2056221d.

* Revert "feat(response): add res.setRawHeader (#60)"

This reverts commit e3455985547c1c530b51fb3b9af0fc41a9b8b30c.

* fix: lower case header will get better performance
2016-08-30 20:50:18 +08:00
TZ | 天猪
7a17c0f1ae feat: [BREAKING_CHANGE] remove poweredBy && config.core (#63) 2016-08-29 19:15:42 +08:00
Yiyu He
4f3029d75b refactor: use ctx.setRawHeader (#61) 2016-08-29 18:39:15 +08:00
Yiyu He
36aaa4ea86 fix(meta): remove server-id (#56) 2016-08-29 16:34:35 +08:00
Yiyu He
e345598554 feat(response): add res.setRawHeader (#60) 2016-08-29 16:30:02 +08:00
Haoliang Gao
350d0f5aaf feat: [BREAKING_CHANGE] use egg-core (#44)
* feat: [BREAKING_CHANGE] use egg-core

* fix: miss app and config to publish

* deps: upgrade egg-rest

* deps: update using autod

* test: use supertest@2

* Release 0.1.0-beta.3

* feat: enable logrotater by default

* chore: add circleci

* refactor: rename logrotater => logrotator

* feat: remove log-reload event

* test: let examples pass test

* fix: remove more close event

* refactor: extract Symbol as a constant

* deps: upgrade egg-core

* Release 0.1.0-beta.4

* fix: use egg when customEgg is not specified
2016-08-18 15:42:20 +08:00