Skip to content

Commit a941aa5

Browse files
prep for 4.0.0 release
1 parent f3392d1 commit a941aa5

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
### ui-router-core changes
2+
# [4.0.0](https://github.com/ui-router/core/compare/3.1.1...v4.0.0) (2017-01-22)
3+
4+
5+
### Bug Fixes
6+
7+
* **resolve:** Allow hook and resolve's state context to be injected as `$state$` ([a06948b](https://github.com/ui-router/core/commit/a06948b))
8+
9+
10+
### Features
11+
12+
* **core:** Export all vanilla.* code from `ui-router-core` ([f3392d1](https://github.com/ui-router/core/commit/f3392d1))
13+
* **globals:** Removed `UIRouterGlobals` interface. Renamed `Globals` class to `UIRouterGlobals` ([8719334](https://github.com/ui-router/core/commit/8719334))
14+
15+
16+
### BREAKING CHANGES
17+
18+
* BREAKING CHANGE:
19+
20+
This change will likely only affect a small subset of typescript users and probably only those using `ui-router-ng2`.
21+
If you're injecting the `Globals` class somewhere, e.g.:
22+
```
23+
@Injectable()
24+
class MyService {
25+
_globals: UIRouterGlobals;
26+
constructor(globals: Globals) {
27+
this._globals = <UIRouterGlobals> globals;
28+
}
29+
}
30+
```
31+
you should now inject `UIRouterGlobals`, e.g.:
32+
```
33+
@Injectable()
34+
class MyService {
35+
constructor(public globals: UIRouterGlobals) { }
36+
}
37+
```
38+
39+
Likewise, if you were casting the `UIRouter.globals` object as a `UIRouterGlobals`, it is no longer necessary:
40+
41+
```js
42+
function myHook(trans: Transition) {
43+
let globals: UIRouterGlobals = trans.router.globals; // cast is no longer necessary
44+
}
45+
```
46+
47+
Closes https://github.com/ui-router/core/issues/31
48+
49+
50+
151
### ui-router-core changes
252
## [3.1.1](https://github.com/ui-router/core/compare/3.1.0...v3.1.1) (2017-01-16)
353

0 commit comments

Comments
 (0)