1.0.0
·
175 commits
to master
since this release
1.0.0 (2020-02-04)
Compare @uirouter/react-hybrid versions 0.3.12 and 1.0.0
Code Refactoring
- Migrate to uirouter/react 1.x hooks (05549af)
BREAKING CHANGES
- Requires uirouter/react 1.0.0 or higher
Updated @uirouter/core from 6.0.1 to 6.0.4
Changelog for @uirouter/core:
Compare @uirouter/core versions 6.0.1 and 6.0.4
Bug Fixes
- hof: Rewrite curry from scratch (fc324c6), closes #350
- IE9: Add safeConsole so IE9 doesn't break (9c8579d)
- safeConsole: check if document is defined to avoid issues in node environments (da29d88)
Features
- stateService: add transition option 'supercede' so transition can be ignored if one is pending (6e5a56f)
Updated @uirouter/react from 0.8.10 to 1.0.1
Changelog for @uirouter/react:
Compare @uirouter/react versions 0.8.10 and 1.0.1
Bug Fixes
- : Fix router initialization when a router prop is present (dbce860)
- errors: Always throw a new Error() so stacktraces are usable (26f6989)
- typescript: Type onClick as MouseEventHandler. (7512f14)
- uiCanExit: fix uiCanExit logic and use refs so hook de/registration happens outside any render (e73daa7)
- UISrefActive: Avoid reusing the same array reference during setState() call (b9064cd)
- useCurrentStateAndParams: deregister transition hook when unmounted (ba397a6)
- useIsActive: Support relative state names (311f1f3)
- useIsActive: Update isActive if the params have changed (b3efe35)
- useSref: Call go() with the actual user provided state string (fba5321)
- useSref: Recompute the targeted state (and hrefs) whenever states are added or removed from the state registry (4c6b0f0)
- useSref: Update href if the stateName or params have changed (be8e07f)
- useSref: Use optionsMemo and paramsMemo instead of the function arguments (81ae788)
- useSrefActive: Export useSrefActive and useSrefActiveExact (d317790)
- useStableCallback: update ref.current and fix test (ec4ce5d)
- useTransitionHook: update hook when options or criteria changes. Use a stable callback reference. (57e593e)
- Refactor UIView for compatibility with @uirouter/react-hybrid. (55d4c98)
- Restore UIRouterConsumer and UIViewConsumer context consumer components. (3ed8ce1)
- useUiSref: Throw if 'to' isnt a string (65f10e5)
Features
- hooks: Add hooks: useTransitionHook, useOnStateChanged, useCurrentStateAndParams (00e6545)
- hooks: Add useCanExit hook to block transitions from exiting a state (29d080c)
- hooks: Add useDeepObjectDiff hook to detect changes to params or config objects in other hooks (07f3182)
- hooks: Add useSrefActive and useSrefActiveExact hooks (2b5826f)
- hooks: add useUIRouter and useCurrentState hooks (bce6539)
- hooks: export useParentView for use in uirouter/react-hybrid (b5a2e80)
- ReactHooks: introduce hooks useUISref and useUISrefActive (b9a763c)
BREAKING CHANGES
- UIRouterConsumer now is of type
import { UIRouter } from '@uirouter/core'instead ofimport { UIRouterReact } from '@uirouter/react'
Updated @uirouter/angularjs from 1.0.23 to 1.0.25
Changelog for @uirouter/angularjs: