@module-federation/modern-js 0.0.0-next-20250523115044 → 0.0.0-next-20250523132518
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.
|
@@ -148,10 +148,16 @@ async function fetchData(id, params, remoteInfo) {
|
|
|
148
148
|
const mfDowngrade = (0, import_downgrade.getDowngradeTag)();
|
|
149
149
|
if (mfDowngrade) {
|
|
150
150
|
if (typeof mfDowngrade === "boolean") {
|
|
151
|
-
return (0, import_downgrade.callDowngrade)(id,
|
|
151
|
+
return (0, import_downgrade.callDowngrade)(id, {
|
|
152
|
+
...params,
|
|
153
|
+
isDowngrade: true
|
|
154
|
+
});
|
|
152
155
|
}
|
|
153
156
|
if (mfDowngrade.includes(id)) {
|
|
154
|
-
return (0, import_downgrade.callDowngrade)(id,
|
|
157
|
+
return (0, import_downgrade.callDowngrade)(id, {
|
|
158
|
+
...params,
|
|
159
|
+
isDowngrade: true
|
|
160
|
+
});
|
|
155
161
|
}
|
|
156
162
|
}
|
|
157
163
|
let res;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
|
+
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
|
+
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
2
4
|
import { _ as _to_array } from "@swc/helpers/_/_to_array";
|
|
3
5
|
import { _ as _type_of } from "@swc/helpers/_/_type_of";
|
|
4
6
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
@@ -151,13 +153,17 @@ function _fetchData() {
|
|
|
151
153
|
if (typeof mfDowngrade === "boolean") {
|
|
152
154
|
return [
|
|
153
155
|
2,
|
|
154
|
-
callDowngrade(id, params)
|
|
156
|
+
callDowngrade(id, _object_spread_props(_object_spread({}, params), {
|
|
157
|
+
isDowngrade: true
|
|
158
|
+
}))
|
|
155
159
|
];
|
|
156
160
|
}
|
|
157
161
|
if (mfDowngrade.includes(id)) {
|
|
158
162
|
return [
|
|
159
163
|
2,
|
|
160
|
-
callDowngrade(id, params)
|
|
164
|
+
callDowngrade(id, _object_spread_props(_object_spread({}, params), {
|
|
165
|
+
isDowngrade: true
|
|
166
|
+
}))
|
|
161
167
|
];
|
|
162
168
|
}
|
|
163
169
|
}
|
|
@@ -104,10 +104,16 @@ async function fetchData(id, params, remoteInfo) {
|
|
|
104
104
|
const mfDowngrade = getDowngradeTag();
|
|
105
105
|
if (mfDowngrade) {
|
|
106
106
|
if (typeof mfDowngrade === "boolean") {
|
|
107
|
-
return callDowngrade(id,
|
|
107
|
+
return callDowngrade(id, {
|
|
108
|
+
...params,
|
|
109
|
+
isDowngrade: true
|
|
110
|
+
});
|
|
108
111
|
}
|
|
109
112
|
if (mfDowngrade.includes(id)) {
|
|
110
|
-
return callDowngrade(id,
|
|
113
|
+
return callDowngrade(id, {
|
|
114
|
+
...params,
|
|
115
|
+
isDowngrade: true
|
|
116
|
+
});
|
|
111
117
|
}
|
|
112
118
|
}
|
|
113
119
|
let res;
|
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-20250523132518",
|
|
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-20250523132518",
|
|
115
|
+
"@module-federation/enhanced": "0.0.0-next-20250523132518",
|
|
116
|
+
"@module-federation/runtime": "0.0.0-next-20250523132518",
|
|
117
|
+
"@module-federation/node": "0.0.0-next-20250523132518",
|
|
118
|
+
"@module-federation/sdk": "0.0.0-next-20250523132518",
|
|
119
|
+
"@module-federation/cli": "0.0.0-next-20250523132518"
|
|
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-20250523132518"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"react": ">=17",
|