@softarc/native-federation-orchestrator 4.0.0 → 4.0.2
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
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
A lightweight **runtime micro frontend orchestrator** that loads micro frontends built with native federation into any web page. It can cache dependencies across page reloads, making it perfect for traditional server-rendered hosts (PHP, Java, Rails, etc.) that refresh on navigation.
|
|
6
6
|
|
|
7
|
+
[](https://github.com/native-federation/orchestrator/actions/workflows/verify-code.yaml)
|
|
8
|
+

|
|
9
|
+
|
|
7
10
|
> Read more in this in-depth article: [Migrating a stateful monolith to micro frontend architecture using native federation.](https://medium.com/@auke997/migrating-a-stateful-monolith-to-micro-frontends-using-native-federation-0572a1e181b4)
|
|
8
11
|
|
|
9
12
|
## Key Features
|
|
@@ -64,7 +67,7 @@ Get up and running in under 2 minutes:
|
|
|
64
67
|
</script>
|
|
65
68
|
|
|
66
69
|
<!-- Include the orchestrator runtime -->
|
|
67
|
-
<script src="https://unpkg.com/@softarc/native-federation-orchestrator@4.0.
|
|
70
|
+
<script src="https://unpkg.com/@softarc/native-federation-orchestrator@4.0.2/quickstart.mjs"></script>
|
|
68
71
|
</head>
|
|
69
72
|
<body>
|
|
70
73
|
<!-- Use your loaded components -->
|
|
@@ -82,7 +85,7 @@ Your micro frontends are now loaded and ready to use. The runtime handles the wh
|
|
|
82
85
|
|
|
83
86
|
```html
|
|
84
87
|
<!-- Development and quick testing -->
|
|
85
|
-
<script src="https://unpkg.com/@softarc/native-federation-orchestrator@4.0.
|
|
88
|
+
<script src="https://unpkg.com/@softarc/native-federation-orchestrator@4.0.2/quickstart.mjs"></script>
|
|
86
89
|
```
|
|
87
90
|
|
|
88
91
|
## Advanced Usage
|
|
@@ -124,6 +127,14 @@ const HeaderComponent = await loadRemoteModule('team/mfe2', './Header');
|
|
|
124
127
|
| [⚙️ Configuration](https://github.com/native-federation/orchestrator/blob/main/docs/config.md) | Complete configuration reference |
|
|
125
128
|
| [🔄 Version Resolution](https://github.com/native-federation/orchestrator/blob/main/docs/version-resolver.md) | How dependency conflicts are resolved |
|
|
126
129
|
|
|
130
|
+
## Example repositories
|
|
131
|
+
|
|
132
|
+
| Guide | Description |
|
|
133
|
+
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
134
|
+
| [📖 Vanilla JS/HTML host](https://github.com/Aukevanoost/native-federation-examples/tree/orchestrator) | Shows how the orchestrator can be used in a simple HTML page. |
|
|
135
|
+
| [📖 Angular host (native-federation v3)](https://github.com/Aukevanoost/native-federation-examples-ng) | Shows how the orchestrator can be used in an Angular monorepo using Native-federation v3. |
|
|
136
|
+
| [📖 Angular host (native-federation v4)](https://github.com/Aukevanoost/native-federation-examples-ng/tree/v4) | Shows how the orchestrator can be used in an Angular monorepo using Native-federation v4. |
|
|
137
|
+
|
|
127
138
|
## Native Federation Ecosystem
|
|
128
139
|
|
|
129
140
|
This library is part of the broader native federation
|
|
@@ -1552,7 +1552,7 @@ function createDetermineSharedExternals(config, ports) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
|
-
// node_modules/.pnpm/@softarc+native-federation@4.0.
|
|
1555
|
+
// node_modules/.pnpm/@softarc+native-federation@4.0.0_typescript@5.9.3/node_modules/@softarc/native-federation/src/lib/domain/core/build-notification-options.contract.js
|
|
1556
1556
|
var BuildNotificationType;
|
|
1557
1557
|
(function(BuildNotificationType2) {
|
|
1558
1558
|
BuildNotificationType2["COMPLETED"] = "federation-rebuild-complete";
|
|
@@ -1560,7 +1560,7 @@ var BuildNotificationType;
|
|
|
1560
1560
|
BuildNotificationType2["CANCELLED"] = "federation-rebuild-cancelled";
|
|
1561
1561
|
})(BuildNotificationType || (BuildNotificationType = {}));
|
|
1562
1562
|
|
|
1563
|
-
// node_modules/.pnpm/@softarc+native-federation@4.0.
|
|
1563
|
+
// node_modules/.pnpm/@softarc+native-federation@4.0.0_typescript@5.9.3/node_modules/@softarc/native-federation/src/lib/domain/core/chunk.js
|
|
1564
1564
|
var CHUNK_PREFIX = "@nf-internal";
|
|
1565
1565
|
function toChunkImport(fileName) {
|
|
1566
1566
|
if (fileName.startsWith("./")) {
|
|
@@ -1936,6 +1936,7 @@ var Optional = class _Optional {
|
|
|
1936
1936
|
constructor(item) {
|
|
1937
1937
|
this.item = item;
|
|
1938
1938
|
}
|
|
1939
|
+
item;
|
|
1939
1940
|
static of(item) {
|
|
1940
1941
|
return new _Optional(item);
|
|
1941
1942
|
}
|
|
@@ -2321,7 +2322,7 @@ var createModeConfig = (override) => {
|
|
|
2321
2322
|
} : {
|
|
2322
2323
|
strictRemoteEntry: override.strict?.strictRemoteEntry ?? false,
|
|
2323
2324
|
strictExternalCompatibility: override.strict?.strictExternalCompatibility ?? false,
|
|
2324
|
-
strictExternalSameVersionCompatibility: override.strict?.
|
|
2325
|
+
strictExternalSameVersionCompatibility: override.strict?.strictExternalSameVersionCompatibility ?? false,
|
|
2325
2326
|
strictExternalVersion: override.strict?.strictExternalVersion ?? false,
|
|
2326
2327
|
strictImportMap: override.strict?.strictImportMap ?? false
|
|
2327
2328
|
};
|