@module-federation/bridge-react 2.0.0 → 2.0.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/base.cjs.js +4 -4
  3. package/dist/base.es.js +5 -5
  4. package/dist/{bridge-base-CIgEZf8X.mjs → bridge-base-BVX0EbsV.mjs} +1 -1
  5. package/dist/{bridge-base-1Grpgans.js → bridge-base-vSCG9ebE.js} +1 -1
  6. package/dist/{createHelpers-2UBGLdcA.js → createHelpers-12yCVhCu.js} +2 -2
  7. package/dist/{createHelpers-C9qvVTND.mjs → createHelpers-CGhHhtAd.mjs} +2 -2
  8. package/dist/data-fetch-server-middleware.cjs.js +2 -2
  9. package/dist/data-fetch-server-middleware.es.js +2 -2
  10. package/dist/data-fetch-utils.cjs.js +2 -2
  11. package/dist/data-fetch-utils.es.js +4 -4
  12. package/dist/{index-DRSBaSu3.js → index-DhFNWacm.js} +1 -1
  13. package/dist/{index-DyQNwY2M.mjs → index-DtXhorFI.mjs} +1 -1
  14. package/dist/index.cjs.js +5 -5
  15. package/dist/index.es.js +6 -6
  16. package/dist/{index.esm-CPwSeCvw.mjs → index.esm-BvTtsZnu.mjs} +3 -4
  17. package/dist/{index.esm-BWaKho-8.js → index.esm-CYiGJfQW.js} +0 -1
  18. package/dist/{lazy-load-component-plugin-9KkACgWW.js → lazy-load-component-plugin-C7jasFos.js} +2 -2
  19. package/dist/{lazy-load-component-plugin-GtenP5tG.mjs → lazy-load-component-plugin-CrSLH5YP.mjs} +2 -2
  20. package/dist/lazy-load-component-plugin.cjs.js +2 -2
  21. package/dist/lazy-load-component-plugin.es.js +2 -2
  22. package/dist/lazy-utils.cjs.js +2 -2
  23. package/dist/lazy-utils.es.js +2 -2
  24. package/dist/prefetch-CFRpPfZQ.js +632 -0
  25. package/dist/prefetch-DMJyBeIs.mjs +633 -0
  26. package/dist/router-v5.cjs.js +1 -1
  27. package/dist/router-v5.es.js +1 -1
  28. package/dist/router-v6.cjs.js +1 -1
  29. package/dist/router-v6.es.js +1 -1
  30. package/dist/router-v7.cjs.js +1 -1
  31. package/dist/router-v7.es.js +1 -1
  32. package/dist/router.cjs.js +1 -1
  33. package/dist/router.es.js +1 -1
  34. package/dist/{utils--qTri1IN.mjs → utils-DpoLOH_j.mjs} +1 -1
  35. package/dist/{utils-tM9yE73c.js → utils-TDonIHDD.js} +1 -1
  36. package/dist/v18.cjs.js +1 -1
  37. package/dist/v18.es.js +1 -1
  38. package/dist/v19.cjs.js +1 -1
  39. package/dist/v19.es.js +1 -1
  40. package/package.json +5 -5
  41. package/dist/prefetch-BvksZRMd.js +0 -1390
  42. package/dist/prefetch-Cj92jrl5.mjs +0 -1391
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @module-federation/bridge-react
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @module-federation/sdk@2.0.1
8
+ - @module-federation/bridge-shared@2.0.1
9
+
3
10
  ## 2.0.0
4
11
 
5
12
  ### Patch Changes
