Releases: taion/scroll-behavior
Releases · taion/scroll-behavior
v0.9.4
v0.9.3
v0.9.2
v0.9.1
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)
v0.8.2
v0.8.1
v0.8.0
- Breaking: Change
ScrollBehavior
to take ashouldUpdateScroll
function at construction time, and changeupdateScroll
to take the previous and next context forshouldUpdateScroll
callbacks (#91, #94) - Feature: Add
registerScrollElement
method to extended history for managing scroll behavior of elements other thanwindow
(#86, #91, #94)