@module-federation/bridge-react 0.11.0 → 0.11.1
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 +8 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @module-federation/bridge-react
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 790bdea: fix(bridge-react): export DestroyParams and RenderParams types
|
|
8
|
+
- @module-federation/sdk@0.11.1
|
|
9
|
+
- @module-federation/bridge-shared@0.11.1
|
|
10
|
+
|
|
3
11
|
## 0.11.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare interface CreateRootOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* Parameters for the destroy function
|
|
22
22
|
*/
|
|
23
|
-
declare interface DestroyParams {
|
|
23
|
+
export declare interface DestroyParams {
|
|
24
24
|
moduleName: string;
|
|
25
25
|
dom: HTMLElement;
|
|
26
26
|
}
|
|
@@ -89,7 +89,7 @@ export declare interface RenderFnParams extends ProviderParams {
|
|
|
89
89
|
/**
|
|
90
90
|
* Parameters for the render function
|
|
91
91
|
*/
|
|
92
|
-
declare interface RenderParams {
|
|
92
|
+
export declare interface RenderParams {
|
|
93
93
|
moduleName?: string;
|
|
94
94
|
basename?: string;
|
|
95
95
|
memoryRoute?: {
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import React__default, { Component, createElement,
|
|
3
|
+
import React__default, { createContext, Component, createElement, forwardRef, useRef, useState, useEffect, useContext } from "react";
|
|
4
4
|
import { L as LoggerInstance, g as getRootDomDefaultClassName, p as pathJoin, R as RouterContext } from "./context-YcJWgOAv.js";
|
|
5
5
|
import * as ReactRouterDOM from "react-router-dom";
|
|
6
6
|
import { federationRuntime } from "./plugin.es.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@loadable/component": "^5.16.4",
|
|
48
48
|
"react-error-boundary": "^4.1.2",
|
|
49
|
-
"@module-federation/bridge-shared": "0.11.
|
|
50
|
-
"@module-federation/sdk": "0.11.
|
|
49
|
+
"@module-federation/bridge-shared": "0.11.1",
|
|
50
|
+
"@module-federation/sdk": "0.11.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=16.9.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript": "^5.2.2",
|
|
69
69
|
"vite": "^5.4.12",
|
|
70
70
|
"vite-plugin-dts": "^4.3.0",
|
|
71
|
-
"@module-federation/runtime": "0.11.
|
|
71
|
+
"@module-federation/runtime": "0.11.1"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "vite",
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export { createRemoteComponent } from './remote/create';
|
|
2
2
|
export { createBridgeComponent } from './provider/create';
|
|
3
|
-
export type {
|
|
3
|
+
export type {
|
|
4
|
+
ProviderParams,
|
|
5
|
+
RenderFnParams,
|
|
6
|
+
DestroyParams,
|
|
7
|
+
RenderParams,
|
|
8
|
+
} from './types';
|