Skip to content

Releases: dkhrunov/ngx-mfe

v17.0.0

07 Apr 13:57
66691a8
Compare
Choose a tag to compare

Update to Angular v17

v16.0.0

07 Apr 13:14
3c54515
Compare
Choose a tag to compare

Update to Angular v16

v15.1.0

26 Mar 12:29
Compare
Choose a tag to compare

Features:

  • Added ability to load MfeConfig asynchronously. [Issue - #18]

Fixed:

  • Fixed type of NGX_MFE_OPTIONS form InjectionToken<string> to InjectionToken<NgxMfeOptions>.

Breaking changes:

  • Renamed MfeModule.forRoot() options from NgxMfeOptions to NgxMfeForRootOptions.
  • Now MfeRegistry is no longer accessible from DI.
  • Changed API of MfeRegistry:
    • changed method public static getInstance(mfeConfig?: MfeConfig): MfeRegistry to getter public static get instance(): MfeRegistry;
    • added method public setMfeConfig(config: MfeConfig): void .

v15.0.0

10 Dec 09:56
Compare
Choose a tag to compare

Update to Angular v 15

v3.0.2

02 Sep 22:30
Compare
Choose a tag to compare

fix PR #16


Thanks to tFaster

v3.0.1

28 Aug 11:43
Compare
Choose a tag to compare
  • Throw exception when loaded MFE bundle doesn't contain declared class.
  • Updated documentation. Added new section about Angular v14 Standalone Components.

v3.0.0

07 Aug 18:56
ff954e3
Compare
Choose a tag to compare

Update to Angular v14

v2.1.0

16 Jul 00:20
fb2d30e
Compare
Choose a tag to compare

Fixed:

  • Fix error, if the fallback is also unavailable, then simply clear the view;

Refactored:

  • Renamed MfeService to RemoteComponentLoader;
  • Renamed MfeComponentsCache to RemoteComponentsCache;
  • Renamed ModularRemoteComponent type to RemoteComponentWithModule;
  • Wrapped to ngZone.runOutside the loadMfe function calls inside the RemoteComponentLoader;
  • Added new type ComponentWithNgModuleRef<TComponent, TModule>, that holds component class Type<T> and NgModuleRef;
  • Changed cached value for RemoteComponentWithModule from ComponentFactory to ComponentWithNgModuleRef;
  • In RemoteComponentLoader (old name MfeService) renamed function loadModularComponent to loadComponentWithModule
  • Changed return type of method loadComponentWithModule inside class RemoteComponentLoader from Promise<ComponentFactory<TComponent>> to Promise<ComponentWithNgModuleRef<TComponent, TModule>>;

v2.0.0

07 Jul 20:28
14594a9
Compare
Choose a tag to compare

Why has the API changed? - The problem is that when you use the [mfeOutlet] directive issue, it tries to find the component inside the compiled module by name (as a string), but in runtime the class name will be optimized and replaced with a short character. For example, you have a class TestComponent, it can be changed to the class name a and this causes this error.

Migration guide to v2
Documentation

v1.1.3

14 May 09:39
1470223
Compare
Choose a tag to compare

Update doc in the Readme file