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
ScrollBehavior
class (#107) - Breaking: Remove
withScroll
history enhancer (#107) - Breaking/Feature: Remove explicit dependency on
history
and instead use more granular configuration ofScrollBehavior
objects to allow integrate with other history management libraries (#107) - Breaking: Remove
readPosition
method onScrollBehavior
; theread
method on the providedstateStorage
object exposes the same data (#107)