Skip to content

6.0.0

Compare
Choose a tag to compare
@christopherthielen christopherthielen released this 12 Nov 01:11
· 332 commits to master since this release

6.0.0 (2019-11-12)

Compare @uirouter/angular versions 5.0.0 and 6.0.0

This release supports Angular 9 and removes the dependency on @angular/router
There are some BREAKING CHANGES, see below.

Bug Fixes

Features

  • lazyLoad: Remove NgModuleToLoad type (string based lazy module loading) (2f1506c)
  • Ivy support (#674) (00e9d6a), closes #674

BREAKING CHANGES

UIRouter for Angular v6.0.0 now requires Angular 8 or higher

If you are not yet on Angular 8, please use @uirouter/angular v5.x

@uirouter/core and @uirouter/rx packages are now peerDependencies.

You will need to explicitly install the correct versions of @uirouter/core and @uirouter/rx into your project.

before:

dependencies: {
  "@uirouter/angular": "5.0.0"
}

after (example -- versions will vary):

dependencies: {
  "@uirouter/angular": "6.0.0"
  "@uirouter/core": "6.0.1",
  "@uirouter/rx": "0.6.0",
}

Or, use this command to automatically install peerDependencies:

npx check-peer-dependencies --install

Removed string based lazy module loading via loadChildren

Previously, we supported loadChildren: './lazymodule/lazy.module.ts#LazyModule'

This lazy load mechanism is deprecated in Angular 8 in favor of:
loadChildren: import('./lazymodule/lazy.module).then(x => x.LazyModule)

Migrate your loadChildren(s) to the import() style.