@module-federation/bridge-react 0.22.0 → 0.23.0
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/CHANGELOG.md +14 -0
- 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/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{lazy-load-component-plugin-Bt990iJq.js → lazy-load-component-plugin-GaQxzHsw.js} +1 -1
- package/dist/{lazy-load-component-plugin-BkcO9pUC.mjs → lazy-load-component-plugin-lLkUGUIW.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-DAwiqbcO.mjs → prefetch-Cv8Vx9jG.mjs} +1 -1
- package/dist/{prefetch-D-d4LlJ3.js → prefetch-PoipyNzq.js} +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @module-federation/bridge-react
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @module-federation/sdk@0.23.0
|
|
8
|
+
- @module-federation/bridge-shared@0.23.0
|
|
9
|
+
|
|
10
|
+
## 0.22.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @module-federation/sdk@0.22.1
|
|
15
|
+
- @module-federation/bridge-shared@0.22.1
|
|
16
|
+
|
|
3
17
|
## 0.22.0
|
|
4
18
|
|
|
5
19
|
### 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
3
|
const createHelpers = require("./createHelpers-B_L612IN.js");
|
|
4
|
-
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-GaQxzHsw.js");
|
|
5
5
|
const lazyUtils = require("./utils-tM9yE73c.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
7
|
-
const prefetch = require("./prefetch-
|
|
7
|
+
const prefetch = require("./prefetch-PoipyNzq.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 createDeprecatedRemoteComponentFactory, a as createRemoteAppComponentFactory, R as RemoteAppWrapper } from "./createHelpers-Ui5pt7je.mjs";
|
|
2
2
|
import { b } from "./createHelpers-Ui5pt7je.mjs";
|
|
3
|
-
import { b as b2, a, c, l } from "./lazy-load-component-plugin-
|
|
3
|
+
import { b as b2, a, c, l } from "./lazy-load-component-plugin-lLkUGUIW.mjs";
|
|
4
4
|
import { C, a as a2, E, b as b3, d, c as c2, g, r, s } from "./utils-dUgb9Jkm.mjs";
|
|
5
5
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
6
|
-
import { p } from "./prefetch-
|
|
6
|
+
import { p } from "./prefetch-Cv8Vx9jG.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-tM9yE73c.js");
|
|
4
|
-
const prefetch = require("./prefetch-
|
|
4
|
+
const prefetch = require("./prefetch-PoipyNzq.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 { x as DATA_FETCH_FUNCTION } from "./utils-dUgb9Jkm.mjs";
|
|
2
2
|
import { C, a, b, d, c, g, r } from "./utils-dUgb9Jkm.mjs";
|
|
3
|
-
import { d as dataFetchFunction } from "./prefetch-
|
|
4
|
-
import { i, p } from "./prefetch-
|
|
3
|
+
import { d as dataFetchFunction } from "./prefetch-Cv8Vx9jG.mjs";
|
|
4
|
+
import { i, p } from "./prefetch-Cv8Vx9jG.mjs";
|
|
5
5
|
async function callDataFetch() {
|
|
6
6
|
const dataFetch = globalThis[DATA_FETCH_FUNCTION];
|
|
7
7
|
if (dataFetch) {
|
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-B_L612IN.js");
|
|
4
|
-
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-
|
|
4
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-GaQxzHsw.js");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const ReactRouterDOM = require("react-router-dom");
|
|
7
7
|
const index = require("./index-DRSBaSu3.js");
|
|
8
8
|
const lazyUtils = require("./utils-tM9yE73c.js");
|
|
9
9
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
10
|
-
const prefetch = require("./prefetch-
|
|
10
|
+
const prefetch = require("./prefetch-PoipyNzq.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 createDeprecatedRemoteComponentFactory, a as createRemoteAppComponentFactory } from "./createHelpers-Ui5pt7je.mjs";
|
|
2
2
|
import { b } from "./createHelpers-Ui5pt7je.mjs";
|
|
3
|
-
import { b as b2, a, c, l } from "./lazy-load-component-plugin-
|
|
3
|
+
import { b as b2, a, c, l } from "./lazy-load-component-plugin-lLkUGUIW.mjs";
|
|
4
4
|
import React__default, { forwardRef, useContext, useState, useEffect } from "react";
|
|
5
5
|
import * as ReactRouterDOM from "react-router-dom";
|
|
6
6
|
import { p as pathJoin, L as LoggerInstance } from "./index-DyQNwY2M.mjs";
|
|
7
7
|
import { C, a as a2, E, b as b3, d, c as c2, g, r, s } from "./utils-dUgb9Jkm.mjs";
|
|
8
8
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
9
|
-
import { p } from "./prefetch-
|
|
9
|
+
import { p } from "./prefetch-Cv8Vx9jG.mjs";
|
|
10
10
|
function e() {
|
|
11
11
|
const t = new PopStateEvent("popstate", { state: window.history.state });
|
|
12
12
|
window.dispatchEvent(t);
|
package/dist/{lazy-load-component-plugin-BkcO9pUC.mjs → lazy-load-component-plugin-lLkUGUIW.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-Cv8Vx9jG.mjs";
|
|
2
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, h as loadDataFetchModule, M as MF_DATA_FETCH_STATUS, 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-dUgb9Jkm.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-
|
|
4
|
-
require("./prefetch-
|
|
3
|
+
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-GaQxzHsw.js");
|
|
4
|
+
require("./prefetch-PoipyNzq.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-lLkUGUIW.mjs";
|
|
2
|
+
import "./prefetch-Cv8Vx9jG.mjs";
|
|
3
3
|
export {
|
|
4
4
|
l as default,
|
|
5
5
|
l2 as lazyLoadComponentPlugin
|
|
@@ -210,7 +210,7 @@ function getGlobalFederationConstructor() {
|
|
|
210
210
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
|
|
211
211
|
if (isDebug) {
|
|
212
212
|
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
213
|
-
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.
|
|
213
|
+
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.23.0";
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function getInfoWithoutType(target, key) {
|
|
@@ -211,7 +211,7 @@ function getGlobalFederationConstructor() {
|
|
|
211
211
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = index_esm.isDebugMode()) {
|
|
212
212
|
if (isDebug) {
|
|
213
213
|
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
214
|
-
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.
|
|
214
|
+
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.23.0";
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
function getInfoWithoutType(target, key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
"dependencies": {
|
|
130
130
|
"react-error-boundary": "^4.1.2",
|
|
131
131
|
"lru-cache": "^10.4.3",
|
|
132
|
-
"@module-federation/
|
|
133
|
-
"@module-federation/
|
|
132
|
+
"@module-federation/sdk": "0.23.0",
|
|
133
|
+
"@module-federation/bridge-shared": "0.23.0"
|
|
134
134
|
},
|
|
135
135
|
"peerDependencies": {
|
|
136
136
|
"react": ">=16.9.0",
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
"vite": "^5.4.21",
|
|
163
163
|
"vite-plugin-dts": "^4.3.0",
|
|
164
164
|
"hono": "4.10.3",
|
|
165
|
-
"@module-federation/runtime": "0.
|
|
166
|
-
"@module-federation/runtime-core": "0.
|
|
165
|
+
"@module-federation/runtime": "0.23.0",
|
|
166
|
+
"@module-federation/runtime-core": "0.23.0"
|
|
167
167
|
},
|
|
168
168
|
"scripts": {
|
|
169
169
|
"dev": "vite",
|