@module-federation/bridge-react 0.6.9 → 0.6.11
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 +13 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/router-v6.cjs.js +2 -1
- package/dist/router-v6.es.js +2 -1
- package/package.json +2 -2
- package/src/router-v6.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @module-federation/bridge-react
|
|
2
2
|
|
|
3
|
+
## 0.6.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @module-federation/bridge-shared@0.6.11
|
|
8
|
+
|
|
9
|
+
## 0.6.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 8a77291: fix(bridge-react): add default basename for WraperRouterProvider
|
|
14
|
+
- @module-federation/bridge-shared@0.6.10
|
|
15
|
+
|
|
3
16
|
## 0.6.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -177,7 +177,7 @@ const RemoteAppWrapper = React.forwardRef(function(props, ref) {
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
};
|
|
180
|
-
RemoteApp2["__APP_VERSION__"] = "0.6.
|
|
180
|
+
RemoteApp2["__APP_VERSION__"] = "0.6.11";
|
|
181
181
|
return /* @__PURE__ */ React.createElement(RemoteApp2, null);
|
|
182
182
|
});
|
|
183
183
|
function withRouterData(WrappedComponent) {
|
package/dist/index.es.js
CHANGED
|
@@ -158,7 +158,7 @@ const RemoteAppWrapper = forwardRef(function(props, ref) {
|
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
};
|
|
161
|
-
RemoteApp2["__APP_VERSION__"] = "0.6.
|
|
161
|
+
RemoteApp2["__APP_VERSION__"] = "0.6.11";
|
|
162
162
|
return /* @__PURE__ */ React__default.createElement(RemoteApp2, null);
|
|
163
163
|
});
|
|
164
164
|
function withRouterData(WrappedComponent) {
|
package/dist/router-v6.cjs.js
CHANGED
|
@@ -65,7 +65,8 @@ function WraperRouterProvider(props) {
|
|
|
65
65
|
return /* @__PURE__ */ React.createElement(RouterProvider, { router: MemeoryRouterInstance });
|
|
66
66
|
} else {
|
|
67
67
|
const BrowserRouterInstance = createBrowserRouter(routers, {
|
|
68
|
-
|
|
68
|
+
// In host app, the routerContextProps is {}, so we should use router.basename as fallback
|
|
69
|
+
basename: routerContextProps.basename || router.basename,
|
|
69
70
|
future: router.future,
|
|
70
71
|
window: router.window
|
|
71
72
|
});
|
package/dist/router-v6.es.js
CHANGED
|
@@ -47,7 +47,8 @@ function WraperRouterProvider(props) {
|
|
|
47
47
|
return /* @__PURE__ */ React__default.createElement(RouterProvider, { router: MemeoryRouterInstance });
|
|
48
48
|
} else {
|
|
49
49
|
const BrowserRouterInstance = createBrowserRouter(routers, {
|
|
50
|
-
|
|
50
|
+
// In host app, the routerContextProps is {}, so we should use router.basename as fallback
|
|
51
|
+
basename: routerContextProps.basename || router.basename,
|
|
51
52
|
future: router.future,
|
|
52
53
|
window: router.window
|
|
53
54
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@loadable/component": "^5.16.4",
|
|
37
37
|
"react-error-boundary": "^4.0.13",
|
|
38
|
-
"@module-federation/bridge-shared": "0.6.
|
|
38
|
+
"@module-federation/bridge-shared": "0.6.11"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.9.0",
|
package/src/router-v6.tsx
CHANGED
|
@@ -60,7 +60,8 @@ function WraperRouterProvider(
|
|
|
60
60
|
return <RouterProvider router={MemeoryRouterInstance} />;
|
|
61
61
|
} else {
|
|
62
62
|
const BrowserRouterInstance = createBrowserRouter(routers, {
|
|
63
|
-
|
|
63
|
+
// In host app, the routerContextProps is {}, so we should use router.basename as fallback
|
|
64
|
+
basename: routerContextProps.basename || router.basename,
|
|
64
65
|
future: router.future,
|
|
65
66
|
window: router.window,
|
|
66
67
|
});
|