Releases: angular-architects/module-federation-plugin
21.2.3
What's Changed
- fix: define ngDevMode in dev builds to prevent ReferenceError by @rogeru in #1089
- fix: downgraded ESbuild to 0.27.3 because of infinite loop bug by @Aukevanoost in #1092
New Contributors
Full Changelog: 21.2.2...21.2.3
21.2.2
Maintenance update
What's Changed
- fix(nf): Added continuous to nx project-related schematic by @Aukevanoost in #1085
- feat: Added support for shared-mapping glob patterns by @Aukevanoost in #1083
- chore: Updated @module-federation to v2 by @Aukevanoost in #1086
Full Changelog: 21.2.1...21.2.2
21.2.1
What's Changed
- chore(1078): Updated vulnerable dependencies by @Aukevanoost in #1079
Full Changelog: 21.2.0...21.2.1
21.2.0
Summary
Most changes were native-federation, but this time module federation was also bumped to Angular 21.2.0
What's Changed
- feat: provide an option to load the
remoteEntry.jsonvia a deploy url by @WvKuipersVisma in #1062 - fix(nf): fix typo in warning message for package usage by @adanyc in #1077
- CSP Nonce by @IosebKoplatadze in #936
- feat(mf-tools): enhance connectRouter to support baseHref for URL navigation by @IosebKoplatadze in #935
New Contributors
- @WvKuipersVisma made their first contribution in #1062
- @adanyc made their first contribution in #1077
- @IosebKoplatadze made their first contribution in #936
Full Changelog: 21.1.1...21.2.0
21.1.1
What's Changed
- fix(native-federation): Fix failing build caused by concurrent access to externals metadata. by @fzankl in #1058
- fix(native-federation): fix i18n translation for lazy chunks and Windows #1055 by @yassinesos in #1057
- chore: Updated dependencies by @Aukevanoost in #1060
New Contributors
- @fzankl made their first contribution in #1058
- @yassinesos made their first contribution in #1057
Full Changelog: 21.1.0...21.1.1
20.3.1
Full Changelog: 20.3.0...20.3.1
20.3.0
Backwards compatible release for Angular 20.
What's Changed
- support also object config from angular.json for locales by @ValentinBossi in #931
- chore(nf): fix double negation lint error in builder under nf lib by @JGhignatti in #966
- fix(nf): add support for tailwind 4 with only postcssconfig file by @JGhignatti in #965
- feat(nf): forward serve port for native federation lib by @JGhignatti in #967
- fix(nf): Added debug timers by @Aukevanoost in #972
- fix(skip-list): fixed the handling and passing of the skip list by @asollberger in #902
- Fix(nf): Re-enabled externals cache by @Aukevanoost in #974
- feat(native-federation): Add .mjs to esbuild resolveExtensions by @yossiyedid in #987
- chore: Update dependencies by @Aukevanoost in #976
- fix: Formatting issues by @Aukevanoost in #998
- fix(all): Nx format files by @Aukevanoost in #999
- fix(nf): Added AbortController to runBuilder to cancel previous builds by @Aukevanoost in #986
- feat(nf): Performance boost - cache external artifacts with checksum by @Aukevanoost in #981
- nf(fix): Add support for external package.json wildcards by @Aukevanoost in #963
- fix(nf): Support for windows paths by @Aukevanoost in #1008
- fix(native-federation): Windows heap crash by @Aukevanoost in #1017
- PostCSS error after Angular v21 and plugins relative to config file by @JGhignatti in #1022
- fix: Fix tests in error by @yatho in #997
- feat(native-federation): including sass on styleOptions by @rribeiro93 in #1018
- fix(nf): exhaustive secondary entrypoint resolving by @Aukevanoost in #1013
- docs,testing(native-federation-runtime): adds mvp of testing with vitest and playwright to native-federation-runtime by @aramirezj in #1004
- Fix: Separate dev and production metadata files to prevent cache overwrites by @AndreasLoukakis in #1030
- fix(nf-runtime): Added license field to package.json by @Aukevanoost in #1035
- fix: Reverted breaking method name by @Aukevanoost in #1038
- fix(nf-runtime): Add trusted types support by @ChrisFWood in #1037
- Rename angularLocale from mjs to js. by @Aukevanoost in #1040
- fix: Added legacy support for shareAngularLocales by @Aukevanoost in #1041
- fix(native-federation): Fix failing build caused by concurrent access to externals metadata. by @fzankl in #1058
- fix(native-federation): fix i18n translation for lazy chunks and Windows #1055 by @yassinesos in #1057
New Contributors
- @yossiyedid made their first contribution in #987
- @yatho made their first contribution in #997
- @rribeiro93 made their first contribution in #1018
- @AndreasLoukakis made their first contribution in #1030
- @ChrisFWood made their first contribution in #1037
- @fzankl made their first contribution in #1058
- @yassinesos made their first contribution in #1057
Full Changelog: 20.1.7...20.3.0
21.1.0
Released versions:
@angular-architects/native-federation: 21.1.0
@softarc/native-federation: 3.5.1
@softarc/native-federation-runtime: 3.5.1
@softarc/native-federation-node: 3.5.1
@softarc/native-federation-esbuild: 3.5.1
Heads up: We are moving!
An official message will come soon, but we're moving to https://github.com/native-federation!
What's Changed
- Fix: Separate dev and production metadata files to prevent cache overwrites by @AndreasLoukakis in #1030
- fix(nf-runtime): Added license field to package.json by @Aukevanoost in #1035
- fix: Reverted breaking method name by @Aukevanoost in #1038
- fix(nf-runtime): Add trusted types support by @ChrisFWood in #1037
- Rename angularLocale from mjs to js. by @Aukevanoost in #1040
- fix: Added legacy support for shareAngularLocales by @Aukevanoost in #1041
New Contributors
- @AndreasLoukakis made their first contribution in #1030
- @ChrisFWood made their first contribution in #1037
Full Changelog: 21.0.4...21.1.0
21.0.4
This is a bigger release because it contains internal changes, feel free to check the README for all the new features!
What's Changed
- PostCSS error after Angular v21 and plugins relative to config file by @JGhignatti in #1022
- fix: Fix tests in error by @yatho in #997
- feat(native-federation): including sass on styleOptions by @rribeiro93 in #1018
- fix(nf): exhaustive secondary entrypoint resolving by @Aukevanoost in #1013
- docs,testing(native-federation-runtime): adds mvp of testing with vitest and playwright to native-federation-runtime by @aramirezj in #1004
New Contributors
- @yatho made their first contribution in #997
- @rribeiro93 made their first contribution in #1018
New! advanced external features
We're excited to announce some extra features and enhancements regarding the sharing of externals. All features are opt-in so this shouldn't break existing applications.
shareAll overrides
Instead of adding the "share" helper after the "shareAll" helper, it is now possible to add overrides to the shareAll helper! This prevents double entries from occuring and allows you to have a default config with overrides for certain externals:
before:
const { withNativeFederation, shareAll, share } = require('@softarc/native-federation/build');
module.exports = withNativeFederation({
name: 'host',
shared: {
...shareAll(
{
singleton: true,
strictVersion: true,
requiredVersion: 'auto',
}
),
...share({
'package-b': {
singleton: false,
strictVersion: true,
requiredVersion: 'auto'
},
})
},
});
after:
const { withNativeFederation, shareAll } = require('@softarc/native-federation/build');
module.exports = withNativeFederation({
name: 'host',
shared: {
...shareAll(
{
singleton: true,
strictVersion: true,
requiredVersion: 'auto',
},
{
overrides: {
'package-b': {
singleton: false,
strictVersion: true,
requiredVersion: 'auto'
},
},
},
),
},
});
A new buildtype!
Next to "separate" and "default", it is now also possible to build per "package", the only small difference with "separate" is that this runs an ESbuild task per package instead of per entrypoint (which is what "separate" does).
const { withNativeFederation, shareAll, share } = require('@softarc/native-federation/build');
module.exports = withNativeFederation({
name: 'host',
shared: {
...share({
'package-b': {
singleton: true,
strictVersion: true,
requiredVersion: 'auto',
build: 'package',
},
})
},
});
Enhanced pseudo-treeshaking!
It is now possible to tweak the secondary entrypoints of externals to include wildcard paths or to opt-out of the "ignoreUnusedDeps" feature per external! Read more about it in the docs!
Full Changelog: 21.0.3...21.0.4
21.0.3
What's Changed
- fix(nf): Support for windows paths by @Aukevanoost in #1008
- fix(native-federation): Windows heap crash by @Aukevanoost in #1017
Important
Make sure to use this version with Angular CLI 21.0.3+
Full Changelog: 21.0.0...21.0.3
π Big thanks to @Aukevanoost for taking a lot of time for investigating these issues and for providing a solution.