@module-federation/modern-js 0.0.0-next-20250523075729 → 0.0.0-next-20250523083033
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/dist/cjs/cli/server/data-fetch-server-plugin.js +1 -1
- package/dist/cjs/ssr-runtime/injectDataFetchFunctionPlugin.js +0 -3
- package/dist/esm/cli/server/data-fetch-server-plugin.js +1 -1
- package/dist/esm/ssr-runtime/injectDataFetchFunctionPlugin.js +0 -5
- package/dist/esm-node/cli/server/data-fetch-server-plugin.js +1 -1
- package/dist/esm-node/ssr-runtime/injectDataFetchFunctionPlugin.js +0 -3
- package/package.json +8 -8
|
@@ -161,7 +161,7 @@ const middleware = async (ctx, next) => {
|
|
|
161
161
|
});
|
|
162
162
|
return ctx.json(data);
|
|
163
163
|
} catch (e) {
|
|
164
|
-
console.log("data fetch error:");
|
|
164
|
+
console.log("server plugin data fetch error: ");
|
|
165
165
|
console.error(e);
|
|
166
166
|
ctx.status(500);
|
|
167
167
|
return ctx.text(`failed to fetch ${remoteInfo.name} data, error:
|
|
@@ -106,9 +106,6 @@ const injectDataFetchFunctionPlugin = () => ({
|
|
|
106
106
|
globalThis[import_constant.DOWNGRADE_KEY] = true;
|
|
107
107
|
return (0, import_downgrade.callAllDowngrade)();
|
|
108
108
|
}
|
|
109
|
-
if (mfDowngrade.includes(id)) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
109
|
mfDowngrade.push(id);
|
|
113
110
|
return (0, import_downgrade.callDowngrade)(id);
|
|
114
111
|
}
|
|
@@ -128,7 +128,7 @@ const middleware = async (ctx, next) => {
|
|
|
128
128
|
});
|
|
129
129
|
return ctx.json(data);
|
|
130
130
|
} catch (e) {
|
|
131
|
-
console.log("data fetch error:");
|
|
131
|
+
console.log("server plugin data fetch error: ");
|
|
132
132
|
console.error(e);
|
|
133
133
|
ctx.status(500);
|
|
134
134
|
return ctx.text(`failed to fetch ${remoteInfo.name} data, error:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250523083033",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -111,12 +111,12 @@
|
|
|
111
111
|
"@swc/helpers": "0.5.13",
|
|
112
112
|
"node-fetch": "~3.3.0",
|
|
113
113
|
"react-error-boundary": "4.1.2",
|
|
114
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
115
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
116
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
117
|
-
"@module-federation/node": "0.0.0-next-
|
|
118
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
119
|
-
"@module-federation/cli": "0.0.0-next-
|
|
114
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250523083033",
|
|
115
|
+
"@module-federation/enhanced": "0.0.0-next-20250523083033",
|
|
116
|
+
"@module-federation/runtime": "0.0.0-next-20250523083033",
|
|
117
|
+
"@module-federation/node": "0.0.0-next-20250523083033",
|
|
118
|
+
"@module-federation/sdk": "0.0.0-next-20250523083033",
|
|
119
|
+
"@module-federation/cli": "0.0.0-next-20250523083033"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@rsbuild/core": "1.2.8",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@modern-js/runtime": "2.67.5",
|
|
127
127
|
"@modern-js/tsconfig": "2.67.5",
|
|
128
128
|
"@modern-js/server-runtime": "2.67.5",
|
|
129
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
129
|
+
"@module-federation/manifest": "0.0.0-next-20250523083033"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"react": ">=17",
|