56 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
Yiyu He
d6be949973 chore: remove chinese commnets (#749) 2017-04-13 23:35:13 +08:00
fengmk2
39b2d8d868 Release 1.1.0 (#740) 2017-04-11 16:13:12 +08:00
fengmk2
c33523db3e feat: export context base classes on Application (#737) 2017-04-11 00:11:50 +08:00
Yiyu He
b8fc4e460e deps: use extend2 instead of extend (#674) 2017-03-29 14:21:31 +08:00
Yiyu He
8c77e59078 feat: warn if some confused configurations exist in config (#637) 2017-03-24 18:07:32 +08:00
zōng yǔ
984d732088 refactor: app.cluster auto bind this (#570) 2017-03-18 23:38:49 +08:00
fengmk2
d0882837c3 feat: show warning message with call stack (#549) 2017-03-11 13:09:55 +08:00
Haoliang Gao
59a3669661 feat: ignore types when dump (#518) 2017-03-07 19:54:35 +08:00
Haoliang Gao
2fb89df413 feat: remove default customEgg (#487)
If customEgg is not specified, master will lookup egg from node_modules
by default
2017-03-02 21:40:55 +08:00
TZ | 天猪
73095e2c04 docs: fix view plugin config at quickstart (#482) 2017-03-01 11:19:26 +08:00
Yiyu He
4eaf3fb3bb feat: throw if config.keys not exists when access app.keys (#443) 2017-02-25 01:53:13 +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
Shawn
ed97533227 fix: close gracefully (#419) 2017-02-22 14:17:23 +08:00
TZ | 天猪
bf518dbc1d fix: deprecate warning when inspect & toJSON (#408) 2017-02-18 23:35:17 +08:00
fengmk2
0de9f35892 fix: keep unhandledRejectionError err object stack (#390) 2017-02-16 10:45:33 +08:00
Haoliang Gao
9e849d4055 docs: add api-doc (#369) 2017-02-15 18:25:51 +08:00
Yiyu He
06b40280db feat: dump config both after loaded and ready (#377) 2017-02-15 11:03:32 +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
Yiyu He
0d2358d0d1 fix: remove tair and hsf (#332) 2017-02-08 12:02:20 +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
Shawn
1642f5ee6e feat: close cluster clients before app close (#310) 2017-02-07 17:59:46 +08:00
Haoliang Gao
8d98e4ff03 refactor: use app.beforeClose (#306)
* refactor: using onClose

* f

* f

* f
2017-01-26 16:58:15 +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
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