@modern-js/runtime 2.2.0 → 2.3.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 +13 -0
- package/dist/js/modern/router/runtime/plugin.node.js +3 -0
- package/dist/js/node/router/runtime/plugin.node.js +4 -0
- package/dist/js/treeshaking/router/runtime/plugin.node.js +2 -1
- package/dist/types/router/runtime/plugin.node.d.ts +2 -1
- package/package.json +11 -20
- package/dist/js/modern/cli/types.d.js +0 -0
- package/dist/js/modern/document/type.d.js +0 -0
- package/dist/js/modern/modern-app.env.d.js +0 -0
- package/dist/js/modern/ssr/type.d.js +0 -0
- package/dist/js/node/cli/types.d.js +0 -0
- package/dist/js/node/document/type.d.js +0 -0
- package/dist/js/node/modern-app.env.d.js +0 -0
- package/dist/js/node/ssr/type.d.js +0 -0
- package/dist/js/treeshaking/cli/types.d.js +0 -1
- package/dist/js/treeshaking/document/type.d.js +0 -1
- package/dist/js/treeshaking/modern-app.env.d.js +0 -1
- package/dist/js/treeshaking/ssr/type.d.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @modern-js/runtime
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b4dd017: feat: runtime package use treeshaking production for ssr bundle
|
|
8
|
+
feat: runtime 包使用 treeshaking 产物作为 ssr bundle 打包入口
|
|
9
|
+
- Updated dependencies [fd5a3ed]
|
|
10
|
+
- Updated dependencies [6ca1c0b]
|
|
11
|
+
- Updated dependencies [89b6739]
|
|
12
|
+
- @modern-js/utils@2.3.0
|
|
13
|
+
- @modern-js/plugin@2.3.0
|
|
14
|
+
- @modern-js/types@2.3.0
|
|
15
|
+
|
|
3
16
|
## 2.2.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -61,6 +61,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
61
61
|
var plugin_node_exports = {};
|
|
62
62
|
__export(plugin_node_exports, {
|
|
63
63
|
createFetchHeaders: () => createFetchHeaders,
|
|
64
|
+
modifyRoutes: () => modifyRoutes,
|
|
64
65
|
routerPlugin: () => routerPlugin
|
|
65
66
|
});
|
|
66
67
|
module.exports = __toCommonJS(plugin_node_exports);
|
|
@@ -164,8 +165,11 @@ const routerPlugin = ({
|
|
|
164
165
|
}
|
|
165
166
|
};
|
|
166
167
|
};
|
|
168
|
+
const modifyRoutes = () => {
|
|
169
|
+
};
|
|
167
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
168
171
|
0 && (module.exports = {
|
|
169
172
|
createFetchHeaders,
|
|
173
|
+
modifyRoutes,
|
|
170
174
|
routerPlugin
|
|
171
175
|
});
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.3.0",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=14.17.6"
|
|
17
17
|
},
|
|
@@ -22,25 +22,19 @@
|
|
|
22
22
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"
|
|
26
|
-
"jsnext:source": "./src/index.ts",
|
|
27
|
-
"default": "./dist/js/node/index.js"
|
|
28
|
-
},
|
|
25
|
+
"jsnext:source": "./src/index.ts",
|
|
29
26
|
"default": "./dist/js/treeshaking/index.js"
|
|
30
27
|
},
|
|
31
28
|
"./loadable": {
|
|
32
29
|
"jsnext:source": "./src/exports/loadable.ts",
|
|
33
|
-
"node": "./dist/js/node/exports/loadable.js",
|
|
34
30
|
"default": "./dist/js/treeshaking/exports/loadable.js"
|
|
35
31
|
},
|
|
36
32
|
"./head": {
|
|
37
33
|
"jsnext:source": "./src/exports/head.ts",
|
|
38
|
-
"node": "./dist/js/node/exports/head.js",
|
|
39
34
|
"default": "./dist/js/treeshaking/exports/head.js"
|
|
40
35
|
},
|
|
41
36
|
"./styled": {
|
|
42
37
|
"jsnext:source": "./src/exports/styled.ts",
|
|
43
|
-
"node": "./dist/js/node/exports/styled.js",
|
|
44
38
|
"default": "./dist/js/treeshaking/exports/styled.js"
|
|
45
39
|
},
|
|
46
40
|
"./server": {
|
|
@@ -60,12 +54,11 @@
|
|
|
60
54
|
},
|
|
61
55
|
"./ssr": {
|
|
62
56
|
"jsnext:source": "./src/ssr/index.ts",
|
|
63
|
-
"node": "./dist/js/
|
|
57
|
+
"node": "./dist/js/treeshaking/ssr/index.node.js",
|
|
64
58
|
"default": "./dist/js/treeshaking/ssr/index.js"
|
|
65
59
|
},
|
|
66
60
|
"./model": {
|
|
67
61
|
"jsnext:source": "./src/state/index.ts",
|
|
68
|
-
"node": "./dist/js/node/state/index.js",
|
|
69
62
|
"default": "./dist/js/treeshaking/state/index.js"
|
|
70
63
|
},
|
|
71
64
|
"./cli": {
|
|
@@ -74,12 +67,10 @@
|
|
|
74
67
|
},
|
|
75
68
|
"./router": {
|
|
76
69
|
"jsnext:source": "./src/router/index.ts",
|
|
77
|
-
"node": "./dist/js/node/router/index.js",
|
|
78
70
|
"default": "./dist/js/treeshaking/router/index.js"
|
|
79
71
|
},
|
|
80
72
|
"./router/server": {
|
|
81
73
|
"jsnext:source": "./src/router/runtime/server.ts",
|
|
82
|
-
"node": "./dist/js/node/router/runtime/server.js",
|
|
83
74
|
"default": "./dist/js/treeshaking/router/runtime/server.js"
|
|
84
75
|
}
|
|
85
76
|
},
|
|
@@ -156,9 +147,9 @@
|
|
|
156
147
|
"serialize-javascript": "^6.0.0",
|
|
157
148
|
"styled-components": "^5.3.1",
|
|
158
149
|
"esbuild": "0.15.7",
|
|
159
|
-
"@modern-js/plugin": "2.
|
|
160
|
-
"@modern-js/types": "2.
|
|
161
|
-
"@modern-js/utils": "2.
|
|
150
|
+
"@modern-js/plugin": "2.3.0",
|
|
151
|
+
"@modern-js/types": "2.3.0",
|
|
152
|
+
"@modern-js/utils": "2.3.0"
|
|
162
153
|
},
|
|
163
154
|
"peerDependencies": {
|
|
164
155
|
"react": ">=17",
|
|
@@ -179,11 +170,11 @@
|
|
|
179
170
|
"react-dom": "^18",
|
|
180
171
|
"ts-jest": "^27.0.4",
|
|
181
172
|
"typescript": "^4",
|
|
182
|
-
"@modern-js/app-tools": "2.
|
|
183
|
-
"@modern-js/core": "2.
|
|
184
|
-
"@modern-js/server-core": "2.
|
|
185
|
-
"@scripts/jest-config": "2.
|
|
186
|
-
"@scripts/build": "2.
|
|
173
|
+
"@modern-js/app-tools": "2.3.0",
|
|
174
|
+
"@modern-js/core": "2.3.0",
|
|
175
|
+
"@modern-js/server-core": "2.3.0",
|
|
176
|
+
"@scripts/jest-config": "2.3.0",
|
|
177
|
+
"@scripts/build": "2.3.0"
|
|
187
178
|
},
|
|
188
179
|
"sideEffects": false,
|
|
189
180
|
"modernConfig": {},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|