@modern-js/plugin-koa 1.15.0 → 1.18.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
@@ -1,5 +1,56 @@
1
1
  # @modern-js/plugin-koa
2
2
 
3
+ ## 1.18.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 3d5e3a5: chore: get api mode from bff core
8
+ chore: 从 bff core 中获取 api mode
9
+ - Updated dependencies [8280920]
10
+ - Updated dependencies [3d5e3a5]
11
+ - Updated dependencies [5227370]
12
+ - Updated dependencies [7928bae]
13
+ - @modern-js/utils@1.18.0
14
+ - @modern-js/bff-core@1.18.0
15
+ - @modern-js/bff-runtime@1.18.0
16
+
17
+ ## 1.17.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [1b9176f]
22
+ - Updated dependencies [77d3a38]
23
+ - Updated dependencies [151329d]
24
+ - Updated dependencies [5af9472]
25
+ - Updated dependencies [6b6a534]
26
+ - Updated dependencies [6b43a2b]
27
+ - Updated dependencies [a7be124]
28
+ - Updated dependencies [31547b4]
29
+ - @modern-js/utils@1.17.0
30
+ - @modern-js/bff-core@1.17.0
31
+ - @modern-js/bff-runtime@1.17.0
32
+
33
+ ## 1.16.0
34
+
35
+ ### Minor Changes
36
+
37
+ - 1100dd58c: chore: support react 18
38
+
39
+ chore: 支持 React 18
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [641592f52]
44
+ - Updated dependencies [3904b30a5]
45
+ - Updated dependencies [1100dd58c]
46
+ - Updated dependencies [e04e6e76a]
47
+ - Updated dependencies [81c66e4a4]
48
+ - Updated dependencies [2c305b6f5]
49
+ - Updated dependencies [020b9bd52]
50
+ - @modern-js/utils@1.16.0
51
+ - @modern-js/bff-runtime@1.16.0
52
+ - @modern-js/bff-core@1.16.0
53
+
3
54
  ## 1.15.0
4
55
 
5
56
  ### Patch Changes
@@ -34,7 +34,6 @@ export default (() => ({
34
34
  setup: api => ({
35
35
  async prepareApiServer({
36
36
  pwd,
37
- mode,
38
37
  config
39
38
  }) {
40
39
  let app;
@@ -42,6 +41,7 @@ export default (() => ({
42
41
  const apiDir = path.join(pwd, './api');
43
42
  const appContext = api.useAppContext();
44
43
  const apiHandlerInfos = appContext.apiHandlerInfos;
44
+ const mode = appContext.apiMode;
45
45
 
46
46
  if (mode === 'framework') {
47
47
  app = await findAppModule(apiDir);
@@ -53,7 +53,6 @@ var _default = () => ({
53
53
  setup: api => ({
54
54
  async prepareApiServer({
55
55
  pwd,
56
- mode,
57
56
  config
58
57
  }) {
59
58
  let app;
@@ -61,6 +60,7 @@ var _default = () => ({
61
60
  const apiDir = path.join(pwd, './api');
62
61
  const appContext = api.useAppContext();
63
62
  const apiHandlerInfos = appContext.apiHandlerInfos;
63
+ const mode = appContext.apiMode;
64
64
 
65
65
  if (mode === 'framework') {
66
66
  app = await findAppModule(apiDir);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.15.0",
14
+ "version": "1.18.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -34,18 +34,18 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.18.0",
37
- "@modern-js/bff-core": "1.15.0",
38
- "@modern-js/bff-runtime": "1.15.0",
39
- "@modern-js/utils": "1.15.0",
37
+ "@modern-js/bff-core": "1.18.0",
38
+ "@modern-js/bff-runtime": "1.18.0",
39
+ "@modern-js/utils": "1.18.0",
40
40
  "koa-body": "^4.2.0",
41
41
  "koa-router": "^10.0.0",
42
42
  "type-is": "^1.6.18"
43
43
  },
44
44
  "devDependencies": {
45
- "@modern-js/core": "1.15.0",
46
- "@modern-js/server-core": "1.15.0",
47
- "@scripts/build": "1.15.0",
48
- "@scripts/jest-config": "1.15.0",
45
+ "@modern-js/core": "1.18.0",
46
+ "@modern-js/server-core": "1.18.0",
47
+ "@scripts/build": "1.18.0",
48
+ "@scripts/jest-config": "1.18.0",
49
49
  "@types/jest": "^27",
50
50
  "@types/koa": "^2.13.4",
51
51
  "@types/koa-router": "^7.4.4",