@module-federation/bridge-react 0.0.0-feat-operate-openruntime-20260726151341 → 0.0.0-feat-operate-openruntime-20260729120109

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/base.cjs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const createHelpers = require("./createHelpers-D6thyyLv.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-Dua4Xo83.js");
5
5
  const lazyUtils = require("./utils-5dGErM3C.js");
6
6
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
7
- const prefetch = require("./prefetch-_kTu3xdD.js");
7
+ const prefetch = require("./prefetch-COEGKNV6.js");
8
8
  const createRemoteAppComponent = createHelpers.createRemoteAppComponentFactory(createHelpers.RemoteAppWrapper);
9
9
  const createRemoteComponent = createHelpers.createDeprecatedRemoteComponentFactory(
10
10
  createRemoteAppComponent
package/dist/base.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-D3Sg5lKp.mjs";
2
2
  import { b } from "./createHelpers-D3Sg5lKp.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-MqjvzFfm.mjs";
4
4
  import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-BBP3hEeV.mjs";
5
5
  import { callDataFetch } from "./data-fetch-utils.es.js";
6
- import { p } from "./prefetch-n6QIENVB.mjs";
6
+ import { p } from "./prefetch-COdjj7Lb.mjs";
7
7
  const createRemoteAppComponent = createRemoteAppComponentFactory(RemoteAppWrapper);
8
8
  const createRemoteComponent = createDeprecatedRemoteComponentFactory(
9
9
  createRemoteAppComponent
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const lazyUtils = require("./utils-5dGErM3C.js");
4
- const prefetch = require("./prefetch-_kTu3xdD.js");
4
+ const prefetch = require("./prefetch-COEGKNV6.js");
5
5
  async function callDataFetch() {
6
6
  const dataFetch = globalThis[lazyUtils.DATA_FETCH_FUNCTION];
7
7
  if (dataFetch) {
@@ -1,7 +1,7 @@
1
1
  import { y as DATA_FETCH_FUNCTION } from "./utils-BBP3hEeV.mjs";
2
2
  import { C, a, c, b, d, g, r } from "./utils-BBP3hEeV.mjs";
3
- import { d as dataFetchFunction } from "./prefetch-n6QIENVB.mjs";
4
- import { i, p } from "./prefetch-n6QIENVB.mjs";
3
+ import { d as dataFetchFunction } from "./prefetch-COdjj7Lb.mjs";
4
+ import { i, p } from "./prefetch-COdjj7Lb.mjs";
5
5
  async function callDataFetch() {
6
6
  const dataFetch = globalThis[DATA_FETCH_FUNCTION];
7
7
  if (dataFetch) {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-Dua4Xo83.js");
4
4
  const lazyUtils = require("./utils-5dGErM3C.js");
5
5
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
6
- const prefetch = require("./prefetch-_kTu3xdD.js");
6
+ const prefetch = require("./prefetch-COEGKNV6.js");
7
7
  exports.autoFetchDataPlugin = lazyLoadComponentPlugin.autoFetchData;
8
8
  exports.collectSSRAssets = lazyLoadComponentPlugin.collectSSRAssets;
9
9
  exports.createLazyComponent = lazyLoadComponentPlugin.createLazyComponent;
@@ -1,7 +1,7 @@
1
- import { a, c, b, l } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
1
+ import { a, c, b, l } from "./lazy-load-component-plugin-MqjvzFfm.mjs";
2
2
  import { C, a as a2, E, c as c2, b as b2, d, f, g, r, s } from "./utils-BBP3hEeV.mjs";
3
3
  import { callDataFetch } from "./data-fetch-utils.es.js";
4
- import { p } from "./prefetch-n6QIENVB.mjs";
4
+ import { p } from "./prefetch-COdjj7Lb.mjs";
5
5
  export {
6
6
  C as CacheSize,
7
7
  a2 as CacheTime,
package/dist/index.cjs.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const createHelpers = require("./createHelpers-D6thyyLv.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-Dua4Xo83.js");
5
5
  const lazyUtils = require("./utils-5dGErM3C.js");
6
6
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
7
7
  const React = require("react");
8
8
  const ReactRouterDOM = require("react-router-dom");
9
9
  const index = require("./index-DbjGCKOr.js");
10
10
  const plugin = require("./plugin.cjs.js");
11
- const prefetch = require("./prefetch-_kTu3xdD.js");
11
+ const prefetch = require("./prefetch-COEGKNV6.js");
12
12
  function _interopNamespaceDefault(e2) {
13
13
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
14
14
  if (e2) {
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-D3Sg5lKp.mjs";
2
2
  import { b } from "./createHelpers-D3Sg5lKp.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-MqjvzFfm.mjs";
4
4
  import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-BBP3hEeV.mjs";
5
5
  import { callDataFetch } from "./data-fetch-utils.es.js";
6
6
  import React__default, { forwardRef, useContext, useState, useEffect } from "react";
7
7
  import * as ReactRouterDOM from "react-router-dom";
8
8
  import { p as pathJoin, L as LoggerInstance } from "./index-Bs2NxD2z.mjs";
9
9
  import { federationRuntime } from "./plugin.es.js";
10
- import { p } from "./prefetch-n6QIENVB.mjs";
10
+ import { p } from "./prefetch-COdjj7Lb.mjs";
11
11
  function e() {
12
12
  const t = new PopStateEvent("popstate", { state: window.history.state });
13
13
  window.dispatchEvent(t);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const prefetch = require("./prefetch-_kTu3xdD.js");
2
+ const prefetch = require("./prefetch-COEGKNV6.js");
3
3
  const lazyUtils = require("./utils-5dGErM3C.js");
4
4
  const React = require("react");
5
5
  const autoFetchData = () => {
@@ -1,4 +1,4 @@
1
- import { i as injectDataFetch, p as prefetch } from "./prefetch-n6QIENVB.mjs";
1
+ import { i as injectDataFetch, p as prefetch } from "./prefetch-COdjj7Lb.mjs";
2
2
  import { i as initDataFetchMap, k as isDataLoaderExpose, m as getDataFetchInfo, n as getDataFetchMapKey, l as logger, o as getDataFetchItem, p as DATA_FETCH_CLIENT_SUFFIX, q as MF_DATA_FETCH_TYPE, t as isCSROnly, M as MF_DATA_FETCH_STATUS, j as loadDataFetchModule, e as getDataFetchMap, u as isServerEnv, v as getDataFetchIdWithErrorMsgs, w as DATA_FETCH_ERROR_PREFIX, E as ERROR_TYPE, x as wrapDataFetchId, L as LOAD_REMOTE_ERROR_PREFIX, y as DATA_FETCH_FUNCTION, z as getLoadedRemoteInfos, h as fetchData$1, A as setDataFetchItemLoadedStatus, F as FS_HREF } from "./utils-BBP3hEeV.mjs";
3
3
  import React__default, { useRef, useState, Suspense, useEffect } from "react";
4
4
  const autoFetchData = () => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
4
- require("./prefetch-_kTu3xdD.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-Dua4Xo83.js");
4
+ require("./prefetch-COEGKNV6.js");
5
5
  exports.default = lazyLoadComponentPlugin.lazyLoadComponentPlugin;
6
6
  exports.lazyLoadComponentPlugin = lazyLoadComponentPlugin.lazyLoadComponentPlugin;
@@ -1,5 +1,5 @@
1
- import { l, l as l2 } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
2
- import "./prefetch-n6QIENVB.mjs";
1
+ import { l, l as l2 } from "./lazy-load-component-plugin-MqjvzFfm.mjs";
2
+ import "./prefetch-COdjj7Lb.mjs";
3
3
  export {
4
4
  l as default,
5
5
  l2 as lazyLoadComponentPlugin
@@ -622,6 +622,7 @@ const runtimeDescMap = {
622
622
  ...runtimeDescMap
623
623
  });
624
624
  const importCallback = ".then(callbacks[0]).catch(callbacks[1])";
625
+ const remoteEntryLoadingOrigins = /* @__PURE__ */ new WeakMap();
625
626
  function isEsmRemoteType(type) {
626
627
  return type === "esm" || type === "module";
627
628
  }
@@ -823,8 +824,28 @@ async function getRemoteEntry(params) {
823
824
  });
824
825
  throw loadError;
825
826
  });
827
+ remoteEntryLoadingOrigins.set(globalLoading[uniqueKey], origin);
826
828
  }
827
- return globalLoading[uniqueKey];
829
+ const remoteEntryLoading = globalLoading[uniqueKey];
830
+ if (remoteEntryLoadingOrigins.get(remoteEntryLoading) !== origin) try {
831
+ const result = await remoteEntryLoading;
832
+ await origin.loaderHook.lifecycle.afterLoadEntry.emit({
833
+ origin,
834
+ remoteInfo,
835
+ remoteEntryExports: result,
836
+ resourceContext
837
+ });
838
+ return result;
839
+ } catch (loadError) {
840
+ await origin.loaderHook.lifecycle.afterLoadEntry.emit({
841
+ origin,
842
+ remoteInfo,
843
+ resourceContext,
844
+ error: loadError
845
+ });
846
+ throw loadError;
847
+ }
848
+ return remoteEntryLoading;
828
849
  }
829
850
  function getRemoteInfo(remote) {
830
851
  return {
@@ -621,6 +621,7 @@ const runtimeDescMap = {
621
621
  ...runtimeDescMap
622
622
  });
623
623
  const importCallback = ".then(callbacks[0]).catch(callbacks[1])";
624
+ const remoteEntryLoadingOrigins = /* @__PURE__ */ new WeakMap();
624
625
  function isEsmRemoteType(type) {
625
626
  return type === "esm" || type === "module";
626
627
  }
@@ -822,8 +823,28 @@ async function getRemoteEntry(params) {
822
823
  });
823
824
  throw loadError;
824
825
  });
826
+ remoteEntryLoadingOrigins.set(globalLoading[uniqueKey], origin);
825
827
  }
826
- return globalLoading[uniqueKey];
828
+ const remoteEntryLoading = globalLoading[uniqueKey];
829
+ if (remoteEntryLoadingOrigins.get(remoteEntryLoading) !== origin) try {
830
+ const result = await remoteEntryLoading;
831
+ await origin.loaderHook.lifecycle.afterLoadEntry.emit({
832
+ origin,
833
+ remoteInfo,
834
+ remoteEntryExports: result,
835
+ resourceContext
836
+ });
837
+ return result;
838
+ } catch (loadError) {
839
+ await origin.loaderHook.lifecycle.afterLoadEntry.emit({
840
+ origin,
841
+ remoteInfo,
842
+ resourceContext,
843
+ error: loadError
844
+ });
845
+ throw loadError;
846
+ }
847
+ return remoteEntryLoading;
827
848
  }
828
849
  function getRemoteInfo(remote) {
829
850
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react",
3
- "version": "0.0.0-feat-operate-openruntime-20260726151341",
3
+ "version": "0.0.0-feat-operate-openruntime-20260729120109",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -147,7 +147,7 @@
147
147
  }
148
148
  },
149
149
  "dependencies": {
150
- "@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260726151341"
150
+ "@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260729120109"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "react": ">=16.9.0",
@@ -179,9 +179,9 @@
179
179
  "typescript": "7.0.2",
180
180
  "vite": "^5.4.21",
181
181
  "hono": "4.12.26",
182
- "@module-federation/bridge-shared": "0.0.0-feat-operate-openruntime-20260726151341",
183
- "@module-federation/runtime-core": "0.0.0-feat-operate-openruntime-20260726151341",
184
- "@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260726151341"
182
+ "@module-federation/bridge-shared": "0.0.0-feat-operate-openruntime-20260729120109",
183
+ "@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260729120109",
184
+ "@module-federation/runtime-core": "0.0.0-feat-operate-openruntime-20260729120109"
185
185
  },
186
186
  "scripts": {
187
187
  "dev": "vite",