@modern-js/types 1.3.5-canary.0 → 1.4.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 +21 -0
- package/cli/index.d.ts +1 -2
- package/jest.config.js +0 -1
- package/package.json +6 -5
- package/server/utils.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d2d1d6b2: feat: support server config
|
|
8
|
+
|
|
9
|
+
## 1.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 132f7b53: feat: move config declarations to @modern-js/core
|
|
14
|
+
|
|
15
|
+
## 1.3.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- d95f28c3: should enable babel register before server plugin require
|
|
20
|
+
- Updated dependencies [80d8ddfe]
|
|
21
|
+
- Updated dependencies [491145e3]
|
|
22
|
+
- @modern-js/plugin@1.3.0
|
|
23
|
+
|
|
3
24
|
## 1.3.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/cli/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface IAppContext {
|
|
|
47
47
|
metaName: string; // name for generating conventional constants, such as .modern-js
|
|
48
48
|
appDirectory: string;
|
|
49
49
|
configFile: string | false;
|
|
50
|
+
serverConfigFile: string;
|
|
50
51
|
ip?: string;
|
|
51
52
|
port?: number;
|
|
52
53
|
distDirectory: string;
|
|
@@ -57,7 +58,6 @@ export interface IAppContext {
|
|
|
57
58
|
internalDirectory: string;
|
|
58
59
|
plugins: {
|
|
59
60
|
cli?: any;
|
|
60
|
-
cliPkg?: any;
|
|
61
61
|
server?: any;
|
|
62
62
|
serverPkg?: any;
|
|
63
63
|
}[];
|
|
@@ -79,7 +79,6 @@ export interface Hooks {
|
|
|
79
79
|
},
|
|
80
80
|
unknown
|
|
81
81
|
>;
|
|
82
|
-
|
|
83
82
|
afterCreateCompiler: AsyncWorkflow<
|
|
84
83
|
{
|
|
85
84
|
compiler: Compiler | MultiCompiler | undefined;
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@modern-js/plugin": "^1.2
|
|
17
|
+
"@modern-js/plugin": "^1.3.2",
|
|
18
|
+
"http-proxy-middleware": "^2.0.4",
|
|
18
19
|
"webpack": "^5.54.0"
|
|
19
20
|
},
|
|
20
21
|
"exports": {
|
|
@@ -25,13 +26,13 @@
|
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
29
|
+
"@scripts/build": "0.0.0",
|
|
30
|
+
"@scripts/jest-config": "0.0.0",
|
|
28
31
|
"@types/jest": "^26",
|
|
29
32
|
"@types/node": "^14",
|
|
30
33
|
"@types/react": "^17",
|
|
31
34
|
"@types/react-dom": "^17",
|
|
32
|
-
"
|
|
33
|
-
"jest": "^27",
|
|
34
|
-
"@scripts/jest-config": "0.0.0"
|
|
35
|
+
"jest": "^27"
|
|
35
36
|
},
|
|
36
37
|
"sideEffects": false,
|
|
37
38
|
"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:
|
|
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
|
|
37
|
+
export type BffProxyOptions =
|
|
38
38
|
| Record<string, string>
|
|
39
39
|
| Record<string, ProxyDetail>
|
|
40
40
|
| ProxyDetail[]
|