@midwayjs/koa 3.0.0-beta.12 → 3.0.0-beta.16

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