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
344
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-20240723065243 to 0.0.0-next-20240723095610

4

CHANGELOG.md
# @module-federation/bridge-react
## 0.0.0-next-20240723065243
## 0.0.0-next-20240723095610

@@ -8,3 +8,3 @@ ### Patch Changes

- chore: bump next
- @module-federation/bridge-shared@0.0.0-next-20240723065243
- @module-federation/bridge-shared@0.0.0-next-20240723095610

@@ -11,0 +11,0 @@ ## 0.2.6

@@ -285,4 +285,4 @@ "use strict";

function createRemoteComponent(info) {
const LazyComponent = createLazyRemoteComponent(info);
return React.forwardRef(function(props, ref) {
const LazyComponent = createLazyRemoteComponent(info);
return /* @__PURE__ */ React.createElement(ErrorBoundary, { FallbackComponent: info.fallback }, /* @__PURE__ */ React.createElement(React.Suspense, { fallback: info.loading }, /* @__PURE__ */ React.createElement(LazyComponent, { ...props, ref })));

@@ -289,0 +289,0 @@ });

@@ -5,4 +5,7 @@ import { ComponentType } from 'react';

import { ErrorInfo } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { PropsWithChildren } from 'react';
import { PropsWithoutRef } from 'react';
import * as React_2 from 'react';
import { RefAttributes } from 'react';

@@ -23,6 +26,3 @@ export declare function createBridgeComponent<T>(bridgeInfo: ProviderFnParams<T>): () => {

export?: E;
}): default_2.ForwardRefExoticComponent<default_2.PropsWithoutRef<{
basename?: ProviderParams["basename"];
memoryRoute?: ProviderParams["memoryRoute"];
} & ("__BRIDGE_FN__" extends keyof (T[E] extends (...args: any) => any ? ReturnType<T[E]> : never) ? (T[E] extends (...args: any) => any ? ReturnType<T[E]> : never)["__BRIDGE_FN__"] extends (...args: any) => any ? Parameters<(T[E] extends (...args: any) => any ? ReturnType<T[E]> : never)["__BRIDGE_FN__"]>[0] : {} : {})> & default_2.RefAttributes<unknown>>;
}): ForwardRefExoticComponent<PropsWithoutRef<RemoteProps> & RefAttributes<HTMLElement | HTMLDivElement>>;

@@ -66,2 +66,8 @@ declare type ErrorBoundaryPropsWithComponent = ErrorBoundarySharedProps & {

declare type RemoteProps = {
basename?: ProviderParams['basename'];
memoryRoute?: ProviderParams['memoryRoute'];
[key: string]: any;
};
export declare interface RenderFnParams extends ProviderParams {

@@ -68,0 +74,0 @@ dom: HTMLElement;

@@ -266,4 +266,4 @@ import * as React from "react";

function createRemoteComponent(info) {
const LazyComponent = createLazyRemoteComponent(info);
return forwardRef(function(props, ref) {
const LazyComponent = createLazyRemoteComponent(info);
return /* @__PURE__ */ React__default.createElement(ErrorBoundary, { FallbackComponent: info.fallback }, /* @__PURE__ */ React__default.createElement(React__default.Suspense, { fallback: info.loading }, /* @__PURE__ */ React__default.createElement(LazyComponent, { ...props, ref })));

@@ -270,0 +270,0 @@ });

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

@@ -38,3 +38,3 @@ "access": "public"

"react-error-boundary": "^4.0.13",
"@module-federation/bridge-shared": "0.0.0-next-20240723065243"
"@module-federation/bridge-shared": "0.0.0-next-20240723095610"
},

@@ -41,0 +41,0 @@ "peerDependencies": {

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