- Updated
package-lock.jsonto avoid vulnerable dependencies reported bynpm audit
- Updated
package-lock.jsonto 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 Scrollchormust 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.easingconfiguration 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 containerfeature,targetprop. Thanks to @xephuk dedicated effort. - @xehpuk join
React-SchollchorTeam - minor Doc corrections
- Replace internal function
updateHistoryimplementation for prevent scroll jumps on browser history update
- Now each
Scrollchorinstance has its ownanimateScrollfunction 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 animateScrollis 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
disableHistoryprop 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.bashneeded by browser history,back/forwardbuttons - 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
toprop work with and without `#- Add example
- Add demo
- Initial release