@module-federation/utilities 3.1.101 → 3.1.102
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/README.md +10 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @module-federation/utilities
|
|
2
2
|
|
|
3
|
-
For warning
|
|
4
|
-
|
|
5
|
-
This library was generated with [Nx](https://nx.dev).
|
|
3
|
+
For warning: [`@module-federation/runtime`](https://module-federation.io/guide/basic/runtime/runtime.html) is recommended as a replacement.
|
|
6
4
|
|
|
7
5
|
## Building
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
```bash
|
|
8
|
+
pnpm --filter @module-federation/utilities run build
|
|
9
|
+
```
|
|
10
10
|
|
|
11
11
|
## Running unit tests
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```bash
|
|
14
|
+
pnpm --filter @module-federation/utilities run test
|
|
15
|
+
```
|
|
14
16
|
|
|
15
17
|
## React utilities
|
|
16
18
|
|
|
17
19
|
---
|
|
18
20
|
|
|
19
|
-
`
|
|
21
|
+
`FederationBoundary`
|
|
20
22
|
|
|
21
23
|
A component wrapper that provides a fallback for safe imports if something were to fail when grabbing a module off of a remote host.
|
|
22
24
|
|
|
@@ -70,7 +72,7 @@ importRemote({
|
|
|
70
72
|
);
|
|
71
73
|
|
|
72
74
|
// --
|
|
73
|
-
// If it's
|
|
75
|
+
// If it's an ESM module:
|
|
74
76
|
// --
|
|
75
77
|
const Bar = lazy(() => importRemote({ url: 'http://localhost:3001', scope: 'Foo', module: 'Bar', esm: true }));
|
|
76
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/utilities",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.102",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/esm/index.mjs",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"rsbuild-plugin-publint": "^0.2.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@module-federation/sdk": "2.
|
|
26
|
+
"@module-federation/sdk": "2.9.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": "^16 || ^17 || ^18",
|