@modern-js/plugin-bff 1.1.3-beta.1 → 1.2.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.
@@ -1 +1 @@
1
- export * from '/Users/bytedance/Desktop/workspaces/modern.js/packages/cli/plugin-runtime'
1
+ export * from '/github/workspace/packages/cli/plugin-runtime'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @modern-js/plugin-bff
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e51b1db3: feat: support custom sdk, interceptor, headers for bff request
8
+ - Updated dependencies [e51b1db3]
9
+ - Updated dependencies [b37f78c8]
10
+ - Updated dependencies [2da27d3b]
11
+ - Updated dependencies [b7fb82ec]
12
+ - @modern-js/create-request@1.1.2
13
+ - @modern-js/server-plugin@1.1.4
14
+ - @modern-js/babel-chain@1.1.2
15
+ - @modern-js/babel-compiler@1.1.4
16
+ - @modern-js/utils@1.1.6
17
+
18
+ ## 1.2.0
19
+
20
+ ### Minor Changes
21
+
22
+ - 5a4c557e: feat: support bff test
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [90eeb72c]
27
+ - Updated dependencies [e04914ce]
28
+ - Updated dependencies [5a4c557e]
29
+ - Updated dependencies [e04914ce]
30
+ - Updated dependencies [ca7dcb32]
31
+ - Updated dependencies [ca7dcb32]
32
+ - Updated dependencies [ecb344dc]
33
+ - @modern-js/core@1.2.0
34
+ - @modern-js/server-plugin@1.1.3
35
+ - @modern-js/babel-preset-lib@1.1.4
36
+ - @modern-js/babel-compiler@1.1.3
37
+ - @modern-js/utils@1.1.5
38
+
3
39
  ## 1.1.2
4
40
 
5
41
  ### Patch Changes
@@ -46,7 +46,7 @@ export default createPlugin(() => ({
46
46
  }
47
47
  },
48
48
  source: {
49
- moduleScopes: [`./${API_DIR}`]
49
+ moduleScopes: [`./${API_DIR}`, /create-request/]
50
50
  }
51
51
  };
52
52
  },
@@ -31,7 +31,6 @@ export default createPlugin(() => {
31
31
  const root = isProd() ? distDirectory : appDirectory;
32
32
  const apiPath = path.resolve(root || process.cwd(), API_DIR);
33
33
  const apiAppPath = path.resolve(apiPath, API_APP_NAME);
34
- console.log('111111111111111', process.env.NODE_ENV, isProd(), appDirectory, distDirectory, apiPath, apiAppPath);
35
34
  const storage = new Storage();
36
35
  const transformAPI = createTransformAPI(storage);
37
36
  const apiMod = requireExistModule(apiAppPath);
@@ -64,7 +64,7 @@ var _default = (0, _core.createPlugin)(() => ({
64
64
  }
65
65
  },
66
66
  source: {
67
- moduleScopes: [`./${_utils.API_DIR}`]
67
+ moduleScopes: [`./${_utils.API_DIR}`, /create-request/]
68
68
  }
69
69
  };
70
70
  },
@@ -48,7 +48,6 @@ var _default = (0, _serverPlugin.createPlugin)(() => {
48
48
 
49
49
  const apiAppPath = _path.default.resolve(apiPath, _constants.API_APP_NAME);
50
50
 
51
- console.log('111111111111111', process.env.NODE_ENV, (0, _utils.isProd)(), appDirectory, distDirectory, apiPath, apiAppPath);
52
51
  const storage = new Storage();
53
52
  const transformAPI = createTransformAPI(storage);
54
53
  const apiMod = (0, _utils.requireExistModule)(apiAppPath);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.3-beta.1",
14
+ "version": "1.2.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -44,24 +44,24 @@
44
44
  "dependencies": {
45
45
  "@babel/core": "^7.15.5",
46
46
  "@babel/runtime": "^7",
47
- "@modern-js/babel-chain": "^1.1.1",
48
- "@modern-js/babel-compiler": "^1.1.2",
49
- "@modern-js/babel-preset-lib": "^1.1.1",
50
- "@modern-js/create-request": "^1.1.1",
47
+ "@modern-js/babel-chain": "^1.1.2",
48
+ "@modern-js/babel-compiler": "^1.1.4",
49
+ "@modern-js/babel-preset-lib": "^1.1.4",
50
+ "@modern-js/create-request": "^1.1.2",
51
51
  "@modern-js/server-utils": "^1.1.2",
52
- "@modern-js/utils": "^1.1.3",
52
+ "@modern-js/utils": "^1.1.6",
53
53
  "fs-extra": "^10.0.0",
54
54
  "loader-utils": "^2.0.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@modern-js/bff-utils": "^1.1.1",
58
- "@modern-js/core": "^1.1.3",
59
- "@modern-js/module-tools": "^1.1.1",
60
- "@modern-js/plugin-analyze": "^1.1.1",
61
- "@modern-js/plugin-testing": "^1.1.1",
62
- "@modern-js/runtime": "^1.1.1",
63
- "@modern-js/server-plugin": "^1.1.2",
64
- "@modern-js/types": "^1.1.2",
58
+ "@modern-js/core": "^1.2.0",
59
+ "@modern-js/module-tools": "^1.1.4",
60
+ "@modern-js/plugin-analyze": "^1.1.2",
61
+ "@modern-js/plugin-testing": "^1.2.2",
62
+ "@modern-js/runtime": "^1.1.2",
63
+ "@modern-js/server-plugin": "^1.1.4",
64
+ "@modern-js/types": "^1.1.5",
65
65
  "@types/babel__core": "^7.1.15",
66
66
  "@types/fs-extra": "^9.0.13",
67
67
  "@types/jest": "^26",
@@ -75,8 +75,8 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@modern-js/bff-utils": "^1.1.1",
78
- "@modern-js/core": "^1.1.3",
79
- "@modern-js/server-plugin": "^1.1.2"
78
+ "@modern-js/core": "^1.2.0",
79
+ "@modern-js/server-plugin": "^1.1.4"
80
80
  },
81
81
  "modernConfig": {
82
82
  "output": {
@@ -92,6 +92,7 @@
92
92
  "new": "modern new",
93
93
  "build": "modern build",
94
94
  "dev": "modern build --watch",
95
- "test": "modern test"
96
- }
95
+ "test": "modern test --passWithNoTests"
96
+ },
97
+ "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
97
98
  }
package/src/cli.ts CHANGED
@@ -73,7 +73,7 @@ export default createPlugin(
73
73
  },
74
74
  },
75
75
  source: {
76
- moduleScopes: [`./${API_DIR}`],
76
+ moduleScopes: [`./${API_DIR}`, /create-request/],
77
77
  },
78
78
  };
79
79
  },
package/src/server.ts CHANGED
@@ -29,16 +29,6 @@ export default createPlugin(
29
29
  const apiPath = path.resolve(root || process.cwd(), API_DIR);
30
30
  const apiAppPath = path.resolve(apiPath, API_APP_NAME);
31
31
 
32
- console.log(
33
- '111111111111111',
34
- process.env.NODE_ENV,
35
- isProd(),
36
- appDirectory,
37
- distDirectory,
38
- apiPath,
39
- apiAppPath,
40
- );
41
-
42
32
  const storage = new Storage();
43
33
  const transformAPI = createTransformAPI(storage);
44
34
 
@@ -6,6 +6,7 @@ Array [
6
6
  "source": Object {
7
7
  "moduleScopes": Array [
8
8
  "./api",
9
+ /create-request/,
9
10
  ],
10
11
  },
11
12
  "tools": Object {