@modern-js/plugin-express 1.5.5-canary.0 → 1.5.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
@@ -1,5 +1,29 @@
1
1
  # @modern-js/plugin-express
2
2
 
3
+ ## 1.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a1198d509: feat: bump babel 7.18.0
8
+ - Updated dependencies [a1198d509]
9
+ - @modern-js/adapter-helpers@1.2.6
10
+ - @modern-js/bff-runtime@1.2.4
11
+ - @modern-js/bff-utils@1.2.9
12
+
13
+ ## 1.5.5
14
+
15
+ ### Patch Changes
16
+
17
+ - bfccb4c8: fix: bff runtime path not found in development
18
+ - Updated dependencies [d57e7622]
19
+ - Updated dependencies [6451a098]
20
+ - Updated dependencies [192dbc78]
21
+ - Updated dependencies [d5a2cfd8]
22
+ - Updated dependencies [437367c6]
23
+ - @modern-js/bff-utils@1.2.8
24
+ - @modern-js/utils@1.7.6
25
+ - @modern-js/types@1.5.4
26
+
3
27
  ## 1.5.4
4
28
 
5
29
  ### Patch Changes
@@ -11,7 +11,6 @@ export default (() => ({
11
11
  const runtimeModulePath = path.resolve(__dirname, '../runtime');
12
12
  return {
13
13
  config() {
14
- // eslint-disable-next-line react-hooks/rules-of-hooks
15
14
  const appContext = useAppContext();
16
15
  const {
17
16
  appDirectory
@@ -24,7 +23,7 @@ export default (() => ({
24
23
  return {
25
24
  source: {
26
25
  alias: {
27
- '@modern-js/runtime/server': path.join(__dirname, '../runtime')
26
+ '@modern-js/runtime/server': relativeRuntimePath
28
27
  }
29
28
  }
30
29
  };
@@ -40,7 +39,6 @@ export default (() => ({
40
39
  },
41
40
 
42
41
  addRuntimeExports(input) {
43
- // eslint-disable-next-line react-hooks/rules-of-hooks
44
42
  const {
45
43
  appDirectory
46
44
  } = useAppContext();
@@ -52,7 +52,6 @@ const registerRoutes = app => {
52
52
  return await Promise.resolve();
53
53
  }
54
54
 
55
- res.status(200);
56
55
  return res.json(body);
57
56
  } catch (e) {
58
57
  return next(e);
@@ -25,7 +25,6 @@ var _default = () => ({
25
25
  const runtimeModulePath = path.resolve(__dirname, '../runtime');
26
26
  return {
27
27
  config() {
28
- // eslint-disable-next-line react-hooks/rules-of-hooks
29
28
  const appContext = useAppContext();
30
29
  const {
31
30
  appDirectory
@@ -38,7 +37,7 @@ var _default = () => ({
38
37
  return {
39
38
  source: {
40
39
  alias: {
41
- '@modern-js/runtime/server': path.join(__dirname, '../runtime')
40
+ '@modern-js/runtime/server': relativeRuntimePath
42
41
  }
43
42
  }
44
43
  };
@@ -54,7 +53,6 @@ var _default = () => ({
54
53
  },
55
54
 
56
55
  addRuntimeExports(input) {
57
- // eslint-disable-next-line react-hooks/rules-of-hooks
58
56
  const {
59
57
  appDirectory
60
58
  } = useAppContext();
@@ -67,7 +67,6 @@ const registerRoutes = app => {
67
67
  return await Promise.resolve();
68
68
  }
69
69
 
70
- res.status(200);
71
70
  return res.json(body);
72
71
  } catch (e) {
73
72
  return next(e);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.5.5-canary.0",
14
+ "version": "1.5.6",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -30,28 +30,24 @@
30
30
  "./cli": {
31
31
  "jsnext:source": "./src/cli/index.ts",
32
32
  "default": "./dist/js/node/cli/index.js"
33
- },
34
- "./runtime": {
35
- "jsnext:source": "./src/runtime.ts",
36
- "default": "./dist/js/node/runtime.js"
37
33
  }
38
34
  },
39
35
  "dependencies": {
40
- "@babel/runtime": "^7.15.3",
41
- "@modern-js/adapter-helpers": "^1.2.4",
42
- "@modern-js/bff-runtime": "^1.2.3",
43
- "@modern-js/bff-utils": "^1.2.6",
44
- "@modern-js/types": "^1.5.3",
45
- "@modern-js/utils": "^1.7.5",
36
+ "@babel/runtime": "^7.18.0",
37
+ "@modern-js/adapter-helpers": "^1.2.6",
38
+ "@modern-js/bff-runtime": "^1.2.4",
39
+ "@modern-js/bff-utils": "^1.2.9",
40
+ "@modern-js/types": "^1.5.4",
41
+ "@modern-js/utils": "^1.7.6",
46
42
  "cookie-parser": "^1.4.5",
47
43
  "finalhandler": "^1.1.2",
48
44
  "formidable": "^1.2.2",
49
45
  "type-is": "^1.6.18"
50
46
  },
51
47
  "devDependencies": {
52
- "@modern-js/core": "1.11.0",
48
+ "@modern-js/core": "1.11.2",
53
49
  "@modern-js/server-core": "1.3.5",
54
- "@modern-js/server-utils": "1.2.9",
50
+ "@modern-js/server-utils": "1.2.10",
55
51
  "@scripts/build": "0.0.0",
56
52
  "@scripts/jest-config": "0.0.0",
57
53
  "@types/cookie-parser": "^1.4.2",
@@ -77,8 +73,7 @@
77
73
  },
78
74
  "publishConfig": {
79
75
  "registry": "https://registry.npmjs.org/",
80
- "access": "public",
81
- "types": "./dist/types/index.d.ts"
76
+ "access": "public"
82
77
  },
83
78
  "wireit": {
84
79
  "build": {