@module-federation/bridge-react 0.0.0-next-20241106033151 → 0.0.0-next-20241106063644

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,11 +1,12 @@
1
1
  # @module-federation/bridge-react
2
2
 
3
- ## 0.0.0-next-20241106033151
3
+ ## 0.0.0-next-20241106063644
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - @module-federation/sdk@0.0.0-next-20241106033151
8
- - @module-federation/bridge-shared@0.0.0-next-20241106033151
7
+ - Updated dependencies [6db4c5f]
8
+ - @module-federation/sdk@0.0.0-next-20241106063644
9
+ - @module-federation/bridge-shared@0.0.0-next-20241106063644
9
10
 
10
11
  ## 0.7.0
11
12
 
@@ -29,8 +29,16 @@ var supportColor = () => {
29
29
  return supportsSubstitutions;
30
30
  }
31
31
  try {
32
- console.log("%c", "color:");
33
- supportsSubstitutions = true;
32
+ const testString = "color test";
33
+ const css = "color: red;";
34
+ const originalConsoleLog = console.log;
35
+ console.log = (...args) => {
36
+ if (args[0] === `%c${testString}` && args[1] === css) {
37
+ supportsSubstitutions = true;
38
+ }
39
+ };
40
+ console.log(`%c${testString}`, css);
41
+ console.log = originalConsoleLog;
34
42
  } catch (e) {
35
43
  supportsSubstitutions = false;
36
44
  }
@@ -28,8 +28,16 @@ var supportColor = () => {
28
28
  return supportsSubstitutions;
29
29
  }
30
30
  try {
31
- console.log("%c", "color:");
32
- supportsSubstitutions = true;
31
+ const testString = "color test";
32
+ const css = "color: red;";
33
+ const originalConsoleLog = console.log;
34
+ console.log = (...args) => {
35
+ if (args[0] === `%c${testString}` && args[1] === css) {
36
+ supportsSubstitutions = true;
37
+ }
38
+ };
39
+ console.log(`%c${testString}`, css);
40
+ console.log = originalConsoleLog;
33
41
  } catch (e) {
34
42
  supportsSubstitutions = false;
35
43
  }
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const context = require("./context-CefGbh9w.cjs");
4
+ const context = require("./context-BBLu8BlQ.cjs");
5
5
  const ReactRouterDOM = require("react-router-dom");
6
6
  const ReactDOM = require("react-dom");
7
7
  function _interopNamespaceDefault(e2) {
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React__default, { createContext, Component, createElement, isValidElement, forwardRef, useRef, useEffect, useContext, useState } from "react";
3
- import { L as LoggerInstance, p as pathJoin, a as atLeastReact18, R as RouterContext } from "./context-DnCWjvho.js";
3
+ import { L as LoggerInstance, p as pathJoin, a as atLeastReact18, R as RouterContext } from "./context-BcyT-d0V.js";
4
4
  import * as ReactRouterDOM from "react-router-dom";
5
5
  import ReactDOM from "react-dom";
6
6
  const ErrorBoundaryContext = createContext(null);
@@ -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 context = require("./context-CefGbh9w.cjs");
5
+ const context = require("./context-BBLu8BlQ.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 "./context-DnCWjvho.js";
3
+ import { R as RouterContext, L as LoggerInstance } from "./context-BcyT-d0V.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 = require("react-router-dom/dist/index.js");
5
- const context = require("./context-CefGbh9w.cjs");
5
+ const context = require("./context-BBLu8BlQ.cjs");
6
6
  function _interopNamespaceDefault(e) {
7
7
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
8
8
  if (e) {
@@ -1,7 +1,7 @@
1
1
  import React__default, { useContext } from "react";
2
2
  import * as ReactRouterDom from "react-router-dom/dist/index.js";
3
3
  export * from "react-router-dom/dist/index.js";
4
- import { R as RouterContext, L as LoggerInstance } from "./context-DnCWjvho.js";
4
+ import { R as RouterContext, L as LoggerInstance } from "./context-BcyT-d0V.js";
5
5
  function WraperRouter(props) {
6
6
  const { basename, ...propsRes } = props;
7
7
  const routerContextProps = useContext(RouterContext) || {};
@@ -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 context = require("./context-CefGbh9w.cjs");
5
+ const context = require("./context-BBLu8BlQ.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 "./context-DnCWjvho.js";
4
+ import { R as RouterContext, L as LoggerInstance } from "./context-BcyT-d0V.js";
5
5
  function WrapperRouter(props) {
6
6
  const { basename, ...propsRes } = props;
7
7
  const routerContextProps = useContext(RouterContext) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/bridge-react",
3
- "version": "0.0.0-next-20241106033151",
3
+ "version": "0.0.0-next-20241106063644",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -41,8 +41,8 @@
41
41
  "dependencies": {
42
42
  "@loadable/component": "^5.16.4",
43
43
  "react-error-boundary": "^4.0.13",
44
- "@module-federation/bridge-shared": "0.0.0-next-20241106033151",
45
- "@module-federation/sdk": "0.0.0-next-20241106033151"
44
+ "@module-federation/bridge-shared": "0.0.0-next-20241106063644",
45
+ "@module-federation/sdk": "0.0.0-next-20241106063644"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=16.9.0",