Skip to content

Releases: angular-architects/module-federation-plugin

21.2.3

27 Mar 13:49
281bb91

Choose a tag to compare

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

20 Mar 14:21

Choose a tag to compare

Maintenance update

What's Changed

Full Changelog: 21.2.1...21.2.2

21.2.1

06 Mar 09:20
22601f7

Choose a tag to compare

What's Changed

Full Changelog: 21.2.0...21.2.1

21.2.0

04 Mar 07:47

Choose a tag to compare

Summary

Most changes were native-federation, but this time module federation was also bumped to Angular 21.2.0

What's Changed

New Contributors

Full Changelog: 21.1.1...21.2.0

21.1.1

09 Feb 09:40
489140c

Choose a tag to compare

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

Full Changelog: 21.1.0...21.1.1

20.3.1

09 Feb 18:47

Choose a tag to compare

Full Changelog: 20.3.0...20.3.1

20.3.0

09 Feb 07:46

Choose a tag to compare

Backwards compatible release for Angular 20.

What's Changed

New Contributors

Full Changelog: 20.1.7...20.3.0

21.1.0

20 Jan 10:27
a61e3f1

Choose a tag to compare

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

New Contributors

Full Changelog: 21.0.4...21.1.0

21.0.4

06 Jan 11:47

Choose a tag to compare

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

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

14 Dec 17:12

Choose a tag to compare

What's Changed

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.