@modern-js/server-core 3.4.0 → 3.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.
|
@@ -10,7 +10,7 @@ import { ssrRender } from "./ssrRender.mjs";
|
|
|
10
10
|
import { __webpack_require__ } from "../../rslib-runtime.mjs";
|
|
11
11
|
import * as __rspack_external__modern_js_runtime_utils_router_2aa8d96f from "@modern-js/runtime-utils/router";
|
|
12
12
|
__webpack_require__.add({
|
|
13
|
-
|
|
13
|
+
2420 (module) {
|
|
14
14
|
module.exports = __rspack_external__modern_js_runtime_utils_router_2aa8d96f;
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -149,7 +149,7 @@ async function renderHandler(request, options, mode, fallbackWrapper, framework)
|
|
|
149
149
|
const { nestedRoutesJson } = serverManifest;
|
|
150
150
|
const routes = nestedRoutesJson?.[options.routeInfo.entryName];
|
|
151
151
|
if (routes) {
|
|
152
|
-
const { matchRoutes } = __webpack_require__(
|
|
152
|
+
const { matchRoutes } = __webpack_require__(2420);
|
|
153
153
|
const url = new URL(request.url);
|
|
154
154
|
const matchedRoutes = matchRoutes(routes, url.pathname, options.routeInfo.urlPath);
|
|
155
155
|
if (matchedRoutes) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.5.0",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
@@ -71,19 +71,19 @@
|
|
|
71
71
|
"flatted": "^3.4.2",
|
|
72
72
|
"hono": "^4.11.7",
|
|
73
73
|
"ts-deepmerge": "7.0.3",
|
|
74
|
-
"@modern-js/plugin": "3.
|
|
75
|
-
"@modern-js/runtime-utils": "3.
|
|
76
|
-
"@modern-js/utils": "3.
|
|
74
|
+
"@modern-js/plugin": "3.5.0",
|
|
75
|
+
"@modern-js/runtime-utils": "3.5.0",
|
|
76
|
+
"@modern-js/utils": "3.5.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@rslib/core": "0.
|
|
79
|
+
"@rslib/core": "0.23.0",
|
|
80
80
|
"@types/cloneable-readable": "^2.0.3",
|
|
81
81
|
"@types/merge-deep": "^3.0.3",
|
|
82
82
|
"@types/node": "^20",
|
|
83
83
|
"http-proxy-middleware": "^2.0.9",
|
|
84
84
|
"typescript": "^5",
|
|
85
85
|
"@modern-js/rslib": "2.68.10",
|
|
86
|
-
"@modern-js/types": "3.
|
|
86
|
+
"@modern-js/types": "3.5.0",
|
|
87
87
|
"@scripts/rstest-config": "2.66.0"
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|