Releases: single-spa/single-spa-angular
Releases · single-spa/single-spa-angular
v3.4.0
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.
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:
- You must be using single-spa-angular@>=3.4.0
- 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
v3.3.2
v3.3.1
Fixes
- fix: back button inf loop issues are now resolved. Patch router and wrap
scheduleNavigation
calls intozone.run
(#173) cdbb5c9 @arturovt
Maintenance
v4.0.0
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';
- The ParcelComponent's import path changed (#171 @joeldenning):
// 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
Maintenance
- Create e2e tests for single-spa-angular (#156 @arturovt)
- Switch to ng-packagr for bundling Angular projects (#167 @arturovt)
- Set up prettier and commitline (#163 @arturovt, #164 @joeldenning)
- Resolve lint issues (#154 @arturovt)
- Drop support for Angular 7 builder (#155 @arturovt)
- Remove semver from dependencies - use local package.json instead (#160. #161 @arturovt)
- Add PR and issue templates (#166)
- Copy readme into published folder (#172)
v3.3.0
Features
Maintenance
- Update package lock 4eac5fc
- Dependency fix 5f7b160
- Upgrading single-spa so I can remove @ts-ignore e9464e5
v3.2.0
Features
- Adding angular component for interacting with single-spa parcels (#122) f72e440
Maintenance
v3.1.0
v3.0.1
v3.0.0
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.