@module-federation/bridge-react 0.21.1 → 0.21.3

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @module-federation/bridge-react
2
2
 
3
+ ## 0.21.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @module-federation/sdk@0.21.3
8
+ - @module-federation/bridge-shared@0.21.3
9
+
10
+ ## 0.21.2
11
+
12
+ ### Patch Changes
13
+
14
+ - e98133e: feat: Re-export the exports of the v18/v19/plugin from @module-federation/bridge-react in modernjs
15
+ - dc103ee: fix: support React Router v6 in peer dependencies
16
+
17
+ Update react-router peer dependency from "^7" to "^6 || ^7" to fix npm install failures for projects using React Router v6.
18
+
19
+ - @module-federation/sdk@0.21.2
20
+ - @module-federation/bridge-shared@0.21.2
21
+
3
22
  ## 0.21.1
4
23
 
5
24
  ### Patch Changes
@@ -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-CTmmXyx-.js");
4
+ const prefetch = require("./prefetch-Dix6uwVq.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-Bx_8GGd-.mjs";
2
2
  import { C, b, e, h, c, d, r } from "./utils-Bx_8GGd-.mjs";
3
- import { d as dataFetchFunction } from "./prefetch-D6cu5QUG.mjs";
4
- import { i, p } from "./prefetch-D6cu5QUG.mjs";
3
+ import { d as dataFetchFunction } from "./prefetch-UFt0gYqo.mjs";
4
+ import { i, p } from "./prefetch-UFt0gYqo.mjs";
5
5
  async function callDataFetch() {
6
6
  const dataFetch = globalThis[DATA_FETCH_FUNCTION];
7
7
  if (dataFetch) {
package/dist/index.cjs.js CHANGED
@@ -6,10 +6,10 @@ const index = require("./index-DRSBaSu3.js");
6
6
  const React = require("react");
7
7
  const ReactRouterDOM = require("react-router-dom");
8
8
  const plugin = require("./plugin.cjs.js");
9
- const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-IOan5uEb.js");
9
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CJ6crgHc.js");
10
10
  const lazyUtils = require("./utils-tM9yE73c.js");
11
11
  const dataFetchUtils = require("./data-fetch-utils.cjs.js");
12
- const prefetch = require("./prefetch-CTmmXyx-.js");
12
+ const prefetch = require("./prefetch-Dix6uwVq.js");
13
13
  function _interopNamespaceDefault(e2) {
14
14
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
15
15
  if (e2) {
package/dist/index.es.js CHANGED
@@ -4,10 +4,10 @@ import { L as LoggerInstance, p as pathJoin, g as getRootDomDefaultClassName } f
4
4
  import React__default, { forwardRef, useContext, useState, useEffect, useRef } from "react";
5
5
  import * as ReactRouterDOM from "react-router-dom";
6
6
  import { federationRuntime } from "./plugin.es.js";
7
- import { b, a, c, l } from "./lazy-load-component-plugin-ZkRCYTos.mjs";
7
+ import { b, a, c, l } from "./lazy-load-component-plugin-DQBdHtdq.mjs";
8
8
  import { C, b as b2, E, e, h, c as c2, d, r, s } from "./utils-Bx_8GGd-.mjs";
9
9
  import { callDataFetch } from "./data-fetch-utils.es.js";
10
- import { p } from "./prefetch-D6cu5QUG.mjs";
10
+ import { p } from "./prefetch-UFt0gYqo.mjs";
11
11
  function createReact16Or17Root(container) {
12
12
  return {
13
13
  render(children) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const prefetch = require("./prefetch-CTmmXyx-.js");
2
+ const prefetch = require("./prefetch-Dix6uwVq.js");
3
3
  const lazyUtils = require("./utils-tM9yE73c.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-D6cu5QUG.mjs";
1
+ import { i as injectDataFetch, p as prefetch } from "./prefetch-UFt0gYqo.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, a as loadDataFetchModule, M as MF_DATA_FETCH_STATUS, g 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-Bx_8GGd-.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-IOan5uEb.js");
4
- require("./prefetch-CTmmXyx-.js");
3
+ const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CJ6crgHc.js");
4
+ require("./prefetch-Dix6uwVq.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-ZkRCYTos.mjs";
2
- import "./prefetch-D6cu5QUG.mjs";
1
+ import { l, l as l2 } from "./lazy-load-component-plugin-DQBdHtdq.mjs";
2
+ import "./prefetch-UFt0gYqo.mjs";
3
3
  export {
4
4
  l as default,
5
5
  l2 as lazyLoadComponentPlugin
@@ -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.21.1";
214
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.21.3";
215
215
  }
216
216
  }
217
217
  function getInfoWithoutType(target, key) {
@@ -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.21.1";
213
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.21.3";
214
214
  }
215
215
  }
216
216
  function getInfoWithoutType(target, key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -39,7 +39,7 @@
39
39
  "./plugin": {
40
40
  "types": "./dist/plugin.d.ts",
41
41
  "import": "./dist/plugin.es.js",
42
- "require": "./dist/plugin.es.js"
42
+ "require": "./dist/plugin.cjs.js"
43
43
  },
44
44
  "./router-v5": {
45
45
  "types": "./dist/router-v5.d.ts",
@@ -81,7 +81,28 @@
81
81
  "typesVersions": {
82
82
  "*": {
83
83
  ".": [
84
- "./dist/types/index.d.ts"
84
+ "./dist/index.d.ts"
85
+ ],
86
+ "v18": [
87
+ "./dist/v18.d.ts"
88
+ ],
89
+ "v19": [
90
+ "./dist/v19.d.ts"
91
+ ],
92
+ "router": [
93
+ "./dist/router.d.ts"
94
+ ],
95
+ "plugin": [
96
+ "./dist/plugin.d.ts"
97
+ ],
98
+ "router-v5": [
99
+ "./dist/router-v5.d.ts"
100
+ ],
101
+ "router-v6": [
102
+ "./dist/router-v6.d.ts"
103
+ ],
104
+ "router-v7": [
105
+ "./dist/router-v7.d.ts"
85
106
  ],
86
107
  "lazy-load-component-plugin": [
87
108
  "./dist/lazy-load-component-plugin.d.ts"
@@ -100,14 +121,14 @@
100
121
  "dependencies": {
101
122
  "react-error-boundary": "^4.1.2",
102
123
  "lru-cache": "^10.4.3",
103
- "@module-federation/sdk": "0.21.1",
104
- "@module-federation/bridge-shared": "0.21.1"
124
+ "@module-federation/bridge-shared": "0.21.3",
125
+ "@module-federation/sdk": "0.21.3"
105
126
  },
106
127
  "peerDependencies": {
107
128
  "react": ">=16.9.0",
108
129
  "react-dom": ">=16.9.0",
109
130
  "react-router-dom": "^4 || ^5 || ^6 || ^7",
110
- "react-router": "^7"
131
+ "react-router": "^6 || ^7"
111
132
  },
112
133
  "peerDependenciesMeta": {
113
134
  "react-router-dom": {
@@ -130,11 +151,11 @@
130
151
  "react-router-dom": "6.22.3",
131
152
  "react-router": "7.9.4",
132
153
  "typescript": "^5.2.2",
133
- "vite": "^5.4.20",
154
+ "vite": "^5.4.21",
134
155
  "vite-plugin-dts": "^4.3.0",
135
- "hono": "3.12.12",
136
- "@module-federation/runtime-core": "0.21.1",
137
- "@module-federation/runtime": "0.21.1"
156
+ "hono": "4.10.3",
157
+ "@module-federation/runtime-core": "0.21.3",
158
+ "@module-federation/runtime": "0.21.3"
138
159
  },
139
160
  "scripts": {
140
161
  "dev": "vite",