@modern-js/plugin-bff 1.3.4 → 1.3.5

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/.eslintrc.js ADDED
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ extends: ['@modern-js'],
3
+ parserOptions: {
4
+ project: require.resolve('./tsconfig.json'),
5
+ },
6
+ ignorePatterns: ['types.d.ts'],
7
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @modern-js/plugin-bff
2
2
 
3
+ ## 1.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 55e18278: chore: remove unused dependencies and devDependencies
8
+ - bdcf0865: fix: add default types for plugin bff
9
+ - bdcf0865: fix: Ignore \*.test.ts files for api dir build
10
+ - Updated dependencies [969f172f]
11
+ - Updated dependencies [4c792f68]
12
+ - Updated dependencies [4b5d4bf4]
13
+ - Updated dependencies [62f5b8c8]
14
+ - Updated dependencies [55e18278]
15
+ - Updated dependencies [4499a674]
16
+ - Updated dependencies [403f5169]
17
+ - Updated dependencies [a7f42f48]
18
+ - @modern-js/core@1.4.4
19
+ - @modern-js/utils@1.3.3
20
+ - @modern-js/babel-compiler@1.2.2
21
+
3
22
  ## 1.3.4
4
23
 
5
24
  ### Patch Changes
@@ -104,7 +104,7 @@ export default createPlugin(() => ({
104
104
  distDir,
105
105
  sourceDir: sourceAbsDir,
106
106
  extensions: FILE_EXTENSIONS,
107
- ignore: [`**/__tests__/**`, '**/typings/**', '*.d.ts']
107
+ ignore: [`**/__tests__/**`, '**/typings/**', '*.d.ts', '*.test.ts']
108
108
  }, babelConfig);
109
109
 
110
110
  if (await fs.pathExists(rootDir)) {
@@ -128,7 +128,7 @@ var _default = (0, _core.createPlugin)(() => ({
128
128
  distDir,
129
129
  sourceDir: sourceAbsDir,
130
130
  extensions: FILE_EXTENSIONS,
131
- ignore: [`**/__tests__/**`, '**/typings/**', '*.d.ts']
131
+ ignore: [`**/__tests__/**`, '**/typings/**', '*.d.ts', '*.test.ts']
132
132
  }, babelConfig);
133
133
 
134
134
  if (await _fsExtra.default.pathExists(rootDir)) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.4",
14
+ "version": "1.3.5",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -51,23 +51,21 @@
51
51
  "dependencies": {
52
52
  "@babel/core": "7.16.7",
53
53
  "@babel/runtime": "^7",
54
- "@modern-js/babel-chain": "^1.2.1",
55
- "@modern-js/babel-compiler": "^1.2.1",
56
- "@modern-js/babel-preset-lib": "^1.2.1",
54
+ "@modern-js/babel-compiler": "^1.2.2",
57
55
  "@modern-js/create-request": "^1.2.1",
58
56
  "@modern-js/server-utils": "^1.2.1",
59
- "@modern-js/utils": "^1.3.2",
57
+ "@modern-js/utils": "^1.3.3",
60
58
  "fs-extra": "^10.0.0",
61
59
  "loader-utils": "^2.0.0"
62
60
  },
63
61
  "devDependencies": {
64
62
  "@modern-js/bff-utils": "^1.2.2",
65
- "@modern-js/core": "^1.4.3",
63
+ "@modern-js/core": "^1.4.4",
66
64
  "@scripts/build": "0.0.0",
67
65
  "@modern-js/plugin-analyze": "^1.3.3",
68
66
  "@modern-js/runtime": "^1.2.2",
69
67
  "@modern-js/server-core": "^1.2.2",
70
- "@modern-js/types": "^1.3.3",
68
+ "@modern-js/types": "^1.3.4",
71
69
  "@types/babel__core": "^7.1.15",
72
70
  "@types/fs-extra": "^9.0.13",
73
71
  "@types/jest": "^26",
@@ -83,7 +81,7 @@
83
81
  },
84
82
  "peerDependencies": {
85
83
  "@modern-js/bff-utils": "^1.2.2",
86
- "@modern-js/core": "^1.4.3",
84
+ "@modern-js/core": "^1.4.4",
87
85
  "@modern-js/server-core": "^1.2.2"
88
86
  },
89
87
  "modernConfig": {
package/types.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ declare module '@modern-js/core' {
2
+ interface UserConfig {
3
+ bff?: Partial<{
4
+ prefix: string;
5
+ requestCreator: string;
6
+ fetcher: string;
7
+ proxy: Record<string, any>;
8
+ }>;
9
+ }
10
+ }