0.6.0
版本发布时间: 2018-01-31 00:07:53
ui-router/react最新发布版本:1.0.7(2021-07-27 08:03:58)
0.6.0 (2018-01-30)
Compare @uirouter/react
versions 0.5.5 and 0.6.0
Bug Fixes
- package: update @uirouter/core to version 5.0.14 (ee5e672)
- package: update @uirouter/core to version 5.0.15 (ef2b171)
- reactViews: use new map function signature (6b2aa53)
Features
-
UIView:
resolve
s are now injected as root props (ff67239) -
UIView: warn user when using
transition
as resolve token (10b247b)
BREAKING CHANGES
-
UIView: Previously
resolve
s were accessible as properties of aresolves
props injected in the routed component. They are now each injected as a prop. This way components don't need to be aware of the router and can be more reusable.
before:
render () {
const { foo } = this.props.resolves;
return <div>{foo}</div>;
}
after:
render () {
const { foo } = this.props;
return <div>{foo}</div>
}
Updated @uirouter/core
from 5.0.11 to 5.0.15
Compare @uirouter/core
versions 5.0.11 and 5.0.15
Bug Fixes
- browserLocation: Use location.pathname (not href) or '/' when no base tag found (db461d6)
- browserLocationConfig: If no base href found, use location.href (not empty string) (0251424)
- core: Fix memory leak of resolve data from ALL transitions ever (7f2aed1)
- pathNode: add backwards compat for PathNode.clone(). Add retainedWithToParams to treeChanges interface. (4833a32)
- pushStateLocation: Fix URLs: add slash between base and path when necessary (bfa5755)
- pushStateLocation: When url is "" or "/", use baseHref for pushState (042a950)
- resolve: Add onFinish hook to resolve any dynamicly added resolvables (7d1ca54)
- trace: Fix null reference in uiview name sort function (59cb067)
- treeChanges: apply toParams to 'retained' path (#72) (cf63d11)
- urlRouter: Update query params when resetting url via .update() (7664cd0)