- Updated
package-lock.json
to avoid vulnerable dependencies reported bynpm audit
- Updated
package-lock.json
to avoid vulnerable dependencies reported bynpm audit
This new major version contains breaking changes.
- Everything has been rewritten in TypeScript, which brings with it published type definitions
- The default export has been removed in favor of a named export;
import Scrollchor
must be replaced withimport { Scrollchor }
- The
simulateClick()
API has been removed entirely - Scrollchor is now a function component and makes use of hooks introduced in React v16.8, which necessitated a minimum version bump for this
peerDependency
animation.easing
configuration is now documented and compatible with all the easing functions provided by jquery-easing- Added two additional built-in easing types for ease of use, borrowed from jQuery (
linear
,swing
)
Scrollchor
React component now belong to Some React Component
Organization Team. This move will ensure its future development and manteniance.
- Added configurable
scrollable container
feature,target
prop. Thanks to @xephuk dedicated effort. - @xehpuk join
React-Schollchor
Team - minor Doc corrections
- Replace internal function
updateHistory
implementation for prevent scroll jumps on browser history update
- Now each
Scrollchor
instance has its ownanimateScroll
function that track animation state and eliminates the possibility of multiple animations interfering with each other, thanks to @xehpuk PR
- Fix a state bug introduced on release
5.0.0
animateScroll
is now asynchronous, thanks to @xehpuk PR
- Add support for React 16.3.x new API
- Prevent warning on React 16.3.x deprecated
componentWillReceiveProps
- Prevent error when clicking a link to an anchor that does not exist. Thanks to @SBRK contribution
- Implemented animation using
requestAnimationFrame
. Thanks to @kambing86 PR
- Add
disableHistory
prop for enable/disable update browser history with scroll behaviours. Default isfalse
- Add support to changeable props. All props become responsive
- Add simulateClick API for animate scroll programmatically
- On childrenless Scrollchor render to
null
, useful for programmatically scroll - Add track to
window.location.bash
needed by browser history,back/forward
buttons - Source refactored
- Update Example and Demo
- Update Doc
- Add Credits
- Add React 15.5.x support
- Deprecate React 0.14 peer dependencie
- Add beforeAnimate/afterAnimate hooks to scroll handler
- Fix incorrect passed props to tag
- add fbjs peer dependencie
- improved doc
- Update package
to
prop work with and without `#- Add example
- Add demo
- Initial release