@modern-js/runtime 2.1.1-alpha.1 → 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 +25 -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 +13 -22
- 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,30 @@
|
|
|
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
|
+
|
|
16
|
+
## 2.2.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- f7a1c1f: fix: fix the router/server export
|
|
21
|
+
fix: 修复 router/server 的导出
|
|
22
|
+
- Updated dependencies [49eff0c]
|
|
23
|
+
- Updated dependencies [19bb384]
|
|
24
|
+
- @modern-js/utils@2.2.0
|
|
25
|
+
- @modern-js/types@2.2.0
|
|
26
|
+
- @modern-js/plugin@2.2.0
|
|
27
|
+
|
|
3
28
|
## 2.1.0
|
|
4
29
|
|
|
5
30
|
### 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
|
},
|
|
@@ -140,9 +131,6 @@
|
|
|
140
131
|
"@modern-js-reduck/plugin-immutable": "^1.1.4",
|
|
141
132
|
"@modern-js-reduck/react": "^1.1.4",
|
|
142
133
|
"@modern-js-reduck/store": "^1.1.4",
|
|
143
|
-
"@modern-js/plugin": "2.1.0",
|
|
144
|
-
"@modern-js/types": "2.1.0",
|
|
145
|
-
"@modern-js/utils": "2.1.0",
|
|
146
134
|
"@remix-run/node": "^1.9.0",
|
|
147
135
|
"@remix-run/router": "^1.2.0",
|
|
148
136
|
"@types/loadable__component": "^5.13.4",
|
|
@@ -158,19 +146,17 @@
|
|
|
158
146
|
"redux-logger": "^3.0.6",
|
|
159
147
|
"serialize-javascript": "^6.0.0",
|
|
160
148
|
"styled-components": "^5.3.1",
|
|
161
|
-
"esbuild": "0.15.7"
|
|
149
|
+
"esbuild": "0.15.7",
|
|
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",
|
|
165
156
|
"react-dom": ">=17"
|
|
166
157
|
},
|
|
167
158
|
"devDependencies": {
|
|
168
|
-
"@modern-js/app-tools": "2.1.0",
|
|
169
|
-
"@modern-js/core": "2.1.0",
|
|
170
|
-
"@modern-js/server-core": "2.1.0",
|
|
171
159
|
"@remix-run/web-fetch": "^4.1.3",
|
|
172
|
-
"@scripts/build": "2.1.0",
|
|
173
|
-
"@scripts/jest-config": "2.1.0",
|
|
174
160
|
"@testing-library/react": "^13.4.0",
|
|
175
161
|
"@testing-library/react-hooks": "^8.0.1",
|
|
176
162
|
"@types/invariant": "^2.2.30",
|
|
@@ -183,7 +169,12 @@
|
|
|
183
169
|
"react": "^18",
|
|
184
170
|
"react-dom": "^18",
|
|
185
171
|
"ts-jest": "^27.0.4",
|
|
186
|
-
"typescript": "^4"
|
|
172
|
+
"typescript": "^4",
|
|
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";
|