@module-federation/bridge-react 0.14.2 → 0.15.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @module-federation/bridge-react
2
2
 
3
+ ## 0.15.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @module-federation/sdk@0.15.0
8
+ - @module-federation/bridge-shared@0.15.0
9
+
10
+ ## 0.14.3
11
+
12
+ ### Patch Changes
13
+
14
+ - @module-federation/sdk@0.14.3
15
+ - @module-federation/bridge-shared@0.14.3
16
+
3
17
  ## 0.14.2
4
18
 
5
19
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const React = require("react");
3
- const index = require("./index-BisLFgHe.cjs");
3
+ const index = require("./index-Cv3p6r66.cjs");
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,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-DjPznVSC.js";
3
+ import { L as LoggerInstance, R as RouterContext } from "./index-D4yt7Udv.js";
4
4
  import { federationRuntime } from "./plugin.es.js";
5
5
  const ErrorBoundaryContext = createContext(null);
6
6
  const initialState = {
@@ -2,14 +2,13 @@
2
2
  const React = require("react");
3
3
  const RouterContext = React.createContext(null);
4
4
  const BROWSER_LOG_KEY = "FEDERATION_DEBUG";
5
- const BROWSER_LOG_VALUE = "1";
6
5
  function isBrowserEnv() {
7
6
  return typeof window !== "undefined" && typeof window.document !== "undefined";
8
7
  }
9
8
  function isBrowserDebug() {
10
9
  try {
11
10
  if (isBrowserEnv() && window.localStorage) {
12
- return localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE;
11
+ return Boolean(localStorage.getItem(BROWSER_LOG_KEY));
13
12
  }
14
13
  } catch (error) {
15
14
  return false;
@@ -1,14 +1,13 @@
1
1
  import React__default from "react";
2
2
  const RouterContext = React__default.createContext(null);
3
3
  const BROWSER_LOG_KEY = "FEDERATION_DEBUG";
4
- const BROWSER_LOG_VALUE = "1";
5
4
  function isBrowserEnv() {
6
5
  return typeof window !== "undefined" && typeof window.document !== "undefined";
7
6
  }
8
7
  function isBrowserDebug() {
9
8
  try {
10
9
  if (isBrowserEnv() && window.localStorage) {
11
- return localStorage.getItem(BROWSER_LOG_KEY) === BROWSER_LOG_VALUE;
10
+ return Boolean(localStorage.getItem(BROWSER_LOG_KEY));
12
11
  }
13
12
  } catch (error) {
14
13
  return false;
package/dist/index.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const bridgeBase = require("./bridge-base-C1n4ztAl.cjs");
3
+ const bridgeBase = require("./bridge-base-BBH982Tz.cjs");
4
4
  const ReactDOM = require("react-dom");
5
5
  const React = require("react");
6
- const index = require("./index-BisLFgHe.cjs");
6
+ const index = require("./index-Cv3p6r66.cjs");
7
7
  const ReactRouterDOM = require("react-router-dom");
8
8
  const plugin = require("./plugin.cjs.js");
9
9
  function _interopNamespaceDefault(e2) {
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-BQKWoswk.js";
1
+ import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-P6pEjY1q.js";
2
2
  import ReactDOM from "react-dom";
3
3
  import React__default, { forwardRef, useRef, useState, useEffect, useContext } from "react";
4
- import { L as LoggerInstance, g as getRootDomDefaultClassName, p as pathJoin } from "./index-DjPznVSC.js";
4
+ import { L as LoggerInstance, g as getRootDomDefaultClassName, p as pathJoin } from "./index-D4yt7Udv.js";
5
5
  import * as ReactRouterDOM from "react-router-dom";
6
6
  import { federationRuntime } from "./plugin.es.js";
7
7
  function createReact16Or17Root(container) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const ReactRouterDom$1 = require("react-router-dom/index.js");
5
- const index = require("./index-BisLFgHe.cjs");
5
+ const index = require("./index-Cv3p6r66.cjs");
6
6
  const ReactRouterDom = require("react-router-dom/index.js");
7
7
  function _interopNamespaceDefault(e) {
8
8
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -1,6 +1,6 @@
1
1
  import React__default, { useContext } from "react";
2
2
  import * as ReactRouterDom$1 from "react-router-dom/index.js";
3
- import { R as RouterContext, L as LoggerInstance } from "./index-DjPznVSC.js";
3
+ import { R as RouterContext, L as LoggerInstance } from "./index-D4yt7Udv.js";
4
4
  export * from "react-router-dom/index.js";
5
5
  function WraperRouter(props) {
6
6
  const { basename, ...propsRes } = props;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const ReactRouterDom$1 = require("react-router-dom/dist/index.js");
5
- const index = require("./index-BisLFgHe.cjs");
5
+ const index = require("./index-Cv3p6r66.cjs");
6
6
  const ReactRouterDom = require("react-router-dom/dist/index.js");
7
7
  function _interopNamespaceDefault(e) {
8
8
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -1,6 +1,6 @@
1
1
  import React__default, { useContext } from "react";
2
2
  import * as ReactRouterDom$1 from "react-router-dom/dist/index.js";
3
- import { R as RouterContext, L as LoggerInstance } from "./index-DjPznVSC.js";
3
+ import { R as RouterContext, L as LoggerInstance } from "./index-D4yt7Udv.js";
4
4
  export * from "react-router-dom/dist/index.js";
5
5
  function WraperRouter(props) {
6
6
  const { basename, ...propsRes } = props;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const ReactRouterDom = require("react-router-dom/");
5
- const index = require("./index-BisLFgHe.cjs");
5
+ const index = require("./index-Cv3p6r66.cjs");
6
6
  function _interopNamespaceDefault(e) {
7
7
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
8
8
  if (e) {
package/dist/router.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React__default, { useContext } from "react";
2
2
  import * as ReactRouterDom from "react-router-dom/";
3
3
  export * from "react-router-dom/";
4
- import { R as RouterContext, L as LoggerInstance } from "./index-DjPznVSC.js";
4
+ import { R as RouterContext, L as LoggerInstance } from "./index-D4yt7Udv.js";
5
5
  function WrapperRouter(props) {
6
6
  const { basename, ...propsRes } = props;
7
7
  const routerContextProps = useContext(RouterContext) || {};
package/dist/v18.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const client = require("react-dom/client");
4
- const bridgeBase = require("./bridge-base-C1n4ztAl.cjs");
4
+ const bridgeBase = require("./bridge-base-BBH982Tz.cjs");
5
5
  function createReact18Root(container, options) {
6
6
  return client.createRoot(container, options);
7
7
  }
package/dist/v18.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRoot } from "react-dom/client";
2
- import { c as createBaseBridgeComponent } from "./bridge-base-BQKWoswk.js";
2
+ import { c as createBaseBridgeComponent } from "./bridge-base-P6pEjY1q.js";
3
3
  function createReact18Root(container, options) {
4
4
  return createRoot(container, options);
5
5
  }
package/dist/v19.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const client = require("react-dom/client");
4
- const bridgeBase = require("./bridge-base-C1n4ztAl.cjs");
4
+ const bridgeBase = require("./bridge-base-BBH982Tz.cjs");
5
5
  function createReact19Root(container, options) {
6
6
  return client.createRoot(container, options);
7
7
  }
package/dist/v19.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRoot } from "react-dom/client";
2
- import { c as createBaseBridgeComponent } from "./bridge-base-BQKWoswk.js";
2
+ import { c as createBaseBridgeComponent } from "./bridge-base-P6pEjY1q.js";
3
3
  function createReact19Root(container, options) {
4
4
  return createRoot(container, options);
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -55,8 +55,8 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "react-error-boundary": "^4.1.2",
58
- "@module-federation/bridge-shared": "0.14.2",
59
- "@module-federation/sdk": "0.14.2"
58
+ "@module-federation/bridge-shared": "0.15.0",
59
+ "@module-federation/sdk": "0.15.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": ">=16.9.0",
@@ -77,7 +77,7 @@
77
77
  "typescript": "^5.2.2",
78
78
  "vite": "^5.4.18",
79
79
  "vite-plugin-dts": "^4.3.0",
80
- "@module-federation/runtime": "0.14.2"
80
+ "@module-federation/runtime": "0.15.0"
81
81
  },
82
82
  "scripts": {
83
83
  "dev": "vite",