@module-federation/modern-js 0.0.0-next-20250523083317 → 0.0.0-next-20250523091841

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.
@@ -41,7 +41,7 @@ function callAllDowngrade() {
41
41
  async function callDowngrade(id, params, remoteInfo) {
42
42
  const dataFetchMap = (0, import_utils.getDataFetchMap)();
43
43
  if (!dataFetchMap) {
44
- (0, import_utils.initDataFetchMap)();
44
+ return;
45
45
  }
46
46
  const mfDataFetch = dataFetchMap[id];
47
47
  if (mfDataFetch[2] === import_constant2.MF_DATA_FETCH_STATUS.AWAIT) {
@@ -4,7 +4,7 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
5
  import { DATA_FETCH_QUERY, DOWNGRADE_KEY } from "../constant";
6
6
  import { MF_DATA_FETCH_STATUS, MF_DATA_FETCH_TYPE } from "../constant";
7
- import { getDataFetchMap, initDataFetchMap } from "../utils";
7
+ import { getDataFetchMap } from "../utils";
8
8
  function getDowngradeTag() {
9
9
  return globalThis[DOWNGRADE_KEY];
10
10
  }
@@ -28,7 +28,9 @@ function _callDowngrade() {
28
28
  case 0:
29
29
  dataFetchMap = getDataFetchMap();
30
30
  if (!dataFetchMap) {
31
- initDataFetchMap();
31
+ return [
32
+ 2
33
+ ];
32
34
  }
33
35
  mfDataFetch = dataFetchMap[id];
34
36
  if (!(mfDataFetch[2] === MF_DATA_FETCH_STATUS.AWAIT))
@@ -1,6 +1,6 @@
1
1
  import { DATA_FETCH_QUERY, DOWNGRADE_KEY } from "../constant";
2
2
  import { MF_DATA_FETCH_STATUS, MF_DATA_FETCH_TYPE } from "../constant";
3
- import { getDataFetchMap, initDataFetchMap } from "../utils";
3
+ import { getDataFetchMap } from "../utils";
4
4
  function getDowngradeTag() {
5
5
  return globalThis[DOWNGRADE_KEY];
6
6
  }
@@ -16,7 +16,7 @@ function callAllDowngrade() {
16
16
  async function callDowngrade(id, params, remoteInfo) {
17
17
  const dataFetchMap = getDataFetchMap();
18
18
  if (!dataFetchMap) {
19
- initDataFetchMap();
19
+ return;
20
20
  }
21
21
  const mfDataFetch = dataFetchMap[id];
22
22
  if (mfDataFetch[2] === MF_DATA_FETCH_STATUS.AWAIT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.0.0-next-20250523083317",
3
+ "version": "0.0.0-next-20250523091841",
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-20250523083317",
115
- "@module-federation/enhanced": "0.0.0-next-20250523083317",
116
- "@module-federation/runtime": "0.0.0-next-20250523083317",
117
- "@module-federation/node": "0.0.0-next-20250523083317",
118
- "@module-federation/sdk": "0.0.0-next-20250523083317",
119
- "@module-federation/cli": "0.0.0-next-20250523083317"
114
+ "@module-federation/rsbuild-plugin": "0.0.0-next-20250523091841",
115
+ "@module-federation/enhanced": "0.0.0-next-20250523091841",
116
+ "@module-federation/runtime": "0.0.0-next-20250523091841",
117
+ "@module-federation/node": "0.0.0-next-20250523091841",
118
+ "@module-federation/sdk": "0.0.0-next-20250523091841",
119
+ "@module-federation/cli": "0.0.0-next-20250523091841"
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-20250523083317"
129
+ "@module-federation/manifest": "0.0.0-next-20250523091841"
130
130
  },
131
131
  "peerDependencies": {
132
132
  "react": ">=17",