Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/bridge-react

Package Overview
Dependencies
Maintainers
0
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/bridge-react - npm Package Compare versions

Comparing version 0.0.0-next-20241218093627 to 0.0.0-next-20241224035007

7

CHANGELOG.md
# @module-federation/bridge-react
## 0.0.0-next-20241218093627
## 0.0.0-next-20241224035007
### Patch Changes
- @module-federation/sdk@0.0.0-next-20241218093627
- @module-federation/bridge-shared@0.0.0-next-20241218093627
- 85e7482: fix(bridge-react): change all logs from info to debug in all bridge packages
- @module-federation/sdk@0.0.0-next-20241224035007
- @module-federation/bridge-shared@0.0.0-next-20241224035007

@@ -10,0 +11,0 @@ ## 0.8.5

@@ -101,3 +101,3 @@ "use strict";

childToRender = React.createElement(FallbackComponent, props);
} else if (fallback === null || React.isValidElement(fallback)) {
} else if (fallback !== void 0) {
childToRender = fallback;

@@ -128,3 +128,3 @@ } else {

const RemoteApp2 = () => {
context.LoggerInstance.log(`RemoteAppWrapper RemoteApp props >>>`, { props });
context.LoggerInstance.debug(`RemoteAppWrapper RemoteApp props >>>`, { props });
const {

@@ -144,3 +144,3 @@ moduleName,

const providerInfoRef = React.useRef(null);
context.LoggerInstance.log(`RemoteAppWrapper instance from props >>>`, instance);
context.LoggerInstance.debug(`RemoteAppWrapper instance from props >>>`, instance);
React.useEffect(() => {

@@ -160,7 +160,7 @@ const renderTimeout = setTimeout(() => {

renderDom.current = rootRef.current;
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createRemoteComponent LazyComponent render >>>`,
renderProps
);
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createRemoteComponent LazyComponent hostInstance >>>`,

@@ -181,3 +181,3 @@ instance

if ((_a = providerInfoRef.current) == null ? void 0 : _a.destroy) {
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createRemoteComponent LazyComponent destroy >>>`,

@@ -262,3 +262,3 @@ { moduleName, basename, dom: renderDom.current }

}
context.LoggerInstance.log(`createRemoteComponent withRouterData >>>`, {
context.LoggerInstance.debug(`createRemoteComponent withRouterData >>>`, {
...props,

@@ -274,6 +274,9 @@ basename,

if (pathname !== "" && pathname !== location.pathname) {
context.LoggerInstance.log(`createRemoteComponent dispatchPopstateEnv >>>`, {
name: props.name,
pathname: location.pathname
});
context.LoggerInstance.debug(
`createRemoteComponent dispatchPopstateEnv >>>`,
{
name: props.name,
pathname: location.pathname
}
);
e();

@@ -294,3 +297,3 @@ }

return React.lazy(async () => {
context.LoggerInstance.log(`createRemoteComponent LazyComponent create >>>`, {
context.LoggerInstance.debug(`createRemoteComponent LazyComponent create >>>`, {
lazyComponent: info.loader,

@@ -302,3 +305,3 @@ exportName

const moduleName = m2 && m2[Symbol.for("mf_module_id")];
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createRemoteComponent LazyComponent loadRemote info >>>`,

@@ -326,3 +329,3 @@ { name: moduleName, module: m2, exportName }

} else {
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createRemoteComponent LazyComponent module not found >>>`,

@@ -378,3 +381,3 @@ { name: moduleName, module: m2, exportName }

const instance = plugin.federationRuntime.instance;
context.LoggerInstance.log(
context.LoggerInstance.debug(
`createBridgeComponent instance from props >>>`,

@@ -398,3 +401,3 @@ instance

var _a, _b, _c, _d, _e, _f;
context.LoggerInstance.log(`createBridgeComponent render Info`, info);
context.LoggerInstance.debug(`createBridgeComponent render Info`, info);
const {

@@ -441,3 +444,3 @@ moduleName,

var _a, _b, _c, _d, _e, _f;
context.LoggerInstance.log(`createBridgeComponent destroy Info`, {
context.LoggerInstance.debug(`createBridgeComponent destroy Info`, {
dom: info.dom

@@ -444,0 +447,0 @@ });

import * as React from "react";
import React__default, { createContext, Component, createElement, isValidElement, forwardRef, useRef, useEffect, useContext, useState } from "react";
import React__default, { createContext, Component, createElement, forwardRef, useRef, useEffect, useContext, useState } from "react";
import { L as LoggerInstance, g as getRootDomDefaultClassName, p as pathJoin, a as atLeastReact18, R as RouterContext } from "./context-CUbFnlO5.js";

@@ -82,3 +82,3 @@ import * as ReactRouterDOM from "react-router-dom";

childToRender = createElement(FallbackComponent, props);
} else if (fallback === null || isValidElement(fallback)) {
} else if (fallback !== void 0) {
childToRender = fallback;

@@ -109,3 +109,3 @@ } else {

const RemoteApp2 = () => {
LoggerInstance.log(`RemoteAppWrapper RemoteApp props >>>`, { props });
LoggerInstance.debug(`RemoteAppWrapper RemoteApp props >>>`, { props });
const {

@@ -125,3 +125,3 @@ moduleName,

const providerInfoRef = useRef(null);
LoggerInstance.log(`RemoteAppWrapper instance from props >>>`, instance);
LoggerInstance.debug(`RemoteAppWrapper instance from props >>>`, instance);
useEffect(() => {

@@ -141,7 +141,7 @@ const renderTimeout = setTimeout(() => {

renderDom.current = rootRef.current;
LoggerInstance.log(
LoggerInstance.debug(
`createRemoteComponent LazyComponent render >>>`,
renderProps
);
LoggerInstance.log(
LoggerInstance.debug(
`createRemoteComponent LazyComponent hostInstance >>>`,

@@ -162,3 +162,3 @@ instance

if ((_a = providerInfoRef.current) == null ? void 0 : _a.destroy) {
LoggerInstance.log(
LoggerInstance.debug(
`createRemoteComponent LazyComponent destroy >>>`,

@@ -243,3 +243,3 @@ { moduleName, basename, dom: renderDom.current }

}
LoggerInstance.log(`createRemoteComponent withRouterData >>>`, {
LoggerInstance.debug(`createRemoteComponent withRouterData >>>`, {
...props,

@@ -255,6 +255,9 @@ basename,

if (pathname !== "" && pathname !== location.pathname) {
LoggerInstance.log(`createRemoteComponent dispatchPopstateEnv >>>`, {
name: props.name,
pathname: location.pathname
});
LoggerInstance.debug(
`createRemoteComponent dispatchPopstateEnv >>>`,
{
name: props.name,
pathname: location.pathname
}
);
e();

@@ -275,3 +278,3 @@ }

return React__default.lazy(async () => {
LoggerInstance.log(`createRemoteComponent LazyComponent create >>>`, {
LoggerInstance.debug(`createRemoteComponent LazyComponent create >>>`, {
lazyComponent: info.loader,

@@ -283,3 +286,3 @@ exportName

const moduleName = m2 && m2[Symbol.for("mf_module_id")];
LoggerInstance.log(
LoggerInstance.debug(
`createRemoteComponent LazyComponent loadRemote info >>>`,

@@ -307,3 +310,3 @@ { name: moduleName, module: m2, exportName }

} else {
LoggerInstance.log(
LoggerInstance.debug(
`createRemoteComponent LazyComponent module not found >>>`,

@@ -359,3 +362,3 @@ { name: moduleName, module: m2, exportName }

const instance = federationRuntime.instance;
LoggerInstance.log(
LoggerInstance.debug(
`createBridgeComponent instance from props >>>`,

@@ -379,3 +382,3 @@ instance

var _a, _b, _c, _d, _e, _f;
LoggerInstance.log(`createBridgeComponent render Info`, info);
LoggerInstance.debug(`createBridgeComponent render Info`, info);
const {

@@ -422,3 +425,3 @@ moduleName,

var _a, _b, _c, _d, _e, _f;
LoggerInstance.log(`createBridgeComponent destroy Info`, {
LoggerInstance.debug(`createBridgeComponent destroy Info`, {
dom: info.dom

@@ -425,0 +428,0 @@ });

@@ -27,3 +27,3 @@ "use strict";

const routerContextProps = React.useContext(context.RouterContext) || {};
context.LoggerInstance.log(`WraperRouter info >>>`, {
context.LoggerInstance.debug(`WraperRouter info >>>`, {
...routerContextProps,

@@ -30,0 +30,0 @@ routerContextProps,

@@ -8,3 +8,3 @@ import React__default, { useContext } from "react";

const routerContextProps = useContext(RouterContext) || {};
LoggerInstance.log(`WraperRouter info >>>`, {
LoggerInstance.debug(`WraperRouter info >>>`, {
...routerContextProps,

@@ -11,0 +11,0 @@ routerContextProps,

@@ -27,3 +27,3 @@ "use strict";

const routerContextProps = React.useContext(context.RouterContext) || {};
context.LoggerInstance.log(`WraperRouter info >>>`, {
context.LoggerInstance.debug(`WraperRouter info >>>`, {
...routerContextProps,

@@ -54,3 +54,3 @@ routerContextProps,

const routers = router.routes;
context.LoggerInstance.log(`WraperRouterProvider info >>>`, {
context.LoggerInstance.debug(`WraperRouterProvider info >>>`, {
...routerContextProps,

@@ -57,0 +57,0 @@ routerContextProps,

@@ -8,3 +8,3 @@ import React__default, { useContext } from "react";

const routerContextProps = useContext(RouterContext) || {};
LoggerInstance.log(`WraperRouter info >>>`, {
LoggerInstance.debug(`WraperRouter info >>>`, {
...routerContextProps,

@@ -35,3 +35,3 @@ routerContextProps,

const routers = router.routes;
LoggerInstance.log(`WraperRouterProvider info >>>`, {
LoggerInstance.debug(`WraperRouterProvider info >>>`, {
...routerContextProps,

@@ -38,0 +38,0 @@ routerContextProps,

@@ -26,3 +26,3 @@ "use strict";

const routerContextProps = React.useContext(context.RouterContext) || {};
context.LoggerInstance.log(`WrapperRouter info >>>`, {
context.LoggerInstance.debug(`WrapperRouter info >>>`, {
...routerContextProps,

@@ -53,3 +53,3 @@ routerContextProps,

const routers = router.routes;
context.LoggerInstance.log(`WrapperRouterProvider info >>>`, {
context.LoggerInstance.debug(`WrapperRouterProvider info >>>`, {
...routerContextProps,

@@ -56,0 +56,0 @@ routerContextProps,

@@ -8,3 +8,3 @@ import React__default, { useContext } from "react";

const routerContextProps = useContext(RouterContext) || {};
LoggerInstance.log(`WrapperRouter info >>>`, {
LoggerInstance.debug(`WrapperRouter info >>>`, {
...routerContextProps,

@@ -35,3 +35,3 @@ routerContextProps,

const routers = router.routes;
LoggerInstance.log(`WrapperRouterProvider info >>>`, {
LoggerInstance.debug(`WrapperRouterProvider info >>>`, {
...routerContextProps,

@@ -38,0 +38,0 @@ routerContextProps,

{
"name": "@module-federation/bridge-react",
"version": "0.0.0-next-20241218093627",
"version": "0.0.0-next-20241224035007",
"publishConfig": {

@@ -48,5 +48,5 @@ "access": "public"

"@loadable/component": "^5.16.4",
"react-error-boundary": "^4.0.13",
"@module-federation/bridge-shared": "0.0.0-next-20241218093627",
"@module-federation/sdk": "0.0.0-next-20241218093627"
"react-error-boundary": "^4.1.2",
"@module-federation/bridge-shared": "0.0.0-next-20241224035007",
"@module-federation/sdk": "0.0.0-next-20241224035007"
},

@@ -72,3 +72,3 @@ "peerDependencies": {

"vite-plugin-dts": "^4.3.0",
"@module-federation/runtime": "0.0.0-next-20241218093627"
"@module-federation/runtime": "0.0.0-next-20241224035007"
},

@@ -75,0 +75,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc