@modern-js/plugin-koa 1.5.0-alpha.0 → 1.5.1

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
@@ -1,21 +1,30 @@
1
1
  # @modern-js/plugin-koa
2
2
 
3
- ## 1.5.0-alpha.0
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 74f7fd7: fix: fix bff hot reload not works when has app.ts
8
+ fix: 修复有 app.ts 的时候, bff 热更新不生效的问题
9
+ - Updated dependencies [74f7fd7]
10
+ - @modern-js/bff-core@1.1.3
11
+
12
+ ## 1.5.0
4
13
 
5
14
  ### Minor Changes
6
15
 
7
- - 77a8e9e1b: feat: support bff operators
16
+ - 77a8e9e: feat: support bff operators
8
17
 
9
18
  ### Patch Changes
10
19
 
11
- - Updated dependencies [77a8e9e1b]
12
- - Updated dependencies [9cd364e06]
13
- - Updated dependencies [7b9e302e2]
14
- - Updated dependencies [a90bc96bd]
15
- - @modern-js/adapter-helpers@1.3.0-alpha.0
16
- - @modern-js/bff-core@1.1.0-alpha.0
17
- - @modern-js/bff-runtime@1.3.0-alpha.0
18
- - @modern-js/utils@1.7.9-alpha.0
20
+ - Updated dependencies [77a8e9e]
21
+ - Updated dependencies [b220f1d]
22
+ - Updated dependencies [7b9e302]
23
+ - Updated dependencies [a90bc96]
24
+ - @modern-js/adapter-helpers@1.3.0
25
+ - @modern-js/bff-core@1.1.0
26
+ - @modern-js/bff-runtime@1.3.0
27
+ - @modern-js/utils@1.7.9
19
28
 
20
29
  ## 1.4.10
21
30
 
@@ -12,6 +12,8 @@ const findAppModule = async apiDir => {
12
12
 
13
13
  for (const filename of paths) {
14
14
  if (await fs.pathExists(filename)) {
15
+ // 每次获取 app.ts 的时候,避免使用缓存的 app.ts
16
+ delete require.cache[filename];
15
17
  return compatRequire(filename);
16
18
  }
17
19
  }
@@ -31,6 +31,8 @@ const findAppModule = async apiDir => {
31
31
 
32
32
  for (const filename of paths) {
33
33
  if (await _utils.fs.pathExists(filename)) {
34
+ // 每次获取 app.ts 的时候,避免使用缓存的 app.ts
35
+ delete require.cache[filename];
34
36
  return (0, _utils.compatRequire)(filename);
35
37
  }
36
38
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.5.0-alpha.0",
14
+ "version": "1.5.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -34,17 +34,17 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
- "@modern-js/adapter-helpers": "^1.3.0-alpha.0",
38
- "@modern-js/bff-core": "^1.1.0-alpha.0",
39
- "@modern-js/bff-runtime": "^1.3.0-alpha.0",
40
- "@modern-js/utils": "^1.7.9-alpha.0",
37
+ "@modern-js/adapter-helpers": "^1.3.0",
38
+ "@modern-js/bff-core": "^1.1.3",
39
+ "@modern-js/bff-runtime": "^1.3.0",
40
+ "@modern-js/utils": "^1.7.12",
41
41
  "koa-body": "^4.2.0",
42
42
  "koa-router": "^10.0.0",
43
43
  "type-is": "^1.6.18"
44
44
  },
45
45
  "devDependencies": {
46
- "@modern-js/core": "1.12.2-alpha.0",
47
- "@modern-js/server-core": "1.4.0-alpha.0",
46
+ "@modern-js/core": "1.13.0",
47
+ "@modern-js/server-core": "1.4.1",
48
48
  "@scripts/build": "0.0.0",
49
49
  "@scripts/jest-config": "0.0.0",
50
50
  "@types/jest": "^27",