Skip to content

v4.6.0

Compare
Choose a tag to compare
@joeldenning joeldenning released this 06 Nov 16:50
· 102 commits to master since this release

Migrating to 4.6.0

4.6.0 has an important bug fix for infinite loops. In order for the bug fix to work, you need to add the NavigationStart option when calling single-spa-angular.

import { NavigationStart, Router } from '@angular/router';

const lifecycles = singleSpaAngular({
  bootstrapFunction: () =>
    platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule(AppModule),
  template: '<navbar-root />',
  NgZone,
  Router,
  // This option is new, and without it the infinite loop fix won't take effect.
  NavigationStart,
});

Features

  • feat: enable devtoolNamespace to prevent source maps collisions (#297)

Fixes

  • fix: skip location change for non-imperative navigations. This fixes the issue with infinite redirects (#235)

Maintenance

  • Add project status (#289)
  • feat: support Nrwl Nx workspace (#293)
  • docs: update CONTRIBUTING.md (#294)