Skip to content

Releases: ganderzz/react-scroll-to

3.0.0-beta.4

08 Feb 04:19
Compare
Choose a tag to compare
  • Remove External dependencies from library (reducing package size!)
  • Fix SSR issues with window not found

2.0.10

19 Jul 14:06
d5dd559
Compare
Choose a tag to compare
  • Include multiple security fixes with dependent packages

2.0.6

11 May 01:30
8d53f6d
Compare
Choose a tag to compare

Fix types with Typescript when using #98

2.0.4

13 Jan 05:46
52fffed
Compare
Choose a tag to compare
  • Fix issue where type definitions used ReactNode instead of JSX (#89)

2.0.3

13 Jan 05:25
51620ad
Compare
Choose a tag to compare
  • Fix issue where scrolling by ref wouldn't work on React Nodes (#90)

v2.0.2

09 Dec 05:39
2b5cc2f
Compare
Choose a tag to compare
  • Implement backwards compatibility with React 15.x.x (#84)

v2.0.1

08 Nov 03:13
d4c9cdc
Compare
Choose a tag to compare
  • Add fix to Webpack's UMD build to allow for SSR (#82)

2.0.0

03 Nov 17:37
8a2e91e
Compare
Choose a tag to compare

Introducing a new API for React-Scroll-To that'll allow more flexibility!

#56

Notable features:

  • Added the ability to scroll by a ref object
  • Added the ability to smooth scroll
  • Added cleaner destructuring in render props
  • Updated scroll and scrollById functions to be a singular scrollTo function
  • scrollTo() not accepts an object that allows some fields to be left out (No longer need to include the 'x' position if we're only scrolling by 'y')
  • Added Storybook docs to visualize and test features

Example:

scrollTo({
  x: 25 // The horizontal x position to scroll to
  y: 10 // The vertical y position to scroll to
  id: "myId" // The ID of the ScrollArea we want to scroll
  ref: refObj // A reference to a component to scroll
  smooth: true // If true, this will animate the scroll to be smooth. False will give an instant scroll. (defaults: false)
});

2.0.0-alpha.1

21 Oct 18:39
8a608c7
Compare
Choose a tag to compare
2.0.0-alpha.1 Pre-release
Pre-release

Docs: https://github.com/ganderzz/react-scroll-to/tree/release/2.0.0

Prerelease of the 2.0.0 features.

  • Added the ability to smooth scroll
  • Added the ability to scroll an element by ref
  • Updated API to be more declarative
  • Added React Storybook for examples and documentation
  • Update to latest version of React and dependencies
  • Consolidate multiple methods into one scrollTo

1.2.3

19 Oct 19:32
8a608c7
Compare
Choose a tag to compare
  • Added Typescript type definitions for the <ScrollArea /> component