@modern-js/app-tools 2.28.1-alpha.3 → 2.30.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
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 2.30.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 276ace3: chore: remove noscript tag in html template
|
|
8
|
+
chore: 移除 HTML 模板中的 noscript 标签
|
|
9
|
+
- c03be09: feat(CLI): print solution name and version to terminal
|
|
10
|
+
|
|
11
|
+
feat(CLI): 在控制台输出 solution 的名称和版本
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [9f21f28]
|
|
14
|
+
- Updated dependencies [a5ee81a]
|
|
15
|
+
- Updated dependencies [883692c]
|
|
16
|
+
- Updated dependencies [cc5f49e]
|
|
17
|
+
- Updated dependencies [f74064c]
|
|
18
|
+
- Updated dependencies [b6ab299]
|
|
19
|
+
- Updated dependencies [0ea763e]
|
|
20
|
+
- Updated dependencies [e6ae836]
|
|
21
|
+
- Updated dependencies [c03be09]
|
|
22
|
+
- Updated dependencies [7cb7b24]
|
|
23
|
+
- Updated dependencies [e94ad94]
|
|
24
|
+
- Updated dependencies [0e0b6e3]
|
|
25
|
+
- @modern-js/prod-server@2.30.0
|
|
26
|
+
- @modern-js/types@2.30.0
|
|
27
|
+
- @modern-js/server-core@2.30.0
|
|
28
|
+
- @modern-js/server@2.30.0
|
|
29
|
+
- @modern-js/builder-webpack-provider@2.30.0
|
|
30
|
+
- @modern-js/builder-shared@2.30.0
|
|
31
|
+
- @modern-js/builder-rspack-provider@2.30.0
|
|
32
|
+
- @modern-js/builder@2.30.0
|
|
33
|
+
- @modern-js/core@2.30.0
|
|
34
|
+
- @modern-js/plugin-data-loader@2.30.0
|
|
35
|
+
- @modern-js/utils@2.30.0
|
|
36
|
+
- @modern-js/builder-plugin-esbuild@2.30.0
|
|
37
|
+
- @modern-js/builder-plugin-node-polyfill@2.30.0
|
|
38
|
+
- @modern-js/plugin-lint@2.30.0
|
|
39
|
+
- @modern-js/plugin-i18n@2.30.0
|
|
40
|
+
- @modern-js/new-action@2.30.0
|
|
41
|
+
- @modern-js/node-bundle-require@2.30.0
|
|
42
|
+
- @modern-js/plugin@2.30.0
|
|
43
|
+
- @modern-js/upgrade@2.30.0
|
|
44
|
+
|
|
45
|
+
## 2.29.0
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 1171338: fix(app-tools): tools.tsChecker default value mismatch with doc
|
|
50
|
+
|
|
51
|
+
fix(app-tools): tools.tsChecker 默认值与文档不匹配
|
|
52
|
+
|
|
53
|
+
- 354b823: chore(app-tools): remove unused tsLoader config
|
|
54
|
+
|
|
55
|
+
chore(app-tools): 移除多余的 tsLoader 配置
|
|
56
|
+
|
|
57
|
+
- da31406: fix: should not flat routes when has a route config file
|
|
58
|
+
fix: 当有一个路由配置文件时,不应该打平 routes
|
|
59
|
+
- fd3e71c: fix: if a route dont has component, should be as a no-layout route
|
|
60
|
+
fix: 如果路由对象没有组件属性,应该被看做无布局路由
|
|
61
|
+
- ea0f2df: fix: should get the correct hash in source
|
|
62
|
+
fix: 应该在 source 中获取正确的 hash
|
|
63
|
+
- 7017a60: fix: should not flat routes when the layout has loading or error
|
|
64
|
+
fix: 当 layout 中存在 loading 或者 error 时,不应该 flat routes
|
|
65
|
+
- Updated dependencies [e6b5355]
|
|
66
|
+
- Updated dependencies [16e5195]
|
|
67
|
+
- Updated dependencies [93db783]
|
|
68
|
+
- Updated dependencies [1d420ae]
|
|
69
|
+
- Updated dependencies [1171338]
|
|
70
|
+
- Updated dependencies [bd4c354]
|
|
71
|
+
- Updated dependencies [3e0e1b2]
|
|
72
|
+
- Updated dependencies [cba7675]
|
|
73
|
+
- Updated dependencies [76ace5d]
|
|
74
|
+
- Updated dependencies [99052ea]
|
|
75
|
+
- Updated dependencies [d198779]
|
|
76
|
+
- Updated dependencies [2ad31da]
|
|
77
|
+
- Updated dependencies [1d71d2e]
|
|
78
|
+
- @modern-js/utils@2.29.0
|
|
79
|
+
- @modern-js/prod-server@2.29.0
|
|
80
|
+
- @modern-js/builder-webpack-provider@2.29.0
|
|
81
|
+
- @modern-js/builder-rspack-provider@2.29.0
|
|
82
|
+
- @modern-js/builder@2.29.0
|
|
83
|
+
- @modern-js/builder-shared@2.29.0
|
|
84
|
+
- @modern-js/server@2.29.0
|
|
85
|
+
- @modern-js/types@2.29.0
|
|
86
|
+
- @modern-js/node-bundle-require@2.29.0
|
|
87
|
+
- @modern-js/builder-plugin-esbuild@2.29.0
|
|
88
|
+
- @modern-js/builder-plugin-node-polyfill@2.29.0
|
|
89
|
+
- @modern-js/core@2.29.0
|
|
90
|
+
- @modern-js/plugin-data-loader@2.29.0
|
|
91
|
+
- @modern-js/plugin-i18n@2.29.0
|
|
92
|
+
- @modern-js/plugin-lint@2.29.0
|
|
93
|
+
- @modern-js/new-action@2.29.0
|
|
94
|
+
- @modern-js/server-core@2.29.0
|
|
95
|
+
- @modern-js/plugin@2.29.0
|
|
96
|
+
- @modern-js/upgrade@2.29.0
|
|
97
|
+
|
|
3
98
|
## 2.28.0
|
|
4
99
|
|
|
5
100
|
### Minor Changes
|
package/bin/modern.js
CHANGED
|
@@ -94,9 +94,6 @@ const html = (partials) => `
|
|
|
94
94
|
</head>
|
|
95
95
|
|
|
96
96
|
<body>
|
|
97
|
-
<noscript>
|
|
98
|
-
We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
|
|
99
|
-
</noscript>
|
|
100
97
|
<div id="<%= mountId %>"><!--<?- html ?>--></div>
|
|
101
98
|
${partials.body.join("\n")}
|
|
102
99
|
<!--<?- chunksMap.js ?>-->
|
|
@@ -20,7 +20,7 @@ export var renderFunction = function(param) {
|
|
|
20
20
|
}).join("\n"), "\n ]\n })(").concat(fileSystemRoutes2 ? "" : "App", ")\n\n\n if(!AppWrapper.init && typeof appInit !== 'undefined') {\n AppWrapper.init = appInit;\n }\n\n\n if (IS_BROWSER) {\n ").concat(customBootstrap ? "customBootstrap(AppWrapper, () => ".concat(bootstrap, ");") : "".concat(bootstrap, ";"), "\n }\n\n return AppWrapper\n");
|
|
21
21
|
};
|
|
22
22
|
export var html = function(partials) {
|
|
23
|
-
return "\n<!DOCTYPE html>\n<html>\n<head>\n <%= meta %>\n <title><%= title %></title>\n\n ".concat(partials.top.join("\n"), "\n\n ").concat(partials.head.join("\n"),
|
|
23
|
+
return "\n<!DOCTYPE html>\n<html>\n<head>\n <%= meta %>\n <title><%= title %></title>\n\n ".concat(partials.top.join("\n"), "\n\n ").concat(partials.head.join("\n"), '\n\n</head>\n\n<body>\n <div id="<%= mountId %>"><!--<?- html ?>--></div>\n ').concat(partials.body.join("\n"), "\n <!--<?- chunksMap.js ?>-->\n <!--<?- SSRDataScript ?>-->\n <!--<?- bottomTemplate ?>-->\n</body>\n\n</html>\n");
|
|
24
24
|
};
|
|
25
25
|
export var routesForServer = function(param) {
|
|
26
26
|
var routes = param.routes;
|
|
@@ -62,9 +62,6 @@ export const html = (partials) => `
|
|
|
62
62
|
</head>
|
|
63
63
|
|
|
64
64
|
<body>
|
|
65
|
-
<noscript>
|
|
66
|
-
We're sorry but react app doesn't work properly without JavaScript enabled. Please enable it to continue.
|
|
67
|
-
</noscript>
|
|
68
65
|
<div id="<%= mountId %>"><!--<?- html ?>--></div>
|
|
69
66
|
${partials.body.join("\n")}
|
|
70
67
|
<!--<?- chunksMap.js ?>-->
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.30.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -73,24 +73,24 @@
|
|
|
73
73
|
"esbuild": "0.17.19",
|
|
74
74
|
"rspack-plugin-virtual-module": "0.1.0",
|
|
75
75
|
"@swc/helpers": "0.5.1",
|
|
76
|
-
"@modern-js/builder": "2.
|
|
77
|
-
"@modern-js/builder-plugin-
|
|
78
|
-
"@modern-js/builder-
|
|
79
|
-
"@modern-js/
|
|
80
|
-
"@modern-js/
|
|
81
|
-
"@modern-js/
|
|
82
|
-
"@modern-js/
|
|
83
|
-
"@modern-js/
|
|
84
|
-
"@modern-js/
|
|
85
|
-
"@modern-js/
|
|
86
|
-
"@modern-js/
|
|
87
|
-
"@modern-js/
|
|
88
|
-
"@modern-js/
|
|
89
|
-
"@modern-js/types": "2.
|
|
90
|
-
"@modern-js/
|
|
91
|
-
"@modern-js/
|
|
92
|
-
"@modern-js/
|
|
93
|
-
"@modern-js/
|
|
76
|
+
"@modern-js/builder": "2.30.0",
|
|
77
|
+
"@modern-js/builder-plugin-esbuild": "2.30.0",
|
|
78
|
+
"@modern-js/builder-plugin-node-polyfill": "2.30.0",
|
|
79
|
+
"@modern-js/builder-shared": "2.30.0",
|
|
80
|
+
"@modern-js/builder-webpack-provider": "2.30.0",
|
|
81
|
+
"@modern-js/core": "2.30.0",
|
|
82
|
+
"@modern-js/new-action": "2.30.0",
|
|
83
|
+
"@modern-js/node-bundle-require": "2.30.0",
|
|
84
|
+
"@modern-js/plugin": "2.30.0",
|
|
85
|
+
"@modern-js/plugin-data-loader": "2.30.0",
|
|
86
|
+
"@modern-js/plugin-lint": "2.30.0",
|
|
87
|
+
"@modern-js/plugin-i18n": "2.30.0",
|
|
88
|
+
"@modern-js/server": "2.30.0",
|
|
89
|
+
"@modern-js/types": "2.30.0",
|
|
90
|
+
"@modern-js/upgrade": "2.30.0",
|
|
91
|
+
"@modern-js/server-core": "2.30.0",
|
|
92
|
+
"@modern-js/utils": "2.30.0",
|
|
93
|
+
"@modern-js/prod-server": "2.30.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/babel__traverse": "^7.14.2",
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
"jest": "^29",
|
|
100
100
|
"typescript": "^5",
|
|
101
101
|
"webpack": "^5.88.1",
|
|
102
|
-
"@modern-js/builder-plugin-swc": "2.
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@scripts/
|
|
102
|
+
"@modern-js/builder-plugin-swc": "2.30.0",
|
|
103
|
+
"@modern-js/builder-rspack-provider": "2.30.0",
|
|
104
|
+
"@scripts/build": "2.30.0",
|
|
105
|
+
"@scripts/jest-config": "2.30.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
-
"@modern-js/builder-rspack-provider": "^2.
|
|
108
|
+
"@modern-js/builder-rspack-provider": "^2.30.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependenciesMeta": {
|
|
111
111
|
"@modern-js/builder-rspack-provider": {
|