@midwayjs/web 2.13.3 → 2.14.6

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,44 @@
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.6](https://github.com/midwayjs/midway/compare/v2.14.5...v2.14.6) (2022-02-08)
7
+
8
+ **Note:** Version bump only for package @midwayjs/web
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.14.2](https://github.com/midwayjs/midway/compare/v2.14.1...v2.14.2) (2021-12-28)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * generate middleware typings ([#1442](https://github.com/midwayjs/midway/issues/1442)) ([1b2f99b](https://github.com/midwayjs/midway/commit/1b2f99b0fcfa6d87fa216ac9277d9f1240ef26a2))
20
+
21
+
22
+
23
+
24
+
25
+ # [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * 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))
31
+
32
+
33
+
34
+
35
+
36
+ ## [2.13.4](https://github.com/midwayjs/midway/compare/v2.13.3...v2.13.4) (2021-10-21)
37
+
38
+ **Note:** Version bump only for package @midwayjs/web
39
+
40
+
41
+
42
+
43
+
6
44
  ## [2.13.3](https://github.com/midwayjs/midway/compare/v2.13.2...v2.13.3) (2021-09-28)
7
45
 
8
46
 
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
 
package/dist/base.js CHANGED
@@ -117,6 +117,9 @@ const createAppWorkerLoader = () => {
117
117
  })
118
118
  .load(this.framework);
119
119
  if (this.app.options['midwaySingleton'] !== true) {
120
+ if (!global['MIDWAY_MAIN_FRAMEWORK']) {
121
+ global['MIDWAY_MAIN_FRAMEWORK'] = this.framework;
122
+ }
120
123
  // 这个代码只会在 egg-cluster 模式下执行
121
124
  this.app.beforeStart(async () => {
122
125
  await this.bootstrap.init();
@@ -8,7 +8,7 @@ export interface IMidwayWebBaseApplication {
8
8
  getLogger(name?: string): EggLogger & ILogger;
9
9
  getCoreLogger(): EggLogger & ILogger;
10
10
  generateController?(controllerMapping: string): any;
11
- generateMiddleware?(middlewareId: string): Promise<Middleware<DefaultState, IMidwayKoaContext>>;
11
+ generateMiddleware?(middlewareId: any): Promise<Middleware<DefaultState, IMidwayKoaContext>>;
12
12
  createLogger(name: string, options: LoggerOptions): EggLogger & ILogger;
13
13
  }
14
14
  declare module 'egg' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/web",
3
- "version": "2.13.3",
3
+ "version": "2.14.6",
4
4
  "description": "Midway Web Framework for Egg.js",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@midwayjs/decorator": "^2.13.2",
31
- "@midwayjs/mock": "^2.13.3",
30
+ "@midwayjs/decorator": "^2.14.0",
31
+ "@midwayjs/mock": "^2.14.6",
32
32
  "dayjs": "^1.10.4",
33
33
  "egg-socket.io": "^4.1.6",
34
34
  "egg-view-nunjucks": "^2.3.0",
@@ -41,17 +41,17 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@eggjs/router": "^2.0.0",
44
- "@midwayjs/bootstrap": "^2.13.3",
45
- "@midwayjs/core": "^2.13.3",
46
- "@midwayjs/koa": "^2.13.3",
47
- "@midwayjs/logger": "^2.13.0",
44
+ "@midwayjs/bootstrap": "^2.14.6",
45
+ "@midwayjs/core": "^2.14.6",
46
+ "@midwayjs/koa": "^2.14.6",
47
+ "@midwayjs/logger": "^2.15.0",
48
48
  "debug": "^4.1.1",
49
49
  "egg": "^2.28.0",
50
50
  "egg-logger": "^2.4.2",
51
51
  "egg-path-matching": "^1.0.1",
52
52
  "extend2": "^1.0.0",
53
53
  "find-up": "^5.0.0",
54
- "midway-schedule": "^2.13.3",
54
+ "midway-schedule": "^2.14.6",
55
55
  "mkdirp": "^1.0.4"
56
56
  },
57
57
  "author": "Harry Chen <czy88840616@gmail.com>",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=10.10.0"
64
64
  },
65
- "gitHead": "30f63af0d6560421b36f31064cb20b13a53b5afb"
65
+ "gitHead": "9041633a98444568643bb5a1e8f10bb58e1f1b19"
66
66
  }