@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 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
@@ -140,7 +140,10 @@ const routerPlugin = ({
140
140
  }
141
141
  };
142
142
  };
143
+ const modifyRoutes = () => {
144
+ };
143
145
  export {
144
146
  createFetchHeaders,
147
+ modifyRoutes,
145
148
  routerPlugin
146
149
  };
@@ -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
  });
@@ -386,4 +386,5 @@ var routerPlugin = function(param) {
386
386
  }
387
387
  };
388
388
  };
389
- export { createFetchHeaders, routerPlugin };
389
+ var modifyRoutes = function() {};
390
+ export { createFetchHeaders, modifyRoutes, routerPlugin };
@@ -6,4 +6,5 @@ export declare const routerPlugin: ({
6
6
  basename,
7
7
  routesConfig,
8
8
  createRoutes
9
- }: RouterConfig) => Plugin;
9
+ }: RouterConfig) => Plugin;
10
+ export declare const modifyRoutes: () => void;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.2.0",
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
- "node": {
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/node/ssr/index",
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.2.0",
160
- "@modern-js/types": "2.2.0",
161
- "@modern-js/utils": "2.2.0"
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.2.0",
183
- "@modern-js/core": "2.2.0",
184
- "@modern-js/server-core": "2.2.0",
185
- "@scripts/jest-config": "2.2.0",
186
- "@scripts/build": "2.2.0"
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";