v0.9.0
This release removes the previous withScroll history enhancer along with any direct dependencies on history. Instead, this library now only needs the ability to install a transition hook and to interact with page session storage.
This change will allow things like simultaneous full compatibility with history v2 and v3 (net of bugs with hash history in the latter) in react-router-scroll, as well as integration with other history management libraries.
- Breaking: Change package export to be the
ScrollBehaviorclass (#107) - Breaking: Remove
withScrollhistory enhancer (#107) - Breaking/Feature: Remove explicit dependency on
historyand instead use more granular configuration ofScrollBehaviorobjects to allow integrate with other history management libraries (#107) - Breaking: Remove
readPositionmethod onScrollBehavior; thereadmethod on the providedstateStorageobject exposes the same data (#107)