@modern-js/types 1.3.5 → 1.3.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,11 @@
1
1
  # @modern-js/types
2
2
 
3
+ ## 1.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 132f7b53: feat: move config declarations to @modern-js/core
8
+
3
9
  ## 1.3.5
4
10
 
5
11
  ### Patch Changes
package/cli/index.d.ts CHANGED
@@ -57,7 +57,6 @@ export interface IAppContext {
57
57
  internalDirectory: string;
58
58
  plugins: {
59
59
  cli?: any;
60
- cliPkg?: any;
61
60
  server?: any;
62
61
  serverPkg?: any;
63
62
  }[];
package/jest.config.js CHANGED
@@ -2,7 +2,6 @@ const sharedConfig = require('@scripts/jest-config');
2
2
 
3
3
  /** @type {import('@jest/types').Config.InitialOptions} */
4
4
  module.exports = {
5
- // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
5
  ...sharedConfig,
7
6
  rootDir: __dirname,
8
7
  };
package/package.json CHANGED
@@ -11,11 +11,11 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.5",
14
+ "version": "1.3.6",
15
15
  "types": "./index.d.ts",
16
16
  "dependencies": {
17
17
  "@modern-js/plugin": "^1.3.0",
18
- "webpack": "^5.54.0"
18
+ "webpack": "^5.71.0"
19
19
  },
20
20
  "exports": {
21
21
  ".": "./index.d.ts",
@@ -25,13 +25,13 @@
25
25
  }
26
26
  },
27
27
  "devDependencies": {
28
+ "@scripts/build": "0.0.0",
29
+ "@scripts/jest-config": "0.0.0",
28
30
  "@types/jest": "^26",
29
31
  "@types/node": "^14",
30
32
  "@types/react": "^17",
31
33
  "@types/react-dom": "^17",
32
- "@scripts/build": "0.0.0",
33
- "jest": "^27",
34
- "@scripts/jest-config": "0.0.0"
34
+ "jest": "^27"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "publishConfig": {
package/server/utils.d.ts CHANGED
@@ -28,13 +28,13 @@ export type ProxyDetail = {
28
28
  bypass?: (
29
29
  req: IncomingMessage,
30
30
  res: ServerResponse,
31
- proxyOptions: ProxyOptions,
31
+ proxyOptions: BffProxyOptions,
32
32
  ) => string | undefined | null | false;
33
33
  context?: string | string[];
34
34
  changeOrigin?: boolean;
35
35
  };
36
36
 
37
- export type ProxyOptions =
37
+ export type BffProxyOptions =
38
38
  | Record<string, string>
39
39
  | Record<string, ProxyDetail>
40
40
  | ProxyDetail[]