@module-federation/bridge-react 2.9.0 → 2.9.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 +2 -2
- package/dist/base.es.js +2 -2
- package/dist/data-fetch-utils.cjs.js +1 -1
- package/dist/data-fetch-utils.es.js +2 -2
- package/dist/data-fetch.cjs.js +2 -2
- package/dist/data-fetch.es.js +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{lazy-load-component-plugin-CRqjWQ5N.js → lazy-load-component-plugin-DSURjnZ0.js} +1 -1
- package/dist/{lazy-load-component-plugin-CyRfqVSE.mjs → lazy-load-component-plugin-NZphPG7_.mjs} +1 -1
- package/dist/lazy-load-component-plugin.cjs.js +2 -2
- package/dist/lazy-load-component-plugin.es.js +2 -2
- package/dist/{prefetch-CMvAw8F3.js → prefetch-Bxf6DSx_.js} +6 -2
- package/dist/{prefetch-xvZIEaJL.mjs → prefetch-TKq_EK_q.mjs} +6 -2
- package/package.json +5 -5
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-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DSURjnZ0.js");
|
|
5
5
|
const lazyUtils = require("./utils-5dGErM3C.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
7
|
-
const prefetch = require("./prefetch-
|
|
7
|
+
const prefetch = require("./prefetch-Bxf6DSx_.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-
|
|
3
|
+
import { a, c, b as b2, l } from "./lazy-load-component-plugin-NZphPG7_.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-
|
|
6
|
+
import { p } from "./prefetch-TKq_EK_q.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-
|
|
4
|
+
const prefetch = require("./prefetch-Bxf6DSx_.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-
|
|
4
|
-
import { i, p } from "./prefetch-
|
|
3
|
+
import { d as dataFetchFunction } from "./prefetch-TKq_EK_q.mjs";
|
|
4
|
+
import { i, p } from "./prefetch-TKq_EK_q.mjs";
|
|
5
5
|
async function callDataFetch() {
|
|
6
6
|
const dataFetch = globalThis[DATA_FETCH_FUNCTION];
|
|
7
7
|
if (dataFetch) {
|
package/dist/data-fetch.cjs.js
CHANGED
|
@@ -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-
|
|
3
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DSURjnZ0.js");
|
|
4
4
|
const lazyUtils = require("./utils-5dGErM3C.js");
|
|
5
5
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
6
|
-
const prefetch = require("./prefetch-
|
|
6
|
+
const prefetch = require("./prefetch-Bxf6DSx_.js");
|
|
7
7
|
exports.autoFetchDataPlugin = lazyLoadComponentPlugin.autoFetchData;
|
|
8
8
|
exports.collectSSRAssets = lazyLoadComponentPlugin.collectSSRAssets;
|
|
9
9
|
exports.createLazyComponent = lazyLoadComponentPlugin.createLazyComponent;
|
package/dist/data-fetch.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a, c, b, l } from "./lazy-load-component-plugin-
|
|
1
|
+
import { a, c, b, l } from "./lazy-load-component-plugin-NZphPG7_.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-
|
|
4
|
+
import { p } from "./prefetch-TKq_EK_q.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-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DSURjnZ0.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-
|
|
11
|
+
const prefetch = require("./prefetch-Bxf6DSx_.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-
|
|
3
|
+
import { a, c, b as b2, l } from "./lazy-load-component-plugin-NZphPG7_.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-
|
|
10
|
+
import { p } from "./prefetch-TKq_EK_q.mjs";
|
|
11
11
|
function e() {
|
|
12
12
|
const t = new PopStateEvent("popstate", { state: window.history.state });
|
|
13
13
|
window.dispatchEvent(t);
|
package/dist/{lazy-load-component-plugin-CyRfqVSE.mjs → lazy-load-component-plugin-NZphPG7_.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as injectDataFetch, p as prefetch } from "./prefetch-
|
|
1
|
+
import { i as injectDataFetch, p as prefetch } from "./prefetch-TKq_EK_q.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, useEffect, Suspense } 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-
|
|
4
|
-
require("./prefetch-
|
|
3
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-DSURjnZ0.js");
|
|
4
|
+
require("./prefetch-Bxf6DSx_.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-
|
|
2
|
-
import "./prefetch-
|
|
1
|
+
import { l, l as l2 } from "./lazy-load-component-plugin-NZphPG7_.mjs";
|
|
2
|
+
import "./prefetch-TKq_EK_q.mjs";
|
|
3
3
|
export {
|
|
4
4
|
l as default,
|
|
5
5
|
l2 as lazyLoadComponentPlugin
|
|
@@ -799,7 +799,7 @@ async function getRemoteEntry(params) {
|
|
|
799
799
|
if (!globalLoading[uniqueKey]) {
|
|
800
800
|
const loadEntryHook = origin.remoteHandler.hooks.lifecycle.loadEntry;
|
|
801
801
|
const loaderHook = origin.loaderHook;
|
|
802
|
-
|
|
802
|
+
const loading = loadEntryHook.emit({
|
|
803
803
|
origin,
|
|
804
804
|
loaderHook,
|
|
805
805
|
remoteInfo,
|
|
@@ -863,7 +863,11 @@ async function getRemoteEntry(params) {
|
|
|
863
863
|
});
|
|
864
864
|
throw loadError;
|
|
865
865
|
});
|
|
866
|
-
|
|
866
|
+
globalLoading[uniqueKey] = loading;
|
|
867
|
+
loading.then(void 0, () => {
|
|
868
|
+
if (globalLoading[uniqueKey] === loading) delete globalLoading[uniqueKey];
|
|
869
|
+
});
|
|
870
|
+
remoteEntryLoadingOrigins.set(loading, origin);
|
|
867
871
|
}
|
|
868
872
|
const remoteEntryLoading = globalLoading[uniqueKey];
|
|
869
873
|
if (remoteEntryLoadingOrigins.get(remoteEntryLoading) !== origin) try {
|
|
@@ -798,7 +798,7 @@ async function getRemoteEntry(params) {
|
|
|
798
798
|
if (!globalLoading[uniqueKey]) {
|
|
799
799
|
const loadEntryHook = origin.remoteHandler.hooks.lifecycle.loadEntry;
|
|
800
800
|
const loaderHook = origin.loaderHook;
|
|
801
|
-
|
|
801
|
+
const loading = loadEntryHook.emit({
|
|
802
802
|
origin,
|
|
803
803
|
loaderHook,
|
|
804
804
|
remoteInfo,
|
|
@@ -862,7 +862,11 @@ async function getRemoteEntry(params) {
|
|
|
862
862
|
});
|
|
863
863
|
throw loadError;
|
|
864
864
|
});
|
|
865
|
-
|
|
865
|
+
globalLoading[uniqueKey] = loading;
|
|
866
|
+
loading.then(void 0, () => {
|
|
867
|
+
if (globalLoading[uniqueKey] === loading) delete globalLoading[uniqueKey];
|
|
868
|
+
});
|
|
869
|
+
remoteEntryLoadingOrigins.set(loading, origin);
|
|
866
870
|
}
|
|
867
871
|
const remoteEntryLoading = globalLoading[uniqueKey];
|
|
868
872
|
if (remoteEntryLoadingOrigins.get(remoteEntryLoading) !== origin) try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1",
|
|
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": "2.9.
|
|
150
|
+
"@module-federation/sdk": "2.9.1"
|
|
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.13.1",
|
|
182
|
-
"@module-federation/
|
|
183
|
-
"@module-federation/runtime": "2.9.
|
|
184
|
-
"@module-federation/
|
|
182
|
+
"@module-federation/runtime": "2.9.1",
|
|
183
|
+
"@module-federation/runtime-core": "2.9.1",
|
|
184
|
+
"@module-federation/bridge-shared": "2.9.1"
|
|
185
185
|
},
|
|
186
186
|
"scripts": {
|
|
187
187
|
"dev": "vite",
|