Skip to content

Commit 03bc668

Browse files
6.0.0
1 parent 76324f1 commit 03bc668

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
# 6.0.0 (2019-11-12)
2+
[Compare `@uirouter/angular` versions 5.0.0 and 6.0.0](https://github.com/ui-router/angular/compare/5.0.0...6.0.0)
3+
4+
This release supports Angular 9 and removes the dependency on `@angular/router`
5+
There are some *BREAKING CHANGES*, see below.
6+
7+
### Bug Fixes
8+
9+
* **ivy:** Inject host UISref separately to account for behavior change in [@ContentChildren](https://github.com/ContentChildren) ([ebd2e40](https://github.com/ui-router/angular/commit/ebd2e40)), closes [/github.com/angular/angular/issues/8277#issuecomment-323678013](https://github.com//github.com/angular/angular/issues/8277/issues/issuecomment-323678013)
10+
* fix(angular8): Add static: true to ViewChild
11+
* fix(lazyLoad): Remove dependency on angular/router in favor of using ivy
12+
Ivy supports lazy loading of modules without depending on the ROUTES token from angular/router.
13+
14+
### Features
15+
16+
* **lazyLoad:** Remove NgModuleToLoad type (string based lazy module loading) ([2f1506c](https://github.com/ui-router/angular/commit/2f1506c))
17+
* Ivy support (#674) ([00e9d6a](https://github.com/ui-router/angular/commit/00e9d6a)), closes [#674](https://github.com/ui-router/angular/issues/674)
18+
19+
20+
### BREAKING CHANGES
21+
22+
#### UIRouter for Angular v6.0.0 now requires Angular 8 or higher
23+
24+
If you are not yet on Angular 8, please use `@uirouter/angular` v5.x
25+
26+
#### `@uirouter/core` and `@uirouter/rx` packages are now `peerDependencies`.
27+
28+
You will need to explicitly install the correct versions of `@uirouter/core` and `@uirouter/rx` into your project.
29+
30+
before:
31+
32+
```
33+
dependencies: {
34+
"@uirouter/angular": "5.0.0"
35+
}
36+
```
37+
38+
after (example -- versions will vary):
39+
```
40+
dependencies: {
41+
"@uirouter/angular": "6.0.0"
42+
"@uirouter/core": "6.0.1",
43+
"@uirouter/rx": "0.6.0",
44+
}
45+
```
46+
47+
Or, use this command to automatically install peerDependencies:
48+
49+
50+
```
51+
npx check-peer-dependencies --install
52+
```
53+
54+
#### Removed string based lazy module loading via loadChildren
55+
56+
Previously, we supported `loadChildren: './lazymodule/lazy.module.ts#LazyModule'`
57+
58+
This lazy load mechanism is deprecated in Angular 8 in favor of:
59+
`loadChildren: import('./lazymodule/lazy.module).then(x => x.LazyModule)`
60+
61+
Migrate your `loadChildren`(s) to the `import()` style.
62+
163
# 5.0.0 (2019-10-02)
264
[Compare `@uirouter/angular` versions 4.0.0 and 5.0.0](https://github.com/ui-router/angular/compare/4.0.0...5.0.0)
365

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "./node_modules/ng-packagr/package.schema.json",
33
"name": "@uirouter/angular",
44
"description": "State-based routing for Angular",
5-
"version": "5.0.0",
5+
"version": "6.0.0",
66
"scripts": {
77
"clean": "shx rm -rf lib lib-esm _bundles _doc dist",
88
"compile": "npm run clean && ngc",

0 commit comments

Comments
 (0)