package/dist/base.cjs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const createHelpers = require("./createHelpers-2UBGLdcA.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-9KkACgWW.js");
5
- const lazyUtils = require("./utils-tM9yE73c.js");
3
+ const createHelpers = require("./createHelpers-12yCVhCu.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-C7jasFos.js");
5
+ const lazyUtils = require("./utils-TDonIHDD.js");
6
6
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
7
- const prefetch = require("./prefetch-BvksZRMd.js");
7
+ const prefetch = require("./prefetch-CFRpPfZQ.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
- import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-C9qvVTND.mjs";
2
- import { b } from "./createHelpers-C9qvVTND.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-GtenP5tG.mjs";
4
- import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils--qTri1IN.mjs";
1
+ import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-CGhHhtAd.mjs";
2
+ import { b } from "./createHelpers-CGhHhtAd.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-CrSLH5YP.mjs";
4
+ import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-DpoLOH_j.mjs";
5
5
  import { callDataFetch } from "./data-fetch-utils.es.js";
6
- import { p } from "./prefetch-Cj92jrl5.mjs";
6
+ import { p } from "./prefetch-DMJyBeIs.mjs";
7
7
  const createRemoteAppComponent = createRemoteAppComponentFactory(RemoteAppWrapper);
8
8
  const createRemoteComponent = createDeprecatedRemoteComponentFactory(
9
9
  createRemoteAppComponent
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Component, createElement, createContext } from "react";
3
- import { L as LoggerInstance, R as RouterContext } from "./index-DyQNwY2M.mjs";
3
+ import { L as LoggerInstance, R as RouterContext } from "./index-DtXhorFI.mjs";
4
4
  import { federationRuntime } from "./plugin.es.js";
5
5
  const ErrorBoundaryContext = createContext(null);
6
6
  const initialState = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const React = require("react");
3
- const index = require("./index-DRSBaSu3.js");
3
+ const index = require("./index-DhFNWacm.js");
4
4
  const plugin = require("./plugin.cjs.js");
5
5
  function _interopNamespaceDefault(e) {
6
6
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const bridgeBase = require("./bridge-base-1Grpgans.js");
2
+ const bridgeBase = require("./bridge-base-vSCG9ebE.js");
3
3
  const ReactDOM = require("react-dom");
4
- const index = require("./index-DRSBaSu3.js");
4
+ const index = require("./index-DhFNWacm.js");
5
5
  const React = require("react");
6
6
  const plugin = require("./plugin.cjs.js");
7
7
  function createReact16Or17Root(container) {
@@ -1,6 +1,6 @@
1
- import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-CIgEZf8X.mjs";
1
+ import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-BVX0EbsV.mjs";
2
2
  import ReactDOM from "react-dom";
3
- import { L as LoggerInstance, g as getRootDomDefaultClassName } from "./index-DyQNwY2M.mjs";
3
+ import { L as LoggerInstance, g as getRootDomDefaultClassName } from "./index-DtXhorFI.mjs";
4
4
  import React__default, { forwardRef, useRef, useState, useEffect } from "react";
5
5
  import { federationRuntime } from "./plugin.es.js";
6
6
  function createReact16Or17Root(container) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const lazyUtils = require("./utils-tM9yE73c.js");
3
- const index_esm = require("./index.esm-BWaKho-8.js");
2
+ const lazyUtils = require("./utils-TDonIHDD.js");
3
+ const index_esm = require("./index.esm-CYiGJfQW.js");
4
4
  function wrapSetTimeout(targetPromise, delay = 2e4, id) {
5
5
  if (targetPromise && typeof targetPromise.then === "function") {
6
6
  return new Promise((resolve, reject) => {
@@ -1,5 +1,5 @@
1
- import { D as DATA_FETCH_QUERY, l as logger, e as getDataFetchMap, i as initDataFetchMap, M as MF_DATA_FETCH_STATUS, f as fetchData, h as loadDataFetchModule } from "./utils--qTri1IN.mjs";
2
- import { M as MANIFEST_EXT, S as SEPARATOR } from "./index.esm-CPwSeCvw.mjs";
1
+ import { D as DATA_FETCH_QUERY, l as logger, e as getDataFetchMap, i as initDataFetchMap, M as MF_DATA_FETCH_STATUS, f as fetchData, h as loadDataFetchModule } from "./utils-DpoLOH_j.mjs";
2
+ import { M as MANIFEST_EXT, S as SEPARATOR } from "./index.esm-BvTtsZnu.mjs";
3
3
  function wrapSetTimeout(targetPromise, delay = 2e4, id) {
4
4
  if (targetPromise && typeof targetPromise.then === "function") {
5
5
  return new Promise((resolve, reject) => {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const lazyUtils = require("./utils-tM9yE73c.js");
4
- const prefetch = require("./prefetch-BvksZRMd.js");
3
+ const lazyUtils = require("./utils-TDonIHDD.js");
4
+ const prefetch = require("./prefetch-CFRpPfZQ.js");
5
5
  async function callDataFetch() {
6
6
  const dataFetch = globalThis[lazyUtils.DATA_FETCH_FUNCTION];
7
7
  if (dataFetch) {
@@ -1,7 +1,7 @@
1
- import { x as DATA_FETCH_FUNCTION } from "./utils--qTri1IN.mjs";
2
- import { C, a, c, b, d, g, r } from "./utils--qTri1IN.mjs";
3
- import { d as dataFetchFunction } from "./prefetch-Cj92jrl5.mjs";
4
- import { i, p } from "./prefetch-Cj92jrl5.mjs";
1
+ import { x as DATA_FETCH_FUNCTION } from "./utils-DpoLOH_j.mjs";
2
+ import { C, a, c, b, d, g, r } from "./utils-DpoLOH_j.mjs";
3
+ import { d as dataFetchFunction } from "./prefetch-DMJyBeIs.mjs";
4
+ import { i, p } from "./prefetch-DMJyBeIs.mjs";
5
5
  async function callDataFetch() {
6
6
  const dataFetch = globalThis[DATA_FETCH_FUNCTION];
7
7
  if (dataFetch) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const React = require("react");
3
- const index_esm = require("./index.esm-BWaKho-8.js");
3
+ const index_esm = require("./index.esm-CYiGJfQW.js");
4
4
  const RouterContext = React.createContext(null);
5
5
  const LoggerInstance = index_esm.createLogger(
6
6
  "[ Module Federation Bridge React ]"
@@ -1,5 +1,5 @@
1
1
  import React__default from "react";
2
- import { c as createLogger } from "./index.esm-CPwSeCvw.mjs";
2
+ import { c as createLogger } from "./index.esm-BvTtsZnu.mjs";
3
3
  const RouterContext = React__default.createContext(null);
4
4
  const LoggerInstance = createLogger(
5
5
  "[ Module Federation Bridge React ]"
package/dist/index.cjs.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const createHelpers = require("./createHelpers-2UBGLdcA.js");
4
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-9KkACgWW.js");
5
- const lazyUtils = require("./utils-tM9yE73c.js");
3
+ const createHelpers = require("./createHelpers-12yCVhCu.js");
4
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-C7jasFos.js");
5
+ const lazyUtils = require("./utils-TDonIHDD.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
- const index = require("./index-DRSBaSu3.js");
10
- const prefetch = require("./prefetch-BvksZRMd.js");
9
+ const index = require("./index-DhFNWacm.js");
10
+ const prefetch = require("./prefetch-CFRpPfZQ.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
- import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-C9qvVTND.mjs";
2
- import { b } from "./createHelpers-C9qvVTND.mjs";
3
- import { a, c, b as b2, l } from "./lazy-load-component-plugin-GtenP5tG.mjs";
4
- import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils--qTri1IN.mjs";
1
+ import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-CGhHhtAd.mjs";
2
+ import { b } from "./createHelpers-CGhHhtAd.mjs";
3
+ import { a, c, b as b2, l } from "./lazy-load-component-plugin-CrSLH5YP.mjs";
4
+ import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-DpoLOH_j.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
- import { p as pathJoin, L as LoggerInstance } from "./index-DyQNwY2M.mjs";
9
- import { p } from "./prefetch-Cj92jrl5.mjs";
8
+ import { p as pathJoin, L as LoggerInstance } from "./index-DtXhorFI.mjs";
9
+ import { p } from "./prefetch-DMJyBeIs.mjs";
10
10
  function e() {
11
11
  const t = new PopStateEvent("popstate", { state: window.history.state });
12
12
  window.dispatchEvent(t);
@@ -484,9 +484,8 @@ export {
484
484
  createLink as a,
485
485
  createScript as b,
486
486
  createLogger as c,
487
- isBrowserEnv as d,
488
- composeKeyWithSeparator as e,
489
- loadScript as f,
490
- isDebugMode as i,
487
+ composeKeyWithSeparator as d,
488
+ loadScript as e,
489
+ isBrowserEnv as i,
491
490
  loadScriptNode as l
492
491
  };
@@ -486,6 +486,5 @@ exports.createLink = createLink;
486
486
  exports.createLogger = createLogger;
487
487
  exports.createScript = createScript;
488
488
  exports.isBrowserEnv = isBrowserEnv;
489
- exports.isDebugMode = isDebugMode;
490
489
  exports.loadScript = loadScript;
491
490
  exports.loadScriptNode = loadScriptNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const prefetch = require("./prefetch-BvksZRMd.js");
3
- const lazyUtils = require("./utils-tM9yE73c.js");
2
+ const prefetch = require("./prefetch-CFRpPfZQ.js");
3
+ const lazyUtils = require("./utils-TDonIHDD.js");
4
4
  const React = require("react");
5
5
  const autoFetchData = () => {
6
6
  lazyUtils.initDataFetchMap();
@@ -1,5 +1,5 @@
1
- import { i as injectDataFetch, p as prefetch } from "./prefetch-Cj92jrl5.mjs";
2
- import { i as initDataFetchMap, j as isDataLoaderExpose, k as getDataFetchInfo, m as getDataFetchMapKey, l as logger, n as getDataFetchItem, o as DATA_FETCH_CLIENT_SUFFIX, p as MF_DATA_FETCH_TYPE, q as isCSROnly, M as MF_DATA_FETCH_STATUS, h as loadDataFetchModule, e as getDataFetchMap, t as isServerEnv, u as getDataFetchIdWithErrorMsgs, v as DATA_FETCH_ERROR_PREFIX, E as ERROR_TYPE, w as wrapDataFetchId, L as LOAD_REMOTE_ERROR_PREFIX, x as DATA_FETCH_FUNCTION, y as getLoadedRemoteInfos, f as fetchData$1, z as setDataFetchItemLoadedStatus, F as FS_HREF } from "./utils--qTri1IN.mjs";
1
+ import { i as injectDataFetch, p as prefetch } from "./prefetch-DMJyBeIs.mjs";
2
+ import { i as initDataFetchMap, j as isDataLoaderExpose, k as getDataFetchInfo, m as getDataFetchMapKey, l as logger, n as getDataFetchItem, o as DATA_FETCH_CLIENT_SUFFIX, p as MF_DATA_FETCH_TYPE, q as isCSROnly, M as MF_DATA_FETCH_STATUS, h as loadDataFetchModule, e as getDataFetchMap, t as isServerEnv, u as getDataFetchIdWithErrorMsgs, v as DATA_FETCH_ERROR_PREFIX, E as ERROR_TYPE, w as wrapDataFetchId, L as LOAD_REMOTE_ERROR_PREFIX, x as DATA_FETCH_FUNCTION, y as getLoadedRemoteInfos, f as fetchData$1, z as setDataFetchItemLoadedStatus, F as FS_HREF } from "./utils-DpoLOH_j.mjs";
3
3
  import React__default, { useRef, useState, Suspense, useEffect } from "react";
4
4
  const autoFetchData = () => {
5
5
  initDataFetchMap();
@@ -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-9KkACgWW.js");
4
- require("./prefetch-BvksZRMd.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-C7jasFos.js");
4
+ require("./prefetch-CFRpPfZQ.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-GtenP5tG.mjs";
2
- import "./prefetch-Cj92jrl5.mjs";
1
+ import { l, l as l2 } from "./lazy-load-component-plugin-CrSLH5YP.mjs";
2
+ import "./prefetch-DMJyBeIs.mjs";
3
3
  export {
4
4
  l as default,
5
5
  l2 as lazyLoadComponentPlugin
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("./index.esm-BWaKho-8.js");
4
- const lazyUtils = require("./utils-tM9yE73c.js");
3
+ require("./index.esm-CYiGJfQW.js");
4
+ const lazyUtils = require("./utils-TDonIHDD.js");
5
5
  exports.callAllDowngrade = lazyUtils.callAllDowngrade;
6
6
  exports.callDowngrade = lazyUtils.callDowngrade;
7
7
  exports.fetchData = lazyUtils.fetchData;
@@ -1,5 +1,5 @@
1
- import "./index.esm-CPwSeCvw.mjs";
2
- import { B, G, f, I, J, u, k, n, e, m, H, y, i, q, j, t, h, z, s, w } from "./utils--qTri1IN.mjs";
1
+ import "./index.esm-BvTtsZnu.mjs";
2
+ import { B, G, f, I, J, u, k, n, e, m, H, y, i, q, j, t, h, z, s, w } from "./utils-DpoLOH_j.mjs";
3
3
  export {
4
4
  B as callAllDowngrade,
5
5
  G as callDowngrade,