@modern-js/types 1.3.5 → 1.5.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/.eslintrc.js +8 -0
- package/CHANGELOG.md +28 -0
- package/cli/index.d.ts +2 -2
- package/jest.config.js +0 -1
- package/package.json +6 -5
- package/server/utils.d.ts +2 -2
package/.eslintrc.js
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3bf4f8b0: feat: support start api server only
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 6cffe99d: chore:
|
|
12
|
+
remove react eslint rules for `modern-js` rule set.
|
|
13
|
+
add .eslintrc for each package to speed up linting
|
|
14
|
+
- 60f7d8bf: feat: add tests dir to npmignore
|
|
15
|
+
- Updated dependencies [6cffe99d]
|
|
16
|
+
- Updated dependencies [60f7d8bf]
|
|
17
|
+
- @modern-js/plugin@1.3.3
|
|
18
|
+
|
|
19
|
+
## 1.4.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- d2d1d6b2: feat: support server config
|
|
24
|
+
|
|
25
|
+
## 1.3.6
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 132f7b53: feat: move config declarations to @modern-js/core
|
|
30
|
+
|
|
3
31
|
## 1.3.5
|
|
4
32
|
|
|
5
33
|
### 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
|
}[];
|
|
@@ -65,7 +65,7 @@ export interface IAppContext {
|
|
|
65
65
|
checkedEntries: string[];
|
|
66
66
|
serverRoutes: ServerRoute[];
|
|
67
67
|
htmlTemplates: HtmlTemplates;
|
|
68
|
-
|
|
68
|
+
apiOnly: boolean;
|
|
69
69
|
internalDirAlias: string;
|
|
70
70
|
internalSrcAlias: string;
|
|
71
71
|
}
|
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.5.0",
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@modern-js/plugin": "^1.3.
|
|
17
|
+
"@modern-js/plugin": "^1.3.3",
|
|
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[]
|