@module-federation/bridge-react 2.5.0 → 2.5.1

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-9B0ttrN_.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-8zeSnzyV.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DG4e3Tib.js");
5
5
  const lazyUtils = require("./utils-CFTy4LVE.js");
6
6
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
7
- const prefetch = require("./prefetch-DVsz9M2C.js");
7
+ const prefetch = require("./prefetch-CG2l-06N.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-D77sECmY.mjs";
2
2
  import { b } from "./createHelpers-D77sECmY.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-B3GJRx1-.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-BYI941I2.mjs";
4
4
  import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-DGS4pYp8.mjs";
5
5
  import { callDataFetch } from "./data-fetch-utils.es.js";
6
- import { p } from "./prefetch-zNZ70qRm.mjs";
6
+ import { p } from "./prefetch-DzO9_QQ-.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-CFTy4LVE.js");
4
- const prefetch = require("./prefetch-DVsz9M2C.js");
4
+ const prefetch = require("./prefetch-CG2l-06N.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-DGS4pYp8.mjs";
2
2
  import { C, a, c, b, d, g, r } from "./utils-DGS4pYp8.mjs";
3
- import { d as dataFetchFunction } from "./prefetch-zNZ70qRm.mjs";
4
- import { i, p } from "./prefetch-zNZ70qRm.mjs";
3
+ import { d as dataFetchFunction } from "./prefetch-DzO9_QQ-.mjs";
4
+ import { i, p } from "./prefetch-DzO9_QQ-.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-8zeSnzyV.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DG4e3Tib.js");
4
4
  const lazyUtils = require("./utils-CFTy4LVE.js");
5
5
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
6
- const prefetch = require("./prefetch-DVsz9M2C.js");
6
+ const prefetch = require("./prefetch-CG2l-06N.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-B3GJRx1-.mjs";
1
+ import { a, c, b, l } from "./lazy-load-component-plugin-BYI941I2.mjs";
2
2
  import { C, a as a2, E, c as c2, b as b2, d, f, g, r, s } from "./utils-DGS4pYp8.mjs";
3
3
  import { callDataFetch } from "./data-fetch-utils.es.js";
4
- import { p } from "./prefetch-zNZ70qRm.mjs";
4
+ import { p } from "./prefetch-DzO9_QQ-.mjs";
5
5
  export {
6
6
  C as CacheSize,
7
7
  a2 as CacheTime,
package/dist/index.cjs.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const createHelpers = require("./createHelpers-9B0ttrN_.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-8zeSnzyV.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DG4e3Tib.js");
5
5
  const lazyUtils = require("./utils-CFTy4LVE.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
- const prefetch = require("./prefetch-DVsz9M2C.js");
10
+ const prefetch = require("./prefetch-CG2l-06N.js");
11
11
  function _interopNamespaceDefault(e2) {
12
12
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
13
13
  if (e2) {
package/dist/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-D77sECmY.mjs";
2
2
  import { b } from "./createHelpers-D77sECmY.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-B3GJRx1-.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-BYI941I2.mjs";
4
4
  import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-DGS4pYp8.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
- import { p } from "./prefetch-zNZ70qRm.mjs";
9
+ import { p } from "./prefetch-DzO9_QQ-.mjs";
10
10
  function e() {
11
11
  const t = new PopStateEvent("popstate", { state: window.history.state });
12
12
  window.dispatchEvent(t);
@@ -1,4 +1,4 @@
1
- import { i as injectDataFetch, p as prefetch } from "./prefetch-zNZ70qRm.mjs";
1
+ import { i as injectDataFetch, p as prefetch } from "./prefetch-DzO9_QQ-.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-DGS4pYp8.mjs";
3
3
  import React__default, { useRef, useState, Suspense, useEffect } from "react";
4
4
  const autoFetchData = () => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const prefetch = require("./prefetch-DVsz9M2C.js");
2
+ const prefetch = require("./prefetch-CG2l-06N.js");
3
3
  const lazyUtils = require("./utils-CFTy4LVE.js");
4
4
  const React = require("react");
5
5
  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-8zeSnzyV.js");
4
- require("./prefetch-DVsz9M2C.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DG4e3Tib.js");
4
+ require("./prefetch-CG2l-06N.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-B3GJRx1-.mjs";
2
- import "./prefetch-zNZ70qRm.mjs";
1
+ import { l, l as l2 } from "./lazy-load-component-plugin-BYI941I2.mjs";
2
+ import "./prefetch-DzO9_QQ-.mjs";
3
3
  export {
4
4
  l as default,
5
5
  l2 as lazyLoadComponentPlugin
@@ -956,8 +956,7 @@ async function prefetch(options) {
956
956
  const { remote, expose } = matchedRemoteInfo;
957
957
  const { remoteSnapshot, globalSnapshot } = await instance.snapshotHandler.loadRemoteSnapshotInfo({
958
958
  moduleInfo: remote,
959
- id,
960
- expose
959
+ id
961
960
  });
962
961
  if (preloadComponentResource) {
963
962
  const remoteInfo = runtimeHelpers.utils.getRemoteInfo(remote);
@@ -955,8 +955,7 @@ async function prefetch(options) {
955
955
  const { remote, expose } = matchedRemoteInfo;
956
956
  const { remoteSnapshot, globalSnapshot } = await instance.snapshotHandler.loadRemoteSnapshotInfo({
957
957
  moduleInfo: remote,
958
- id,
959
- expose
958
+ id
960
959
  });
961
960
  if (preloadComponentResource) {
962
961
  const remoteInfo = runtimeHelpers.utils.getRemoteInfo(remote);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -140,7 +140,7 @@
140
140
  },
141
141
  "dependencies": {
142
142
  "lru-cache": "10.4.3",
143
- "@module-federation/sdk": "2.5.0"
143
+ "@module-federation/sdk": "2.5.1"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "react": ">=16.9.0",
@@ -167,16 +167,16 @@
167
167
  "@vitejs/plugin-vue-jsx": "^4.0.0",
168
168
  "react": "18.3.1",
169
169
  "react-dom": "18.3.1",
170
- "react-router-dom": "6.30.2",
171
- "react-router": "7.12.0",
170
+ "react-router-dom": "6.30.3",
171
+ "react-router": "7.15.1",
172
172
  "typescript": "^5.2.2",
173
173
  "vite": "^5.4.21",
174
174
  "vite-plugin-dts": "^4.3.0",
175
175
  "hono": "4.12.7",
176
176
  "vitest": "1.6.0",
177
- "@module-federation/runtime-core": "2.5.0",
178
- "@module-federation/bridge-shared": "2.5.0",
179
- "@module-federation/runtime": "2.5.0"
177
+ "@module-federation/bridge-shared": "2.5.1",
178
+ "@module-federation/runtime": "2.5.1",
179
+ "@module-federation/runtime-core": "2.5.1"
180
180
  },
181
181
  "scripts": {
182
182
  "dev": "vite",