0.3.0
版本发布时间: 2016-09-20 06:59:36
ui-router/react最新发布版本:1.0.7(2021-07-27 08:03:58)
Breaking Changes
- State Glob patterns have been changed slightly.
Previously, a single wildcard `foo.*` could match "missing segments" on the end of a state name.
For example, `foo.*` would match the state `foo`.
Likewise, `foo.*.*.*` would also match the `foo` state.
Now, a single wildcard matches exactly one segment.
`foo.*` will match `foo.bar` and `foo.baz`, but neither `foo` nor `foo.bar.baz`.
If you previously relied on the single wildcard to match missing segments, use a double wildcard, `foo.**`.
Double wildcards match 0 or more segments.
[Read more about Glob matching](https://ui-router.github.io/docs/latest/classes/common.glob.html)
- (obscure) Renamed
Transition.previous()
toTransition.redirectedFrom()
- (obscure) Location provider: remove
url(url)
andreplace()
in favor ofsetUrl(url, replace)
.
[full ui-router-core 1.0.0-beta.2 changelog].
Changed
-
ui-router-core: Updated to version
1.0.0-beta.2
(9ad732e) -
UMD: The UMD build is exported as
window.UIRouterReact
instead ofwindow.ui-router-react
. (68ebd4c)
Fix
-
uiCanExit: Remove
uiCanExit
hooksetTimeout
wrapper that prevents hook from being called when state is entered and exited synchronously (82bad02). - UISref:
- UISrefActive: Fix state info deregister function (b6c93b5).
-
UMD: The UMD build now looks react as
window.React
instead ofwindow.react
. (68ebd4c)