Releases: ui-router/react-hybrid
0.3.8
0.3.8 (2018-11-15)
Compare @uirouter/react-hybrid versions 0.3.7 and 0.3.8
Bug Fixes
- Portal: Support creating portals for multiple nested UIViews (ab4edcb)
Features
0.1.1
0.1.1 (2018-05-05)
Compare @uirouter/react-hybrid versions 0.1.0 and 0.1.1
Updated @uirouter/core from 5.0.17 to 5.0.18
Compare @uirouter/core versions 5.0.17 and 5.0.18
Bug Fixes
- angular: A hack to force the Angular compiler to import from module index (d56a2be)
- StateRegistry: Notify listeners of added states when there are orphans in the state queue (5a9bac9)
- transition: Fix typing of Transition.params() (ebea30e)
- transition: Normalize
error()to always returnRejection(9bcc5db)
Updated @uirouter/react from 0.6.2 to 0.7.0
Compare @uirouter/react versions 0.6.2 and 0.7.0
Bug Fixes
- package: update prop-types to version 15.6.1 (1d0ee26)
Features
- use new React 16.3 context API (580700f), closes #54
- react: update minimum react version supported (4acb7a7)
BREAKING CHANGES
- react: from version
0.7.0@uirouter/reactonly supports react from version16.3.xbecause of the new Context API.
If you need to use it with previous versions of React you should check the0.6.x, but bear in mind that it’s no longer supported and it’s advised to update React instead. @uirouter/reactnow 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:
before:
class SomeComponent extends React.Component {
static contextTypes = {
router: PropTypes.object
}
render () {
// access context via this.context
const router = this.context.router;
// do whatever needed with the router
}
}after:
class SomeComponent extends React.Component {
render () {
// access router via props
const router = this.props.router;
// do whatever needed with the router
}
}
// when rendering the component wrap it with the `<UIRouterConsumer>` component
<UIRouterConsumer>
{router => <SomeComponent router={router} />}
</UIRouterConsumer>Updated @uirouter/angularjs from 1.0.15 to 1.0.16
Compare @uirouter/angularjs versions 1.0.15 and 1.0.16
Bug Fixes
0.3.7
0.3.7 (2018-11-08)
Compare @uirouter/react-hybrid versions 0.3.6 and 0.3.7
Bug Fixes
- ReactUIViewAdapter: Turn off debug statement (whops) (cb8b64d)
0.3.6
0.3.6 (2018-11-08)
Compare @uirouter/react-hybrid versions 0.3.5 and 0.3.6
Features
- UIView: Use React Portals: Allows React Context to propagate through UIViews. All UIViews now render using the same React instance. (5f76b16ff670a3e325909440cf33b3e56829880d
) #138
0.3.4
0.3.4 (2018-08-12)
Compare @uirouter/react-hybrid versions 0.3.3 and 0.3.4
Updated @uirouter/core from 5.0.20 to 5.0.21
Compare @uirouter/core versions 5.0.20 and 5.0.21
Bug Fixes
- dynamic: Use 'find' from common.ts instead of Array.prototype.find (66a3244), closes #215
- url: When using html5Mode and no tag is present, default to '/' (23742e3), closes #223
Updated @uirouter/react from 0.8.5 to 0.8.7
Compare @uirouter/react versions 0.8.5 and 0.8.7
Updated @uirouter/angularjs from 1.0.19 to 1.0.20
0.3.3
0.3.3 (2018-08-09)
Compare @uirouter/react-hybrid versions 0.3.2 and 0.3.3
Updated @uirouter/react from 0.8.4 to 0.8.5
Compare @uirouter/react versions 0.8.4 and 0.8.5
Features
0.3.2
0.3.2 (2018-08-07)
Compare @uirouter/react-hybrid versions 0.3.1 and 0.3.2
Updated @uirouter/react from 0.8.3 to 0.8.4
Compare @uirouter/react versions 0.8.3 and 0.8.4
Bug Fixes
- uiview: Fix uiCanExit when routing to a React.forwardRef() (cf5c668)
Features
0.3.1
0.3.1 (2018-07-20)
Compare @uirouter/react-hybrid versions 0.3.0 and 0.3.1
Updated @uirouter/core from 5.0.19 to 5.0.20
Compare @uirouter/core versions 5.0.19 and 5.0.20
Bug Fixes
- params: When creating an array parameter from a custom type, copy the
rawproperty (b6dd738), closes #178
Features
- dynamic: Support dynamic flag on a state declaration (3cd5a2a)
- transition: Added transition.paramsChanged() to get added/deleted/changed parameter values for a transition (10b7fde)
- view: Add _pluginapi._registeredUIView() to get a ui-view by id (6533b51)
Updated @uirouter/react from 0.8.2 to 0.8.3
Compare @uirouter/react versions 0.8.2 and 0.8.3
Updated @uirouter/angularjs from 1.0.18 to 1.0.19
Compare @uirouter/angularjs versions 1.0.18 and 1.0.19
Bug Fixes
- npm: Publish to the old angular-ui-router npm package too (8fc3bb2)
- resolve: Detect and honor strictDi in angularjs versions 1.3 and 1.4 (1368c18), closes #3678
- state: When creating absolute hrefs in hashbang mode, include the location.pathname (cd426e5), closes #3710
- uiview: Allow uiOnParamsChanged to work with states that have a componentProvider (fe91bd3), closes #3707
0.3.0
0.3.0 (2018-05-28)
Compare @uirouter/react-hybrid versions 0.2.0 and 0.3.0
Bug Fixes
Features
- Support UI-Router 0.8.2 and switch to React 16.3 context API (09af7b6)
BREAKING CHANGES
- This version of react-hybrid requires
@uirouter/reactversion 0.8.2 or higher and requires React 16.3.x or higher.
Updated @uirouter/core from 5.0.18 to 5.0.19
Compare @uirouter/core versions 5.0.18 and 5.0.19
Bug Fixes
- enums: Workaround angular compiler export issue angular/angular#23759 (38d25fa)
Updated @uirouter/react from 0.7.0 to 0.8.2
Compare @uirouter/react versions 0.7.0 and 0.8.2
Bug Fixes
- enzyme: fix enzyme patch leaving a file called '-' (4c2157c)
- UISref/UISrefActive: make proptypes non-required: parentUIView, addStateInfoToParentActive (c7aa299), closes #173
Features
- internal: Change UIView from arrow to Component Class (ce2bc1e)
- internal: exposed the internal View component for use by @uirouter/react-hybrid (9c07226)
- UIView: force component re-mount on reload() (d01162a), closes #172
BREAKING CHANGES
- UIView: when a state is entered/exited the State Component is remounted, re-running its lifecycle methods.
Updated @uirouter/angularjs from 1.0.16 to 1.0.18
Compare @uirouter/angularjs versions 1.0.16 and 1.0.18
Bug Fixes
- bundles: Do not run prettier against release/* bundles when publishing to bower (9b420fa)
0.2.0
0.2.0 (2018-05-05)
Compare @uirouter/react-hybrid versions 0.1.0 and 0.2.0
Updated @uirouter/core from 5.0.17 to 5.0.18
Compare @uirouter/core versions 5.0.17 and 5.0.18
Bug Fixes
- angular: A hack to force the Angular compiler to import from module index (d56a2be)
- StateRegistry: Notify listeners of added states when there are orphans in the state queue (5a9bac9)
- transition: Fix typing of Transition.params() (ebea30e)
- transition: Normalize
error()to always returnRejection(9bcc5db)
Updated @uirouter/react from 0.6.2 to 0.7.0
Compare @uirouter/react versions 0.6.2 and 0.7.0
Bug Fixes
- package: update prop-types to version 15.6.1 (1d0ee26)
Features
- use new React 16.3 context API (580700f), closes #54
- react: update minimum react version supported (4acb7a7)
BREAKING CHANGES
- react: from version
0.7.0@uirouter/reactonly supports react from version16.3.xbecause of the new Context API.
If you need to use it with previous versions of React you should check the0.6.x, but bear in mind that it’s no longer supported and it’s advised to update React instead. @uirouter/reactnow 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:
before:
class SomeComponent extends React.Component {
static contextTypes = {
router: PropTypes.object
}
render () {
// access context via this.context
const router = this.context.router;
// do whatever needed with the router
}
}after:
class SomeComponent extends React.Component {
render () {
// access router via props
const router = this.props.router;
// do whatever needed with the router
}
}
// when rendering the component wrap it with the `<UIRouterConsumer>` component
<UIRouterConsumer>
{router => <SomeComponent router={router} />}
</UIRouterConsumer>Updated @uirouter/angularjs from 1.0.15 to 1.0.16
Compare @uirouter/angularjs versions 1.0.15 and 1.0.16