@midwayjs/koa 3.0.0-beta.13 → 3.0.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # midway for koa
2
2
 
3
- [![Package Quality](http://npm.packagequality.com/shield/midway-web.svg)](http://packagequality.com/#?package=midway-web)
3
+ [![Package Quality](http://npm.packagequality.com/shield/@midwayjs/koa.svg)](http://packagequality.com/#?package=@midwayjs/koa)
4
4
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/midwayjs/midway/pulls)
5
5
 
6
6
  this is a sub package for midway.
@@ -23,6 +23,7 @@ export declare class MidwayKoaFramework extends BaseFramework<IMidwayKoaApplicat
23
23
  getFrameworkType(): MidwayFrameworkType;
24
24
  getFrameworkName(): string;
25
25
  getServer(): Server;
26
+ getPort(): string;
26
27
  useMiddleware(Middleware: CommonMiddlewareUnion<IMidwayKoaContext, Next, unknown>): void;
27
28
  useFilter(Filter: CommonFilterUnion<IMidwayKoaContext, Next, unknown>): void;
28
29
  }
package/dist/framework.js CHANGED
@@ -174,6 +174,9 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
174
174
  getServer() {
175
175
  return this.server;
176
176
  }
177
+ getPort() {
178
+ return process.env.MIDWAY_HTTP_PORT;
179
+ }
177
180
  useMiddleware(Middleware) {
178
181
  this.middlewareManager.insertLast(Middleware);
179
182
  }
@@ -1,10 +1,8 @@
1
- /// <reference types="koa-session" />
2
1
  /// <reference types="node" />
3
2
  import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
4
3
  import * as koa from 'koa';
5
4
  import { Context as KoaContext, DefaultState, Middleware, Next } from 'koa';
6
5
  import { RouterParamValue } from '@midwayjs/decorator';
7
- import * as bodyParser from 'koa-bodyparser';
8
6
  import { CookieSetOptions } from '@midwayjs/cookies';
9
7
  export declare type IMidwayKoaContext = IMidwayContext<KoaContext>;
10
8
  export declare type IMidwayKoaApplication = IMidwayApplication<IMidwayKoaContext, koa<DefaultState, IMidwayKoaContext> & {
@@ -61,6 +59,53 @@ export interface IWebMiddleware {
61
59
  export declare type Application = IMidwayKoaApplication;
62
60
  export interface Context extends IMidwayKoaContext {
63
61
  }
62
+ interface BodyParserOptions {
63
+ /**
64
+ * parser will only parse when request type hits enableTypes, default is ['json', 'form'].
65
+ */
66
+ enableTypes?: string[] | undefined;
67
+ /**
68
+ * requested encoding. Default is utf-8 by co-body
69
+ */
70
+ encode?: string | undefined;
71
+ /**
72
+ * limit of the urlencoded body. If the body ends up being larger than this limit
73
+ * a 413 error code is returned. Default is 56kb
74
+ */
75
+ formLimit?: string | undefined;
76
+ /**
77
+ * limit of the json body. Default is 1mb
78
+ */
79
+ jsonLimit?: string | undefined;
80
+ /**
81
+ * limit of the text body. Default is 1mb.
82
+ */
83
+ textLimit?: string | undefined;
84
+ /**
85
+ * limit of the xml body. Default is 1mb.
86
+ */
87
+ xmlLimit?: string | undefined;
88
+ /**
89
+ * when set to true, JSON parser will only accept arrays and objects. Default is true
90
+ */
91
+ strict?: boolean | undefined;
92
+ /**
93
+ * custom json request detect function. Default is null
94
+ */
95
+ detectJSON?: ((ctx: IMidwayKoaContext) => boolean) | undefined;
96
+ /**
97
+ * support extend types
98
+ */
99
+ extendTypes?: {
100
+ json?: string[] | undefined;
101
+ form?: string[] | undefined;
102
+ text?: string[] | undefined;
103
+ } | undefined;
104
+ /**
105
+ * support custom error handle
106
+ */
107
+ onerror?: ((err: Error, ctx: IMidwayKoaContext) => void) | undefined;
108
+ }
64
109
  declare module '@midwayjs/core/dist/interface' {
65
110
  interface MidwayConfig {
66
111
  keys?: string | string[];
@@ -77,7 +122,14 @@ declare module '@midwayjs/core/dist/interface' {
77
122
  template?: string;
78
123
  accepts?: (...args: any[]) => any;
79
124
  };
80
- bodyParser?: bodyParser.Options;
125
+ bodyParser?: BodyParserOptions;
126
+ }
127
+ }
128
+ declare module 'koa' {
129
+ interface Request {
130
+ body?: any;
131
+ rawBody: string;
81
132
  }
82
133
  }
134
+ export {};
83
135
  //# sourceMappingURL=interface.d.ts.map
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "3.0.0-beta.13",
3
+ "version": "3.0.0-beta.17",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest",
10
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
9
+ "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
10
+ "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
11
11
  "ci": "npm run test"
12
12
  },
13
13
  "keywords": [
@@ -23,21 +23,20 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@midwayjs/decorator": "^3.0.0-beta.13",
27
- "@midwayjs/logger": "^3.0.0-beta.13",
28
- "@midwayjs/mock": "^3.0.0-beta.13",
29
- "@types/koa": "^2.11.4",
30
- "@types/koa-bodyparser": "^4.3.4",
31
- "@types/koa-router": "^7.4.1",
32
- "fs-extra": "^8.0.1"
26
+ "@midwayjs/decorator": "^3.0.0-beta.17",
27
+ "@midwayjs/logger": "2.14.0",
28
+ "@midwayjs/mock": "^3.0.0-beta.17",
29
+ "@types/koa": "2.13.4",
30
+ "@types/koa-router": "7.4.4",
31
+ "fs-extra": "10.0.0"
33
32
  },
34
33
  "dependencies": {
35
34
  "@koa/router": "^10.0.0",
36
- "@midwayjs/cookies": "^1.0.1",
37
- "@midwayjs/core": "^3.0.0-beta.13",
38
- "@midwayjs/session": "^3.0.0-beta.13",
39
- "koa": "^2.13.4",
40
- "koa-bodyparser": "^4.3.0",
35
+ "@midwayjs/cookies": "1.0.1",
36
+ "@midwayjs/core": "^3.0.0-beta.17",
37
+ "@midwayjs/session": "^3.0.0-beta.17",
38
+ "koa": "2.13.4",
39
+ "koa-bodyparser": "4.3.0",
41
40
  "koa-onerror": "^4.1.0"
42
41
  },
43
42
  "author": "Harry Chen <czy88840616@gmail.com>",
@@ -48,5 +47,5 @@
48
47
  "engines": {
49
48
  "node": ">=12"
50
49
  },
51
- "gitHead": "d3c47770fee9dce33a8d148882173fd7782864ad"
50
+ "gitHead": "17a8b5bd3d0b0b21f24dd2f165b5df9097fc3ec4"
52
51
  }
package/CHANGELOG.md DELETED
@@ -1,1037 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
-
8
-
9
- ### Features
10
-
11
- * 404 error ([#1465](https://github.com/midwayjs/midway/issues/1465)) ([e7e8a9d](https://github.com/midwayjs/midway/commit/e7e8a9dedfa7198ac05b161b41024c2871f93965))
12
-
13
-
14
-
15
-
16
-
17
- # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
18
-
19
-
20
- ### Features
21
-
22
- * custom error code & add @Files/@Fields ([#1438](https://github.com/midwayjs/midway/issues/1438)) ([b0032af](https://github.com/midwayjs/midway/commit/b0032afd2fa9ea0416fe69f4bd0c1a58bea5314e))
23
- * support throw err status ([#1440](https://github.com/midwayjs/midway/issues/1440)) ([7b98110](https://github.com/midwayjs/midway/commit/7b98110d65c5287a8fcb3eb5356dea2d7a32cee9))
24
-
25
-
26
-
27
-
28
-
29
- # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
30
-
31
- **Note:** Version bump only for package @midwayjs/koa
32
-
33
-
34
-
35
-
36
-
37
- # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
38
-
39
-
40
- ### Features
41
-
42
- * default add session & bodyparser support for koa/express/faas ([#1420](https://github.com/midwayjs/midway/issues/1420)) ([cdaff31](https://github.com/midwayjs/midway/commit/cdaff317c3e862a95494a167995a28280af639bf))
43
- * implement i18n for validate ([#1426](https://github.com/midwayjs/midway/issues/1426)) ([4c7ed2f](https://github.com/midwayjs/midway/commit/4c7ed2ff2e7ccf10f88f62abad230f92f5e76b97))
44
-
45
-
46
-
47
-
48
-
49
- # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
50
-
51
- **Note:** Version bump only for package @midwayjs/koa
52
-
53
-
54
-
55
-
56
-
57
- # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
63
- * passport missing proxy file ([#1405](https://github.com/midwayjs/midway/issues/1405)) ([5c9bdae](https://github.com/midwayjs/midway/commit/5c9bdae8323b41ead72c3d3f867aa11150bb3e78))
64
-
65
-
66
-
67
-
68
-
69
- # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
70
-
71
-
72
- ### Bug Fixes
73
-
74
- * add app.keys ([#1395](https://github.com/midwayjs/midway/issues/1395)) ([c44afc6](https://github.com/midwayjs/midway/commit/c44afc6cc6764a959d1fa7ae04d60099282d156a))
75
- * middleware with ctx.body ([#1389](https://github.com/midwayjs/midway/issues/1389)) ([77af5c0](https://github.com/midwayjs/midway/commit/77af5c0b456f1843f4dcfd3dbfd2c0aa244c51bd))
76
-
77
-
78
-
79
-
80
-
81
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
82
-
83
-
84
- ### Bug Fixes
85
-
86
- * class transformer method missing ([#1387](https://github.com/midwayjs/midway/issues/1387)) ([074e839](https://github.com/midwayjs/midway/commit/074e8393598dc95e2742f735df75a2191c5fe25d))
87
-
88
-
89
-
90
-
91
-
92
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
93
-
94
- **Note:** Version bump only for package @midwayjs/koa
95
-
96
-
97
-
98
-
99
-
100
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
101
-
102
-
103
- ### Features
104
-
105
- * add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
106
- * auto transform args to type ([#1372](https://github.com/midwayjs/midway/issues/1372)) ([bb3f7d2](https://github.com/midwayjs/midway/commit/bb3f7d2028a034e1926d9df554849332354c3762))
107
- * support global prefix url ([#1371](https://github.com/midwayjs/midway/issues/1371)) ([cc5fe44](https://github.com/midwayjs/midway/commit/cc5fe44e1d221590562dc71e1f33ae96093e0da7))
108
-
109
-
110
-
111
-
112
-
113
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
114
-
115
-
116
- ### Features
117
-
118
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
119
-
120
-
121
-
122
-
123
-
124
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
125
-
126
- **Note:** Version bump only for package @midwayjs/koa
127
-
128
-
129
-
130
-
131
-
132
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
133
-
134
-
135
- ### Features
136
-
137
- * add http2 support ([#1242](https://github.com/midwayjs/midway/issues/1242)) ([6cda27e](https://github.com/midwayjs/midway/commit/6cda27e9e22689e46ace543326b43ae21b134911))
138
-
139
-
140
-
141
-
142
-
143
- ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
144
-
145
- **Note:** Version bump only for package @midwayjs/koa
146
-
147
-
148
-
149
-
150
-
151
- ## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
152
-
153
-
154
- ### Bug Fixes
155
-
156
- * server hostname args ([#1196](https://github.com/midwayjs/midway/issues/1196)) ([b9d73f0](https://github.com/midwayjs/midway/commit/b9d73f036befd13c1db28f967fb769459237c52e))
157
-
158
-
159
-
160
-
161
-
162
- # [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
163
-
164
-
165
- ### Features
166
-
167
- * add support hostname to http-listening ([#1186](https://github.com/midwayjs/midway/issues/1186)) ([6f8356f](https://github.com/midwayjs/midway/commit/6f8356f610c49f87ce8fb9e7d1e60fbd0527d97c))
168
-
169
-
170
-
171
-
172
-
173
- ## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
174
-
175
- **Note:** Version bump only for package @midwayjs/koa
176
-
177
-
178
-
179
-
180
-
181
- ## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
182
-
183
- **Note:** Version bump only for package @midwayjs/koa
184
-
185
-
186
-
187
-
188
-
189
- ## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
190
-
191
- **Note:** Version bump only for package @midwayjs/koa
192
-
193
-
194
-
195
-
196
-
197
- ## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
198
-
199
-
200
- ### Bug Fixes
201
-
202
- * uppercase for header decorator ([#1123](https://github.com/midwayjs/midway/issues/1123)) ([cfcfb1f](https://github.com/midwayjs/midway/commit/cfcfb1fb8860b110e2671e9bff57f6c537f11f90))
203
-
204
-
205
-
206
-
207
-
208
- ## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
209
-
210
- **Note:** Version bump only for package @midwayjs/koa
211
-
212
-
213
-
214
-
215
-
216
- ## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
217
-
218
- **Note:** Version bump only for package @midwayjs/koa
219
-
220
-
221
-
222
-
223
-
224
- # [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
225
-
226
- **Note:** Version bump only for package @midwayjs/koa
227
-
228
-
229
-
230
-
231
-
232
- ## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
233
-
234
-
235
- ### Features
236
-
237
- * add zlib logger file ([#1038](https://github.com/midwayjs/midway/issues/1038)) ([2ae9131](https://github.com/midwayjs/midway/commit/2ae9131b8c8745d2840c40a5d50aa2d3f73bafbf))
238
-
239
-
240
-
241
-
242
-
243
- ## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
244
-
245
-
246
- ### Bug Fixes
247
-
248
- * serverless app more method ([#1034](https://github.com/midwayjs/midway/issues/1034)) ([9c44c3f](https://github.com/midwayjs/midway/commit/9c44c3f58930d0c12464d00eceee93cb9e7aaa62))
249
-
250
-
251
-
252
-
253
-
254
- ## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
255
-
256
-
257
- ### Bug Fixes
258
-
259
- * remove zlib ([#1035](https://github.com/midwayjs/midway/issues/1035)) ([cc2cd40](https://github.com/midwayjs/midway/commit/cc2cd405a104b3388d93a09d981b59b472fd8ea1))
260
-
261
-
262
-
263
-
264
-
265
- ## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
266
-
267
- **Note:** Version bump only for package @midwayjs/koa
268
-
269
-
270
-
271
-
272
-
273
- ## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
274
-
275
- **Note:** Version bump only for package @midwayjs/koa
276
-
277
-
278
-
279
-
280
-
281
- ## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
282
-
283
- **Note:** Version bump only for package @midwayjs/koa
284
-
285
-
286
-
287
-
288
-
289
- ## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
290
-
291
- **Note:** Version bump only for package @midwayjs/koa
292
-
293
-
294
-
295
-
296
-
297
- ## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
298
-
299
- **Note:** Version bump only for package @midwayjs/koa
300
-
301
-
302
-
303
-
304
-
305
- ## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
306
-
307
-
308
- ### Bug Fixes
309
-
310
- * add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
311
- * add midway case for egg-layer and add warn for DecoratorManager ([#994](https://github.com/midwayjs/midway/issues/994)) ([3d601aa](https://github.com/midwayjs/midway/commit/3d601aa19104081870eb32ba09170357a9da4d03))
312
- * format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
313
-
314
-
315
-
316
-
317
-
318
- ## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
319
-
320
- **Note:** Version bump only for package @midwayjs/koa
321
-
322
-
323
-
324
-
325
-
326
- ## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
327
-
328
- **Note:** Version bump only for package @midwayjs/koa
329
-
330
-
331
-
332
-
333
-
334
- ## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
335
-
336
-
337
- ### Bug Fixes
338
-
339
- * clear container cache when test ([#978](https://github.com/midwayjs/midway/issues/978)) ([a202075](https://github.com/midwayjs/midway/commit/a202075b52d281e06f1ed7c6139e968fafc960f6))
340
-
341
-
342
-
343
-
344
-
345
- ## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
346
-
347
- **Note:** Version bump only for package @midwayjs/koa
348
-
349
-
350
-
351
-
352
-
353
- ## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
354
-
355
- **Note:** Version bump only for package @midwayjs/koa
356
-
357
-
358
-
359
-
360
-
361
- # [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
362
-
363
-
364
- ### Features
365
-
366
- * use @ServerlessTrigger replace functions in f.yml ([#919](https://github.com/midwayjs/midway/issues/919)) ([a85af14](https://github.com/midwayjs/midway/commit/a85af14e06231e8cd82eff8755794ffd13c3ad95))
367
-
368
-
369
-
370
-
371
-
372
- ## [2.9.3](https://github.com/midwayjs/midway/compare/v2.9.2...v2.9.3) (2021-03-30)
373
-
374
- **Note:** Version bump only for package @midwayjs/koa
375
-
376
-
377
-
378
-
379
-
380
- ## [2.9.2](https://github.com/midwayjs/midway/compare/v2.9.1...v2.9.2) (2021-03-27)
381
-
382
- **Note:** Version bump only for package @midwayjs/koa
383
-
384
-
385
-
386
-
387
-
388
- ## [2.9.1](https://github.com/midwayjs/midway/compare/v2.9.0...v2.9.1) (2021-03-24)
389
-
390
- **Note:** Version bump only for package @midwayjs/koa
391
-
392
-
393
-
394
-
395
-
396
- # [2.9.0](https://github.com/midwayjs/midway/compare/v2.8.13...v2.9.0) (2021-03-22)
397
-
398
-
399
- ### Features
400
-
401
- * add socket.io-redis support ([#874](https://github.com/midwayjs/midway/issues/874)) ([2818920](https://github.com/midwayjs/midway/commit/2818920b9d3391c81666c5b8587a899b9b237d9e))
402
- * run multi framework in one process ([#925](https://github.com/midwayjs/midway/issues/925)) ([330555f](https://github.com/midwayjs/midway/commit/330555f93b9af2a783771edd58bb9431a325938f))
403
-
404
-
405
-
406
-
407
-
408
- ## [2.8.13](https://github.com/midwayjs/midway/compare/v2.8.12...v2.8.13) (2021-03-17)
409
-
410
- **Note:** Version bump only for package @midwayjs/koa
411
-
412
-
413
-
414
-
415
-
416
- ## [2.8.11](https://github.com/midwayjs/midway/compare/v2.8.10...v2.8.11) (2021-03-12)
417
-
418
- **Note:** Version bump only for package @midwayjs/koa
419
-
420
-
421
-
422
-
423
-
424
- ## [2.8.9](https://github.com/midwayjs/midway/compare/v2.8.8...v2.8.9) (2021-03-08)
425
-
426
- **Note:** Version bump only for package @midwayjs/koa
427
-
428
-
429
-
430
-
431
-
432
- ## [2.8.8](https://github.com/midwayjs/midway/compare/v2.8.7...v2.8.8) (2021-03-06)
433
-
434
- **Note:** Version bump only for package @midwayjs/koa
435
-
436
-
437
-
438
-
439
-
440
- ## [2.8.7](https://github.com/midwayjs/midway/compare/v2.8.6...v2.8.7) (2021-03-04)
441
-
442
- **Note:** Version bump only for package @midwayjs/koa
443
-
444
-
445
-
446
-
447
-
448
- ## [2.8.6](https://github.com/midwayjs/midway/compare/v2.8.5...v2.8.6) (2021-03-03)
449
-
450
- **Note:** Version bump only for package @midwayjs/koa
451
-
452
-
453
-
454
-
455
-
456
- ## [2.8.5](https://github.com/midwayjs/midway/compare/v2.8.4...v2.8.5) (2021-03-03)
457
-
458
- **Note:** Version bump only for package @midwayjs/koa
459
-
460
-
461
-
462
-
463
-
464
- ## [2.8.4](https://github.com/midwayjs/midway/compare/v2.8.3...v2.8.4) (2021-03-03)
465
-
466
-
467
- ### Bug Fixes
468
-
469
- * koa-router support wildcard ([#881](https://github.com/midwayjs/midway/issues/881)) ([0321497](https://github.com/midwayjs/midway/commit/0321497421de648dc791ceb60316c78026dc3cf9))
470
-
471
-
472
- ### Features
473
-
474
- * add conflictCheck ([#876](https://github.com/midwayjs/midway/issues/876)) ([673470a](https://github.com/midwayjs/midway/commit/673470a14e3f5a159bf7a2f1e56cbf27cc3b6b21))
475
-
476
-
477
-
478
-
479
-
480
- ## [2.8.3](https://github.com/midwayjs/midway/compare/v2.8.2...v2.8.3) (2021-03-01)
481
-
482
- **Note:** Version bump only for package @midwayjs/koa
483
-
484
-
485
-
486
-
487
-
488
- ## [2.8.2](https://github.com/midwayjs/midway/compare/v2.8.0...v2.8.2) (2021-02-27)
489
-
490
-
491
- ### Features
492
-
493
- * support fun router ([#867](https://github.com/midwayjs/midway/issues/867)) ([01e673f](https://github.com/midwayjs/midway/commit/01e673f50d48d302e449ab88c2e419bcaeab1458))
494
-
495
-
496
-
497
-
498
-
499
- # [2.8.0](https://github.com/midwayjs/midway/compare/v2.7.7...v2.8.0) (2021-02-24)
500
-
501
-
502
- ### Features
503
-
504
- * add router collector and export router table ([#852](https://github.com/midwayjs/midway/issues/852)) ([3641ac9](https://github.com/midwayjs/midway/commit/3641ac9c78ed9888525ce0c87415b961d4602fa8))
505
- * move context logger to @midwayjs/logger and add createFileL… ([#859](https://github.com/midwayjs/midway/issues/859)) ([49f568f](https://github.com/midwayjs/midway/commit/49f568f372b610494d59fa415f4f241c400c7db0))
506
- * support queries decorator ([#858](https://github.com/midwayjs/midway/issues/858)) ([ddb080b](https://github.com/midwayjs/midway/commit/ddb080bbba0b24a4c1f826d8552966275f31ebeb))
507
-
508
-
509
-
510
-
511
-
512
- ## [2.7.7](https://github.com/midwayjs/midway/compare/v2.7.6...v2.7.7) (2021-02-20)
513
-
514
- **Note:** Version bump only for package @midwayjs/koa
515
-
516
-
517
-
518
-
519
-
520
- ## [2.7.5](https://github.com/midwayjs/midway/compare/v2.7.4...v2.7.5) (2021-02-08)
521
-
522
- **Note:** Version bump only for package @midwayjs/koa
523
-
524
-
525
-
526
-
527
-
528
- ## [2.7.2](https://github.com/midwayjs/midway/compare/v2.7.1...v2.7.2) (2021-01-28)
529
-
530
- **Note:** Version bump only for package @midwayjs/koa
531
-
532
-
533
-
534
-
535
-
536
- ## [2.7.1](https://github.com/midwayjs/midway/compare/v2.7.0...v2.7.1) (2021-01-28)
537
-
538
-
539
- ### Bug Fixes
540
-
541
- * disable coreLogger info console output in local env ([#829](https://github.com/midwayjs/midway/issues/829)) ([adaaaea](https://github.com/midwayjs/midway/commit/adaaaeaa9694c072de709c6643c0d7cffbdf3065))
542
-
543
-
544
-
545
-
546
-
547
- # [2.7.0](https://github.com/midwayjs/midway/compare/v2.6.13...v2.7.0) (2021-01-27)
548
-
549
-
550
- ### Features
551
-
552
- * add midway gRPC framework ([#786](https://github.com/midwayjs/midway/issues/786)) ([d90362c](https://github.com/midwayjs/midway/commit/d90362c6bf15c00621ffc2981f19842f216395f8))
553
- * support entry file in bootstrap ([#819](https://github.com/midwayjs/midway/issues/819)) ([49a5ff6](https://github.com/midwayjs/midway/commit/49a5ff662134bdd42dc3a80738b44a05138f8f7c))
554
-
555
-
556
-
557
-
558
-
559
- ## [2.6.13](https://github.com/midwayjs/midway/compare/v2.6.12...v2.6.13) (2021-01-21)
560
-
561
- **Note:** Version bump only for package @midwayjs/koa
562
-
563
-
564
-
565
-
566
-
567
- ## [2.6.12](https://github.com/midwayjs/midway/compare/v2.6.11...v2.6.12) (2021-01-15)
568
-
569
- **Note:** Version bump only for package @midwayjs/koa
570
-
571
-
572
-
573
-
574
-
575
- ## [2.6.10](https://github.com/midwayjs/midway/compare/v2.6.9...v2.6.10) (2021-01-10)
576
-
577
- **Note:** Version bump only for package @midwayjs/koa
578
-
579
-
580
-
581
-
582
-
583
- ## [2.6.9](https://github.com/midwayjs/midway/compare/v2.6.8...v2.6.9) (2021-01-08)
584
-
585
- **Note:** Version bump only for package @midwayjs/koa
586
-
587
-
588
-
589
-
590
-
591
- ## [2.6.8](https://github.com/midwayjs/midway/compare/v2.6.7...v2.6.8) (2021-01-06)
592
-
593
- **Note:** Version bump only for package @midwayjs/koa
594
-
595
-
596
-
597
-
598
-
599
- ## [2.6.7](https://github.com/midwayjs/midway/compare/v2.6.6...v2.6.7) (2021-01-05)
600
-
601
- **Note:** Version bump only for package @midwayjs/koa
602
-
603
-
604
-
605
-
606
-
607
- ## [2.6.6](https://github.com/midwayjs/midway/compare/v2.6.5...v2.6.6) (2021-01-04)
608
-
609
- **Note:** Version bump only for package @midwayjs/koa
610
-
611
-
612
-
613
-
614
-
615
- ## [2.6.5](https://github.com/midwayjs/midway/compare/v2.6.4...v2.6.5) (2021-01-04)
616
-
617
- **Note:** Version bump only for package @midwayjs/koa
618
-
619
-
620
-
621
-
622
-
623
- ## [2.6.4](https://github.com/midwayjs/midway/compare/v2.6.3...v2.6.4) (2021-01-02)
624
-
625
- **Note:** Version bump only for package @midwayjs/koa
626
-
627
-
628
-
629
-
630
-
631
- ## [2.6.3](https://github.com/midwayjs/midway/compare/v2.6.2...v2.6.3) (2020-12-30)
632
-
633
- **Note:** Version bump only for package @midwayjs/koa
634
-
635
-
636
-
637
-
638
-
639
- ## [2.6.2](https://github.com/midwayjs/midway/compare/v2.6.1...v2.6.2) (2020-12-30)
640
-
641
- **Note:** Version bump only for package @midwayjs/koa
642
-
643
-
644
-
645
-
646
-
647
- ## [2.6.1](https://github.com/midwayjs/midway/compare/v2.6.0...v2.6.1) (2020-12-29)
648
-
649
- **Note:** Version bump only for package @midwayjs/koa
650
-
651
-
652
-
653
-
654
-
655
- # [2.6.0](https://github.com/midwayjs/midway/compare/v2.5.5...v2.6.0) (2020-12-28)
656
-
657
-
658
- ### Features
659
-
660
- * add midway logger ([#743](https://github.com/midwayjs/midway/issues/743)) ([13e8cc7](https://github.com/midwayjs/midway/commit/13e8cc753d994e6f9f073688e22527f75d39984a))
661
- * support https config for web/koa/express ([#742](https://github.com/midwayjs/midway/issues/742)) ([a0c07b9](https://github.com/midwayjs/midway/commit/a0c07b9e3cc2eec7e88e49085f1e66242fa1ec50))
662
-
663
-
664
-
665
-
666
-
667
- ## [2.5.5](https://github.com/midwayjs/midway/compare/v2.5.4...v2.5.5) (2020-12-15)
668
-
669
- **Note:** Version bump only for package @midwayjs/koa
670
-
671
-
672
-
673
-
674
-
675
- ## [2.5.2](https://github.com/midwayjs/midway/compare/v2.5.1...v2.5.2) (2020-12-04)
676
-
677
-
678
- ### Bug Fixes
679
-
680
- * ignore set body after user set status ([#741](https://github.com/midwayjs/midway/issues/741)) ([4fdb2a6](https://github.com/midwayjs/midway/commit/4fdb2a62c0ff694aa0b6bffaec3386a36d4334c9))
681
-
682
-
683
-
684
-
685
-
686
- ## [2.5.1](https://github.com/midwayjs/midway/compare/v2.5.0...v2.5.1) (2020-11-29)
687
-
688
-
689
- ### Bug Fixes
690
-
691
- * return ctx.body and set header after send ([#738](https://github.com/midwayjs/midway/issues/738)) ([4c8e740](https://github.com/midwayjs/midway/commit/4c8e740865ece6a62176144a877863c1d5317d65))
692
-
693
-
694
-
695
-
696
-
697
- # [2.5.0](https://github.com/midwayjs/midway/compare/v2.4.8...v2.5.0) (2020-11-28)
698
-
699
-
700
- ### Bug Fixes
701
-
702
- * koa response 204 ([#733](https://github.com/midwayjs/midway/issues/733)) ([2463d77](https://github.com/midwayjs/midway/commit/2463d77cf2d9b03216acff901839816be45c5e73))
703
-
704
-
705
-
706
-
707
-
708
- ## [2.4.7](https://github.com/midwayjs/midway/compare/v2.4.6...v2.4.7) (2020-11-23)
709
-
710
- **Note:** Version bump only for package @midwayjs/koa
711
-
712
-
713
-
714
-
715
-
716
- ## [2.4.5](https://github.com/midwayjs/midway/compare/v2.4.4...v2.4.5) (2020-11-19)
717
-
718
- **Note:** Version bump only for package @midwayjs/koa
719
-
720
-
721
-
722
-
723
-
724
- ## [2.4.3](https://github.com/midwayjs/midway/compare/v2.4.2...v2.4.3) (2020-11-16)
725
-
726
- **Note:** Version bump only for package @midwayjs/koa
727
-
728
-
729
-
730
-
731
-
732
- ## [2.4.2](https://github.com/midwayjs/midway/compare/v2.4.1...v2.4.2) (2020-11-13)
733
-
734
- **Note:** Version bump only for package @midwayjs/koa
735
-
736
-
737
-
738
-
739
-
740
- ## [2.4.1](https://github.com/midwayjs/midway/compare/v2.4.0...v2.4.1) (2020-11-12)
741
-
742
- **Note:** Version bump only for package @midwayjs/koa
743
-
744
-
745
-
746
-
747
-
748
- # [2.4.0](https://github.com/midwayjs/midway/compare/v2.3.23...v2.4.0) (2020-11-11)
749
-
750
-
751
- ### Features
752
-
753
- * support define custom egg framework ([#709](https://github.com/midwayjs/midway/issues/709)) ([f5baba1](https://github.com/midwayjs/midway/commit/f5baba18d10e3dc91ba9651effadd00b8f66cf8b))
754
-
755
-
756
-
757
-
758
-
759
- ## [2.3.23](https://github.com/midwayjs/midway/compare/v2.3.22...v2.3.23) (2020-11-03)
760
-
761
- **Note:** Version bump only for package @midwayjs/koa
762
-
763
-
764
-
765
-
766
-
767
- ## [2.3.22](https://github.com/midwayjs/midway/compare/v2.3.21...v2.3.22) (2020-10-31)
768
-
769
- **Note:** Version bump only for package @midwayjs/koa
770
-
771
-
772
-
773
-
774
-
775
- ## [2.3.21](https://github.com/midwayjs/midway/compare/v2.3.20...v2.3.21) (2020-10-29)
776
-
777
-
778
- ### Bug Fixes
779
-
780
- * setHeader loop with array ([#691](https://github.com/midwayjs/midway/issues/691)) ([9ed5acc](https://github.com/midwayjs/midway/commit/9ed5acc0f136a2dc6d013b1fd0ee0ab9b7546eab))
781
-
782
-
783
-
784
-
785
-
786
- ## [2.3.20](https://github.com/midwayjs/midway/compare/v2.3.19...v2.3.20) (2020-10-29)
787
-
788
- **Note:** Version bump only for package @midwayjs/koa
789
-
790
-
791
-
792
-
793
-
794
- ## [2.3.19](https://github.com/midwayjs/midway/compare/v2.3.18...v2.3.19) (2020-10-28)
795
-
796
- **Note:** Version bump only for package @midwayjs/koa
797
-
798
-
799
-
800
-
801
-
802
- ## [2.3.18](https://github.com/midwayjs/midway/compare/v2.3.17...v2.3.18) (2020-10-27)
803
-
804
-
805
- ### Bug Fixes
806
-
807
- * configuration inject plugin and more in production environment ([#680](https://github.com/midwayjs/midway/issues/680)) ([41bce5d](https://github.com/midwayjs/midway/commit/41bce5d8a60a6fde61ff62794612eecff2e260ed))
808
-
809
-
810
-
811
-
812
-
813
- ## [2.3.17](https://github.com/midwayjs/midway/compare/v2.3.16...v2.3.17) (2020-10-22)
814
-
815
- **Note:** Version bump only for package @midwayjs/koa
816
-
817
-
818
-
819
-
820
-
821
- ## [2.3.15](https://github.com/midwayjs/midway/compare/v2.3.14...v2.3.15) (2020-10-15)
822
-
823
- **Note:** Version bump only for package @midwayjs/koa
824
-
825
-
826
-
827
-
828
-
829
- ## [2.3.14](https://github.com/midwayjs/midway/compare/v2.3.13...v2.3.14) (2020-10-15)
830
-
831
- **Note:** Version bump only for package @midwayjs/koa
832
-
833
-
834
-
835
-
836
-
837
- ## [2.3.13](https://github.com/midwayjs/midway/compare/v2.3.12...v2.3.13) (2020-10-13)
838
-
839
-
840
- ### Bug Fixes
841
-
842
- * [@plugin](https://github.com/plugin) inject undefined in web middleware ([#667](https://github.com/midwayjs/midway/issues/667)) ([cacb2fa](https://github.com/midwayjs/midway/commit/cacb2faa61258172ef445db0a86e45c3f19014a6))
843
-
844
-
845
-
846
-
847
-
848
- ## [2.3.11](https://github.com/midwayjs/midway/compare/v2.3.10...v2.3.11) (2020-10-08)
849
-
850
- **Note:** Version bump only for package @midwayjs/koa
851
-
852
-
853
-
854
-
855
-
856
- ## [2.3.10](https://github.com/midwayjs/midway/compare/v2.3.9...v2.3.10) (2020-10-08)
857
-
858
-
859
- ### Features
860
-
861
- * replace configuration.imports to object directly and deprecated string ([#657](https://github.com/midwayjs/midway/issues/657)) ([f1b42a1](https://github.com/midwayjs/midway/commit/f1b42a1b338a69cdfaf63e2d951a65333e4f3007))
862
-
863
-
864
-
865
-
866
-
867
- ## [2.3.9](https://github.com/midwayjs/midway/compare/v2.3.8...v2.3.9) (2020-10-05)
868
-
869
- **Note:** Version bump only for package @midwayjs/koa
870
-
871
-
872
-
873
-
874
-
875
- ## [2.3.8](https://github.com/midwayjs/midway/compare/v2.3.7...v2.3.8) (2020-10-05)
876
-
877
- **Note:** Version bump only for package @midwayjs/koa
878
-
879
-
880
-
881
-
882
-
883
- ## [2.3.7](https://github.com/midwayjs/midway/compare/v2.3.6...v2.3.7) (2020-10-04)
884
-
885
- **Note:** Version bump only for package @midwayjs/koa
886
-
887
-
888
-
889
-
890
-
891
- ## [2.3.6](https://github.com/midwayjs/midway/compare/v2.3.4...v2.3.6) (2020-10-02)
892
-
893
- **Note:** Version bump only for package @midwayjs/koa
894
-
895
-
896
-
897
-
898
-
899
- ## [2.3.4](https://github.com/midwayjs/midway/compare/v2.3.3...v2.3.4) (2020-09-28)
900
-
901
- **Note:** Version bump only for package @midwayjs/koa
902
-
903
-
904
-
905
-
906
-
907
- ## [2.3.2](https://github.com/midwayjs/midway/compare/v2.3.1...v2.3.2) (2020-09-28)
908
-
909
- **Note:** Version bump only for package @midwayjs/koa
910
-
911
-
912
-
913
-
914
-
915
- ## [2.3.1](https://github.com/midwayjs/midway/compare/v2.3.0...v2.3.1) (2020-09-27)
916
-
917
- **Note:** Version bump only for package @midwayjs/koa
918
-
919
-
920
-
921
-
922
-
923
- # [2.3.0](https://github.com/midwayjs/midway/compare/v2.2.10...v2.3.0) (2020-09-27)
924
-
925
-
926
- ### Features
927
-
928
- * add rabbitmq ([#647](https://github.com/midwayjs/midway/issues/647)) ([2c03eb4](https://github.com/midwayjs/midway/commit/2c03eb4f5e979d309048a11f17f7579a1d299ba1))
929
-
930
-
931
-
932
-
933
-
934
- ## [2.2.10](https://github.com/midwayjs/midway/compare/v2.2.9...v2.2.10) (2020-09-24)
935
-
936
-
937
- ### Bug Fixes
938
-
939
- * query decorator with empty args ([#646](https://github.com/midwayjs/midway/issues/646)) ([815e230](https://github.com/midwayjs/midway/commit/815e2308e8f40601ee3b94a3ccb2b1567dc03b9f))
940
-
941
-
942
-
943
-
944
-
945
- ## [2.2.9](https://github.com/midwayjs/midway/compare/v2.2.8...v2.2.9) (2020-09-24)
946
-
947
-
948
- ### Bug Fixes
949
-
950
- * remove sourcemap and src in dist ([#645](https://github.com/midwayjs/midway/issues/645)) ([e561a88](https://github.com/midwayjs/midway/commit/e561a88f4a70af15d4be3d5fe0bd39487677d4ce))
951
-
952
-
953
-
954
-
955
-
956
- ## [2.2.8](https://github.com/midwayjs/midway/compare/v2.2.7...v2.2.8) (2020-09-23)
957
-
958
- **Note:** Version bump only for package @midwayjs/koa
959
-
960
-
961
-
962
-
963
-
964
- ## [2.2.7](https://github.com/midwayjs/midway/compare/v2.2.6...v2.2.7) (2020-09-20)
965
-
966
-
967
- ### Bug Fixes
968
-
969
- * WebMiddleare to IWebMiddleware ([e69cf28](https://github.com/midwayjs/midway/commit/e69cf286fa76ab3144404806c5cbbe8642cdcd61))
970
-
971
-
972
-
973
-
974
-
975
- ## [2.2.6](https://github.com/midwayjs/midway/compare/v2.2.5...v2.2.6) (2020-09-18)
976
-
977
-
978
- ### Features
979
-
980
- * add aop ([#640](https://github.com/midwayjs/midway/issues/640)) ([c3e15b3](https://github.com/midwayjs/midway/commit/c3e15b328c184318e364bf40d32fa4df6be2a30a))
981
-
982
-
983
-
984
-
985
-
986
- ## [2.2.5](https://github.com/midwayjs/midway/compare/v2.2.4...v2.2.5) (2020-09-17)
987
-
988
-
989
- ### Features
990
-
991
- * use midway cli replace egg-bin ([#639](https://github.com/midwayjs/midway/issues/639)) ([62bbf38](https://github.com/midwayjs/midway/commit/62bbf3852899476600a0b594cb7dc274b05e29ec))
992
-
993
-
994
-
995
-
996
-
997
- ## [2.2.4](https://github.com/midwayjs/midway/compare/v2.2.3...v2.2.4) (2020-09-15)
998
-
999
-
1000
- ### Bug Fixes
1001
-
1002
- * support midway global middleware use id ([8dc9ae3](https://github.com/midwayjs/midway/commit/8dc9ae33acd559d74f144a75f08fc039037fa45b))
1003
-
1004
-
1005
-
1006
-
1007
-
1008
- ## [2.2.3](https://github.com/midwayjs/midway/compare/v2.2.2...v2.2.3) (2020-09-14)
1009
-
1010
- **Note:** Version bump only for package @midwayjs/koa
1011
-
1012
-
1013
-
1014
-
1015
-
1016
- ## [2.2.2](https://github.com/midwayjs/midway/compare/v2.2.1...v2.2.2) (2020-09-14)
1017
-
1018
- **Note:** Version bump only for package @midwayjs/koa
1019
-
1020
-
1021
-
1022
-
1023
-
1024
- ## [2.2.1](https://github.com/midwayjs/midway/compare/v2.2.0...v2.2.1) (2020-09-14)
1025
-
1026
- **Note:** Version bump only for package @midwayjs/koa
1027
-
1028
-
1029
-
1030
-
1031
-
1032
- # [2.2.0](https://github.com/midwayjs/midway/compare/v2.1.4...v2.2.0) (2020-09-13)
1033
-
1034
-
1035
- ### Features
1036
-
1037
- * complete 2.x beta ([#630](https://github.com/midwayjs/midway/issues/630)) ([b23cd00](https://github.com/midwayjs/midway/commit/b23cd00fe9cefc9057a2284d38d5419773539206))