28 Commits

Author SHA1 Message Date
Yiyu He
0757655cfe feat: BaseContextClass add logger (#816)
- move BaseContextClass to egg
- add BaseContextLogger
2017-04-28 17:01:43 +08:00
Haoliang Gao
59a3669661 feat: ignore types when dump (#518) 2017-03-07 19:54:35 +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
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
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
fengmk2
85e3c8f97f docs: add httpclient tracer demo and docs (#313)
https://github.com/eggjs/egg/issues/235
2017-02-07 18:06:52 +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
737e82ad03 feat: move clusterPort to egg-cluster (#281)
Ref https://github.com/eggjs/egg-cluster/pull/12
2017-01-20 20:53:59 +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
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
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
zōng yǔ
163aa7e84f fix: AppWorkerClient subscribe same data failed issue (#110) 2016-09-19 22:56:39 +08:00
TZ | 天猪
f6e4ee7bda fix: utils.assign support undefined (#71) 2016-08-31 14:02:57 +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
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