Skip to content

Releases: taion/scroll-behavior

v0.9.4

13 Oct 21:13
6355823
Compare
Choose a tag to compare
  • Feature: Save scroll position continually for non-window elements (#122)

v0.9.3

01 Apr 17:21
v0.9.3
e3a852d
Compare
Choose a tag to compare
  • Feature: Support scrolling to elements (#115, #116)

v0.9.2

01 Apr 17:20
v0.9.2
1980638
Compare
Choose a tag to compare
  • Bugfix: Don't check initial scroll position to avoid browser quirks (#110)

v0.9.1

05 Nov 04:38
v0.9.1
9ae5899
Compare
Choose a tag to compare
  • Chore: Remove ES module build to avoid issues with transpiled imports in webpack 2 (#108)

v0.9.0

04 Nov 23:11
v0.9.0
aee5f24
Compare
Choose a tag to compare

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 of ScrollBehavior objects to allow integrate with other history management libraries (#107)
  • Breaking: Remove readPosition method on ScrollBehavior; the read method on the provided stateStorage object exposes the same data (#107)

v0.8.2

04 Oct 22:27
v0.8.2
7940ee8
Compare
Choose a tag to compare
  • Refactor: Use createHref instead of createPath to minimize used surface area of history API (#100)

v0.8.1

06 Aug 02:12
v0.8.1
2206538
Compare
Choose a tag to compare
  • Bugfix: Fix CommonJS exports to not require .default (#98)

v0.8.0

06 Aug 01:10
v0.8.0
1aedd4e
Compare
Choose a tag to compare
  • Breaking: Change ScrollBehavior to take a shouldUpdateScroll function at construction time, and change updateScroll to take the previous and next context for shouldUpdateScroll callbacks (#91, #94)
  • Feature: Add registerScrollElement method to extended history for managing scroll behavior of elements other than window (#86, #91, #94)

v0.7.0

06 May 06:49
v0.7.0
1ccca3b
Compare
Choose a tag to compare
  • Breaking: Take getCurrentLocation instead of getCurrentKey in ScrollBehavior constructor (#72)
  • Breaking: Remove scrollPosition from location.state (#73)
  • Feature: Support hash histories without query key (#74)

v0.6.1

03 May 16:18
v0.6.1
8eb253d
Compare
Choose a tag to compare