138 Commits

Author SHA1 Message Date
Khaidi Chu
5e189e8146 refactor: separate dumping config object and config file (#3054) 2018-10-08 11:06:10 +08:00
Yiyu He
14538a1fd0
deps: pin circular-json@0.5.5 to avoid output deprecate message (#3024)
the author of `circular-json` recommended `flatted` to replace `circular-json`
but `flatted`'s output is too different with JSON.stringify which don't fit our needs
2018-09-20 18:18:20 +08:00
TZ | 天猪
97241f3289
fix: config.allowDebugAtProd default to false (#2986) 2018-09-11 09:29:39 +08:00
fengmk2
864faae40b perf: improve set type performance by lru cache (#2698) 2018-06-14 17:52:41 +08:00
Haoliang Gao
a36387f22d
feat: dump timing data for loader (#2521)
Ref https://github.com/eggjs/egg/issues/1898
2018-05-09 23:43:32 +08:00
Haoliang Gao
f7aa925547
Release 1.14.0 (#2494) 2018-05-03 22:22:17 +08:00
Haoliang Gao
58695707dd
feat: add time duration for dump config (#2485) (#2491) 2018-05-03 15:10:38 +08:00
Yiyu He
8507c5e19c
fix: dumpConfig support circular json (#2395) 2018-04-15 00:37:35 +08:00
Haoliang Gao
70d5898fc7 fix: don't allow x-forwarded-host header (#2162)
It's a security issue, x-forwarded-host can be retreived
from ctx.host when app.config.proxy is true, and be injected
to cookie domain.
2018-03-05 17:28:37 +08:00
fengmk2
be618f8de3 fix: try to use custom function name first (#2156) 2018-03-04 23:28:24 +08:00
Yiyu He
49ec2fc6e1
feat: emit request and response event (#2021) 2018-01-26 11:13:40 +08:00
Yiyu He
ba9ecd4808
fix: log cookie's key when cookie exceed limit length (#1997) 2018-01-22 10:12:31 +08:00
Khaidi Chu
4f6ec61acb feat: add 400 response for broken client request to instead of empty response (#1836) 2017-12-19 11:18:24 +08:00
fengmk2
710defcc06 feat: dump application router json
Store on `run/router.json`
2017-11-29 15:04:14 +08:00
fengmk2
0854c44d5e fix: run dumpConfig at the last ready callback 2017-11-29 15:04:14 +08:00
Yiyu He
2e492c88d1
chore: set publishConfig.tag to release-1.x (#1690) 2017-11-21 15:47:03 +08:00
Yiyu He
fd1ff63892
test: fix tsc test case (#1620) 2017-11-07 03:41:06 -06:00
Haoliang Gao
46ed6fac9f feat: add Subscription (#1469)
Ref https://github.com/eggjs/egg/issues/1468
2017-10-20 06:25:44 -05:00
TZ | 天猪
6846badc8d docs: add plugin.js description (#1499) 2017-10-10 21:23:35 -05:00
zōng yǔ
21425e7a9c feat: make cluster client configurable in egg (#1459) 2017-09-25 09:42:01 +08:00
hui
6eac07eb28 refactor: httpclient args tracer to be enforced (#1421) 2017-09-15 19:28:15 +08:00
AnzerWall
5a9531abbe feat: don’t force logger to use INFO level in prod (#1218) 2017-09-14 13:11:18 +08:00
hui
f7c0d85209 feat: support app.httpclient and agent.httpclient auto set tracer (#1393) 2017-09-10 11:41:34 +08:00
Haoliang Gao
dda386e425 test: add test and doc for listen options (#1246) 2017-07-27 18:06:17 +08:00
Haoliang Gao
3ef1de9524 feat: set cluster options, include path, port, hostname (#1231) 2017-07-27 09:35:50 +08:00
Haoliang Gao
e9f93cf83d refactor: export app.HttpClient that can be overwritten (#1234) 2017-07-26 17:36:49 +08:00
fengmk2
988b8c84d0 fix: make sure config.httpclient.httpAgent.timeout >= 30000 (#1165)
distinguish options: request, httpAgent and httpsAgent on httpclient
2017-07-19 10:05:50 +08:00
fengmk2
5dc56fac04 feat: ignore any key contains "secret" (#1156) 2017-07-05 10:39:25 +08:00
Haoliang Gao
74c8a547cc feat: dump run/${type}_config_meta.json (#1155)
Show who define the property of the config

Closes https://github.com/eggjs/egg/issues/1132
2017-07-05 09:16:10 +08:00
Jackson Tian
b80bb1405c fix: don't cache the intermediate locals for application (#1146) 2017-07-04 16:36:52 +08:00
Eward Song
daa8227833 feat(tsd): add ctx.logger and logger.error support Error object (#1108) 2017-06-26 21:54:45 +08:00
Haoliang Gao
c31bc15097 test: wait logger to flush (#1090)
fix https://travis-ci.org/eggjs/egg/jobs/245671138
2017-06-22 20:38:01 +08:00
Eward Song
2b1644e6d5 feat: add tsd (#1027) 2017-06-20 23:11:42 +08:00
fengmk2
a4ba2a2a1e feat: enable overrideMethod middleware by default (#1069) 2017-06-19 13:47:57 +08:00
fengmk2
4e510b2283 chore: use app.httpRequest() instead of supertest (#1041) 2017-06-13 18:03:53 +08:00
fengmk2
f1b510c340 feat: add config.logger.disableConsoleAfterReady (#1001)
let app can change the logger config
2017-06-12 18:17:05 +08:00
fengmk2
9d705e4687 test: make sure app close (#1030) 2017-06-12 15:14:48 +08:00
fengmk2
13b7c19531 test: node 8 (#976) 2017-06-10 22:03:55 +08:00
Haoliang Gao
1b108a72a9 docs: remove api that is from egg-rest (#1022) 2017-06-09 19:37:17 +08:00
Haoliang Gao
057bc47e4c test: add doc test (#989) 2017-06-09 10:38:24 +08:00
Haoliang Gao
20a5d9127f test: disable coverage for schedule (#987) 2017-06-02 21:19:26 +08:00
Yiyu He
8fc63fd347 release 1.4.0 (#971) 2017-05-29 02:11:12 +08:00
Yiyu He
5b6fe2b187 feat: use lru to aovid oom in dns cache httpclient (#961) 2017-05-27 18:31:46 +08:00
Haoliang Gao
bd0a827c38 refactor: set consoleLevel WARN of coreLogger in local (#850)
This config is removed by PR #695,
but the infomation of coreLogger is not useful for app developer,
and this config won't changed by app developer
2017-05-05 22:02:09 +08:00
Haoliang Gao
13587667ac fix(loader): loadPlugin can be extended (#836) 2017-05-04 12:19:34 +08:00
Haoliang Gao
1a027ad727 test: use assert instead of should (#837) 2017-05-03 22:37:51 +08:00
Haoliang Gao
0522cee5fa Release 1.2.0 (#820) 2017-04-28 20:03:34 +08:00
Yiyu He
0757655cfe feat: BaseContextClass add logger (#816)
- move BaseContextClass to egg
- add BaseContextLogger
2017-04-28 17:01:43 +08:00
TZ | 天猪
5befb0b1f0 feat: remove egg logger local config (#695) 2017-04-14 10:52:29 +08:00
Yiyu He
241b4e83c0 feat: expose egg.Controller and egg.Service (#741) 2017-04-11 15:58:21 +08:00