35 Commits

Author SHA1 Message Date
killa
432128a80a
type: export EggLogger/EggHttpClient/EggContextHttpClient (#4280)
* type: export EggLogger

* type: export EggHttpClient/EggContextHttpClient

* fix: fix cookie assert

* ci: disable travis npm cache
2020-06-29 16:57:32 +08:00
QingDeng
5b2dbd5b09 test: fix some test methods failed on windows platform (#3686) 2019-05-10 10:41:14 +08:00
fengmk2
886d9ad8fd feat: add Subscription base class on app instance (#3058) 2018-10-08 10:52:26 +08:00
TZ | 天猪
6f5bf3d227
Release 2.11.0 (#2989) 2018-09-12 11:07:38 +08:00
Yiyu He
12edd64915
test: use async function instead of generator function (#1684) 2017-11-20 17:42:35 +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
fengmk2
4e510b2283 chore: use app.httpRequest() instead of supertest (#1041) 2017-06-13 18:03:53 +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
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
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 | 天猪
c1464fbecb docs: more detail for mysql dynamic create (#540) 2017-03-10 19:45:56 +08:00
Haoliang Gao
da3c26a212 test: fix development test (#546) 2017-03-10 17:27:27 +08:00
Yiyu He
743874d875 refactor: [BREAKING CHANGE] remove userservice and userrole (#527) 2017-03-07 14:18:29 +08:00
fengmk2
a296351927 refactor: [BREAKING_CHANGE] remove default validate plugin (#526)
It's hard to find a default validate plugin to satisfy everyone

https://github.com/eggjs/egg/issues/517
2017-03-07 01:25:26 +08:00
fengmk2
1777bb89c5 test: add qs security test cases (#491) 2017-03-02 01:41:49 +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
c6914e0ef4 feat: view base promise to support async function (#343) 2017-02-09 19:07:51 +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
8d98e4ff03 refactor: use app.beforeClose (#306)
* refactor: using onClose

* f

* f

* f
2017-01-26 16:58:15 +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
Yiyu He
e022a102f1 test: fix cookie test cases (#296) 2017-01-22 17:21:41 +08:00
Yiyu He
20571f6a1f feat: adjust default plugins (#251)
remove egg-rest and egg-cors and static enable by default
2017-01-13 14:48:02 +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
f15996e879 test: fix unstable test (#133) 2016-10-28 20:12:00 +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
ea5f34d34b test: fix security tests (#73) 2016-09-01 16:42:54 +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