25 Commits

Author SHA1 Message Date
TZ | 天猪
23e9122d9a fix: typo conext -> context (#259) 2017-01-14 15:11:51 +08:00
Yiyu He
e4843f1ede feat: delegate configurations in app (#233) 2017-01-11 23:31:53 +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
Haoliang Gao
583c6fa424 refactor: use logger.close, .end is deprecated (#171) 2016-12-30 00:51:52 +08:00
popomore
e6f203e498 refactor: use sendToApp/sendToAgent in worker client 2016-12-21 12:52:15 +08:00
Yiyu He
912fd2adfe deps: egg-cookies@2 (#155) 2016-11-23 02:06:54 +08:00
fengmk2
5045131f03 feat: add a dns cache httpclient (#146)
* feat: add a dns cache httpclient

Usage:

```js
// enable on urllib config
exports.urllib = {
  enableDNSCache: true,
};
```

* test: add config.urllib on urllib.test.js
2016-11-08 11:02:40 +08:00
Haoliang Gao
5178b2706a feat: warn when agent send message before started (#143)
Closes eggjs/egg#118
2016-11-04 14:23:25 +08:00
Haoliang Gao
a65f472a4e feat: [BREAKING_CHANGE] refactor Messenger (#141)
- broadcast is changed, it will send to all process
- send is changed, it won't emit message

Closes eggjs/egg#28
2016-11-03 17:51:37 +08:00
Haoliang Gao
5900c1ba64 feat: print error to console on unittest env (#139)
consoleLevel on unittest is WARN, so it should be print,
but egg disable console after app ready.

so enable console on unittest env

Closes eggjs/egg#127
2016-11-02 16:30:19 +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
Haoliang Gao
5dafb5838e feat: close return promise (#128)
logger should close stream when app close
2016-10-26 15:45:04 +08:00
zōng yǔ
163aa7e84f fix: AppWorkerClient subscribe same data failed issue (#110) 2016-09-19 22:56:39 +08:00
Yiyu He
448ba521c3 feat(application): emit startTimeout event (#107) 2016-09-16 12:49:16 +08:00
TZ | 天猪
f6e4ee7bda fix: utils.assign support undefined (#71) 2016-08-31 14:02:57 +08:00
TZ | 天猪
7a17c0f1ae feat: [BREAKING_CHANGE] remove poweredBy && config.core (#63) 2016-08-29 19:15:42 +08:00
fengmk2
2adf02d33d chore: add benchmarks (#62)
- simple helloworld
- simple nunjucks view
2016-08-29 18:23:28 +08:00
Yiyu He
5f83bc14ad refator: use utils.assign instead of Object.assign (#59) 2016-08-29 12:26:01 +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
fengmk2
fcf907b18f feat: add inner plugins (#24)
* test: add simple benchmarks

* fix: should set X-Powered-By and X-Server-Id when controller error
2016-08-06 00:09:43 +08:00
fengmk2
4e4a484af6 refactor(core): let ctx.cookies become a getter (#22)
If app don't use cookie, they don't need a secure keys
2016-07-18 22:03:59 +08:00
Yiyu He
1b6173e7f9 fix(messenger): init when create app and agent (#21) 2016-07-18 21:36:42 +08:00
fengmk2
53a9bf4f2f test: add test codes (#20)
closes #16
2016-07-18 21:16:35 +08:00
fengmk2
dadd208596 feat: init version sources (#15) 2016-07-17 12:48:09 +08:00