Skip to content

Commit dfebb8e

Browse files
0.6.3
1 parent 868a4e1 commit dfebb8e

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+
## 0.6.3 (2018-05-03)
2+
[Compare `@uirouter/react` versions 0.6.2 and 0.6.3](https://github.com/ui-router/react/compare/0.6.2...0.6.3)
3+
4+
### Bug Fixes
5+
6+
* **package:** update prop-types to version 15.6.1 ([1d0ee26](https://github.com/ui-router/react/commit/1d0ee26))
7+
8+
9+
### Features
10+
11+
* use new React 16.3 context API ([580700f](https://github.com/ui-router/react/commit/580700f)), closes [#54](https://github.com/ui-router/react/issues/54)
12+
* **react:** update minimum react version supported ([4acb7a7](https://github.com/ui-router/react/commit/4acb7a7))
13+
14+
15+
### BREAKING CHANGES
16+
17+
* **react:** from version `0.7.0` `@uirouter/react` only supports react from version `16.3.x` because of the new Context API.
18+
If you need to use it with previous versions of React you should check the `0.6.x`, but bear in mind that it’s no longer supported and it’s advised to update React instead.
19+
* `@uirouter/react` now uses the new React 16.3 Context API. If you were accessing the router instance via the legacy context api (which was never explecitly supported) you need to update your code accordingly:
20+
21+
before:
22+
```jsx
23+
class SomeComponent extends React.Component {
24+
static contextTypes = {
25+
router: PropTypes.object
26+
}
27+
28+
render () {
29+
// access context via this.context
30+
const router = this.context.router;
31+
// do whatever needed with the router
32+
}
33+
}
34+
```
35+
36+
after:
37+
```jsx
38+
class SomeComponent extends React.Component {
39+
render () {
40+
// access router via props
41+
const router = this.props.router;
42+
// do whatever needed with the router
43+
}
44+
}
45+
46+
// when rendering the component wrap it with the `<UIRouterConsumer>` component
47+
<UIRouterConsumer>
48+
{router => <SomeComponent router={router} />}
49+
</UIRouterConsumer>
50+
```
51+
52+
53+
### Updated `@uirouter/core` from 5.0.17 to 5.0.18
54+
[Compare `@uirouter/core` versions 5.0.17 and 5.0.18](https://github.com/ui-router/core/compare/5.0.17...5.0.18)
55+
56+
### Bug Fixes
57+
58+
* **angular:** A hack to force the Angular compiler to import from module index ([d56a2be](https://github.com/ui-router/core/commit/d56a2be))
59+
* **StateRegistry:** Notify listeners of added states when there are orphans in the state queue ([5a9bac9](https://github.com/ui-router/core/commit/5a9bac9))
60+
* **transition:** Fix typing of Transition.params() ([ebea30e](https://github.com/ui-router/core/commit/ebea30e))
61+
* **transition:** Normalize `error()` to always return `Rejection` ([9bcc5db](https://github.com/ui-router/core/commit/9bcc5db))
62+
163
## 0.6.2 (2018-02-12)
264
[Compare `@uirouter/react` versions 0.6.1 and 0.6.2](https://github.com/ui-router/react/compare/0.6.1...0.6.2)
365

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uirouter/react",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "State based routing for React",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

0 commit comments

Comments
 (0)