Skip to content

Releases: single-spa/single-spa-angular

v3.4.0

21 May 18:20
Compare
Choose a tag to compare

Please upgrade to 3.4.1 instead of using 3.4.0 - there's an important fix

Breaking change

We published this as 3.4.0 even though it contains a breaking change, since 4.x is already taken for Angular 9 support.

*The back button bug fixed in 3.3.1 and 3.3.2 will come back unless you add the singleSpaExtraProviders to your code. See Fixes section below for how to do that.

Relevant code and discussion

Features

  • single-spa-angular@3 now exports a function getSingleSpaExtraProviders that should be injected into your application.

Fixes

  • The infinite redirect bug is fixed! (#113 #192) The bug fix only works with the following conditions:
    1. You must be using single-spa-angular@>=3.4.0
    2. You must provide the extra single-spa providers, as shown below
import { NgZone } from '@angular/core';
import { Router } from '@angular/router';
import singleSpaAngular, { getSingleSpaExtraProviders } from 'single-spa-angular';const lifecycles = singleSpaAngular({
  bootstrapFunction: singleSpaProps => {
    singleSpaPropsSubject.next(singleSpaProps);
    return platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule(AppModule);
  },
  template: '<app-root />',
  Router,
  NgZone,
});

v4.1.0

04 May 19:34
ff2acca
Compare
Choose a tag to compare

Features

Maintenance

  • Add chat application in e2e tests (#174)
  • Add e2e test for issue #113 (#176)
  • Create internal package for sharing between different kinds of single-spa-angular applications (#178)

v3.3.2

01 May 20:54
Compare
Choose a tag to compare

Fixes

v3.3.1

19 Apr 03:03
Compare
Choose a tag to compare

Fixes

  • fix: back button inf loop issues are now resolved. Patch router and wrap scheduleNavigation calls into zone.run (#173) cdbb5c9 @arturovt

Maintenance

v3.3.0...v3.3.1

v4.0.0

18 Apr 19:44
41bbaa9
Compare
Choose a tag to compare

Breaking Changes

  • single-spa-angular@4 does not work with Angular 2-8. Only Angular 9
  • single-spa-angular@4 has a new peerDependency on single-spa. This means you need to do npm install --save single-spa for it to work
  • The singleSpaAngular function is now a named export:
// single-spa-angular@3
import singleSpaAngular from 'single-spa-angular';
// single-spa-angular@4
import { singleSpaAngular } from 'single-spa-angular';
// single-spa-angular@3
import { ParcelComponent } from 'single-spa-angular/parcel';
// single-spa-angular@4
import { ParcelComponent } from 'single-spa-angular';

Features

  • Exclude polyfills-es5.js from output bundle (#153 @arturovt)
  • Multiple project roots are now supported (#158 @arturovt)
  • New getSingleSpaExtraProviders() function (#159 @arturovt)
  • Webpack chunk hashing now disabled by default (#169 @arturovt)
  • Generate different package.json scripts for different projects within the same workspace (#165 @arturovt)

Fixes

  • Back button issues are now fixed via SingleSpaPlatformLocation (#159 @arturovt)

Maintenance

v3.3.0

11 Mar 15:45
Compare
Choose a tag to compare

Features

  • Add update lifecycle to singleSpaAngular, for use with parcels (#141) 8d310b8

Maintenance

v3.2.0...v3.3.0

v3.2.0

08 Mar 03:39
Compare
Choose a tag to compare

Features

Maintenance

v3.1.0...v3.2.0

v3.1.0

05 Dec 15:12
Compare
Choose a tag to compare

Features

  • Better support for systemjs (#121)

Maintenance

  • Various dependency upgrades to solve audit warnings

v3.0.1

18 Jul 17:49
Compare
Choose a tag to compare

Fixes

  • Fix problem where single-spa-angular@beta was being installed during schematics. (f782228)

v3.0.0

18 Jul 17:46
Compare
Choose a tag to compare

Finally! Full support for Angular 2-8

See https://single-spa.js.org/docs/ecosystem-angular.html for full documentation. See release notes for beta and rc versions of 3.0.0 for all changes.

Changes from 3.0.0-rc.1

  • Remove errant peerDependency in Angular 7. (7ab71e4, #79
  • Switching to prepublishOnly script (3bd9359)