@midwayjs/koa 2.13.1 → 2.14.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([5d5f299](https://github.com/midwayjs/midway/commit/5d5f2992be116ca71b21f01fd782e3a2ac072496))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.13.4](https://github.com/midwayjs/midway/compare/v2.13.3...v2.13.4) (2021-10-21)
18
+
19
+ **Note:** Version bump only for package @midwayjs/koa
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.13.3](https://github.com/midwayjs/midway/compare/v2.13.2...v2.13.3) (2021-09-28)
26
+
27
+ **Note:** Version bump only for package @midwayjs/koa
28
+
29
+
30
+
31
+
32
+
33
+ ## [2.13.2](https://github.com/midwayjs/midway/compare/v2.13.1...v2.13.2) (2021-09-09)
34
+
35
+ **Note:** Version bump only for package @midwayjs/koa
36
+
37
+
38
+
39
+
40
+
6
41
  ## [2.13.1](https://github.com/midwayjs/midway/compare/v2.13.0...v2.13.1) (2021-09-08)
7
42
 
8
43
  **Note:** Version bump only for package @midwayjs/koa
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
@@ -30,7 +30,6 @@ export declare abstract class MidwayKoaBaseFramework<APP extends IMidwayKoaAppli
30
30
  export declare class MidwayKoaFramework extends MidwayKoaBaseFramework<IMidwayKoaApplication, IMidwayKoaContext, IMidwayKoaConfigurationOptions> {
31
31
  private server;
32
32
  applicationInitialize(options: Partial<IMidwayBootstrapOptions>): Promise<void>;
33
- protected afterContainerReady(options: Partial<IMidwayBootstrapOptions>): Promise<void>;
34
33
  run(): Promise<void>;
35
34
  beforeStop(): Promise<void>;
36
35
  getFrameworkType(): MidwayFrameworkType;
package/dist/framework.js CHANGED
@@ -181,10 +181,8 @@ class MidwayKoaFramework extends MidwayKoaBaseFramework {
181
181
  // register httpServer to applicationContext
182
182
  this.applicationContext.registerObject(core_1.HTTP_SERVER_KEY, this.server);
183
183
  }
184
- async afterContainerReady(options) {
185
- await this.loadMidwayController();
186
- }
187
184
  async run() {
185
+ await this.loadMidwayController();
188
186
  if (this.configurationOptions.port) {
189
187
  new Promise(resolve => {
190
188
  const args = [this.configurationOptions.port];
@@ -1,3 +1,4 @@
1
+ /// <reference types="koa-passport" />
1
2
  /// <reference types="node" />
2
3
  import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
3
4
  import * as koa from 'koa';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "2.13.1",
3
+ "version": "2.14.0",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@midwayjs/decorator": "^2.13.0",
27
- "@midwayjs/mock": "^2.13.1",
26
+ "@midwayjs/decorator": "^2.14.0",
27
+ "@midwayjs/mock": "^2.14.0",
28
28
  "@types/koa": "^2.11.4",
29
29
  "@types/koa-router": "^7.4.1",
30
30
  "fs-extra": "^8.0.1",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@koa/router": "^10.0.0",
36
- "@midwayjs/core": "^2.13.1",
36
+ "@midwayjs/core": "^2.14.0",
37
37
  "@midwayjs/logger": "^2.13.0",
38
38
  "koa": "^2.13.0"
39
39
  },
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=10.10.0"
47
47
  },
48
- "gitHead": "d50576713e723aef47f1f7464eeecae82e605874"
48
+ "gitHead": "5fd716b0e731162d8e9f0931790fde7402fb83de"
49
49
  }