@modern-js/plugin-express 1.6.1-beta.0 → 1.6.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,5 +1,14 @@
1
1
  # @modern-js/plugin-express
2
2
 
3
+ ## 1.6.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
+
3
12
  ## 1.6.0
4
13
 
5
14
  ### Minor Changes
@@ -13,6 +13,7 @@ const findAppModule = async apiDir => {
13
13
 
14
14
  for (const filename of paths) {
15
15
  if (await fs.pathExists(filename)) {
16
+ // 每次获取 app.ts 的时候,避免使用缓存的 app.ts
16
17
  delete require.cache[filename];
17
18
  return compatRequire(filename);
18
19
  }
@@ -33,6 +33,7 @@ const findAppModule = async apiDir => {
33
33
 
34
34
  for (const filename of paths) {
35
35
  if (await _utils.fs.pathExists(filename)) {
36
+ // 每次获取 app.ts 的时候,避免使用缓存的 app.ts
36
37
  delete require.cache[filename];
37
38
  return (0, _utils.compatRequire)(filename);
38
39
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.6.1-beta.0",
14
+ "version": "1.6.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -35,10 +35,10 @@
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
37
  "@modern-js/adapter-helpers": "^1.3.0",
38
- "@modern-js/bff-core": "^1.1.0",
38
+ "@modern-js/bff-core": "^1.1.3",
39
39
  "@modern-js/bff-runtime": "^1.3.0",
40
- "@modern-js/types": "^1.5.5",
41
- "@modern-js/utils": "^1.7.11",
40
+ "@modern-js/types": "^1.6.0",
41
+ "@modern-js/utils": "^1.7.12",
42
42
  "cookie-parser": "^1.4.5",
43
43
  "finalhandler": "^1.1.2",
44
44
  "formidable": "^1.2.2",
@@ -46,8 +46,8 @@
46
46
  "type-is": "^1.6.18"
47
47
  },
48
48
  "devDependencies": {
49
- "@modern-js/core": "1.12.4",
50
- "@modern-js/server-core": "1.4.0",
49
+ "@modern-js/core": "1.13.0",
50
+ "@modern-js/server-core": "1.4.1",
51
51
  "@modern-js/server-utils": "1.2.11",
52
52
  "@scripts/build": "0.0.0",
53
53
  "@scripts/jest-config": "0.0.0",
@@ -75,8 +75,7 @@
75
75
  },
76
76
  "publishConfig": {
77
77
  "registry": "https://registry.npmjs.org/",
78
- "access": "public",
79
- "types": "./dist/types/index.d.ts"
78
+ "access": "public"
80
79
  },
81
80
  "wireit": {
82
81
  "build": {