Skip to content

Commit 5504553

Browse files
0.2.0
1 parent 750b1c7 commit 5504553

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,77 @@
1+
# 0.2.0 (2018-05-05)
2+
[Compare `@uirouter/react-hybrid` versions 0.1.0 and 0.2.0](https://github.com/ui-router/react-hybrid/compare/0.1.0...0.2.0)
3+
4+
5+
### Updated `@uirouter/core` from 5.0.17 to 5.0.18
6+
[Compare `@uirouter/core` versions 5.0.17 and 5.0.18](https://github.com/ui-router/core/compare/5.0.17...5.0.18)
7+
8+
### Bug Fixes
9+
10+
* **angular:** A hack to force the Angular compiler to import from module index ([d56a2be](https://github.com/ui-router/core/commit/d56a2be))
11+
* **StateRegistry:** Notify listeners of added states when there are orphans in the state queue ([5a9bac9](https://github.com/ui-router/core/commit/5a9bac9))
12+
* **transition:** Fix typing of Transition.params() ([ebea30e](https://github.com/ui-router/core/commit/ebea30e))
13+
* **transition:** Normalize `error()` to always return `Rejection` ([9bcc5db](https://github.com/ui-router/core/commit/9bcc5db))
14+
15+
16+
### Updated `@uirouter/react` from 0.6.2 to 0.7.0
17+
[Compare `@uirouter/react` versions 0.6.2 and 0.7.0](https://github.com/ui-router/react/compare/0.6.2...0.7.0)
18+
19+
### Bug Fixes
20+
21+
* **package:** update prop-types to version 15.6.1 ([1d0ee26](https://github.com/ui-router/react/commit/1d0ee26))
22+
23+
24+
### Features
25+
26+
* 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)
27+
* **react:** update minimum react version supported ([4acb7a7](https://github.com/ui-router/react/commit/4acb7a7))
28+
29+
30+
### BREAKING CHANGES
31+
32+
* **react:** from version `0.7.0` `@uirouter/react` only supports react from version `16.3.x` because of the new Context API.
33+
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.
34+
* `@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:
35+
36+
before:
37+
```jsx
38+
class SomeComponent extends React.Component {
39+
static contextTypes = {
40+
router: PropTypes.object
41+
}
42+
43+
render () {
44+
// access context via this.context
45+
const router = this.context.router;
46+
// do whatever needed with the router
47+
}
48+
}
49+
```
50+
51+
after:
52+
```jsx
53+
class SomeComponent extends React.Component {
54+
render () {
55+
// access router via props
56+
const router = this.props.router;
57+
// do whatever needed with the router
58+
}
59+
}
60+
61+
// when rendering the component wrap it with the `<UIRouterConsumer>` component
62+
<UIRouterConsumer>
63+
{router => <SomeComponent router={router} />}
64+
</UIRouterConsumer>
65+
```
66+
67+
68+
### Updated `@uirouter/angularjs` from 1.0.15 to 1.0.16
69+
[Compare `@uirouter/angularjs` versions 1.0.15 and 1.0.16](https://github.com/angular-ui/ui-router/compare/1.0.15...1.0.16)
70+
71+
### Bug Fixes
72+
73+
* **docs:** downgrade to [@types](https://github.com/types)/angular[@1](https://github.com/1).6.25 to fix typings error when generating docs ([5850136](https://github.com/angular-ui/ui-router/commit/5850136))
74+
175
## 0.1.1 (2018-05-05)
276
[Compare `@uirouter/react-hybrid` versions 0.1.0 and 0.1.1](https://github.com/ui-router/react-hybrid/compare/0.1.0...0.1.1)
377

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-hybrid",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"scripts": {
55
"clean": "shx rm -rf lib lib-esm _bundles",
66
"compile": "npm run clean && tsc && tsc --module es6 --outDir lib-esm",

0 commit comments

Comments
 (0)