21.1.0
What changed?
The v4 release allows us to do some (really needed) internal refactoring. We broke the ecosystem up into 3 repositories:
- https://github.com/native-federation/native-federation-core
- https://github.com/native-federation/orchestrator
- https://github.com/native-federation/angular-adapter
Secondly, the new major version allowed us to modernize the stack to a more up-to-date setup! So we moved some things around!
- The new orchestrator is now supported! It still needs a bit of love (no SSE yet) but it works flawless with the NF ecosystem. And it supports dependency sharing 🎉
- All packages are now fully ESM! This is a breaking change in the
federation.config.js, check the new syntax here: https://github.com/Aukevanoost/native-federation-examples-ng/blob/nf-beta/projects/mfe1/federation.config.js - We've moved around some types, They're all still there but some might be renamed:
BuildAdapterOptions->NFBuildAdapterOptionsBuildAdapter->NFBuildAdapterBuildResult->NFBuildAdapterResult- Renamed all config objects to be a bit clearer: Check the diff
- We updated the runtime
processRemoteInfos->fetchAndRegisterRemotes - the core library is not dependent on the runtime anymore, but the other way around. Types from the runtime have been moved to core.
- We added some fine-grained secondary entrypoints/barrel files to the core library like
/domainfor all interfaces and contracts and/configfor all "config" related services. - All the renames and contract changes can be found in the commits native-federation/native-federation-core@ce1f64c and native-federation/native-federation-core@acbf811
- Removed the deprecated "transient" flag. native-federation/native-federation-core@91a1040
Temporary new package
To avoid interference with the current v3 version of native-federation, we've opened a temporary v4 package where we will release the changes on the Angular adapter:
https://www.npmjs.com/package/@angular-architects/native-federation-v4
We need feedback!
We uploaded some versions and new libraries to support the v4 ecosystem! Please play around with it, try different things. For now we only uploaded the core libraries but more will follow! share your findings and Join the discussion!
"devDependencies": {
"@angular-architects/native-federation-v4": "^21.1.0", // To test the Angular builder
"@softarc/native-federation-orchestrator": "4.0.0-RC1", // The new orchestrator!
"@softarc/native-federation-runtime": "4.0.0-RC1", // The current runtime in v4
"@softarc/native-federation": "4.0.0-RC1", // Native federation v4
}However, you can also see an example pre-built repo here: https://github.com/Aukevanoost/native-federation-examples-ng/tree/nf-beta