Releases: rommguy/react-custom-scroll
React 18 + types + infra rewrite
This is a major release, containing breaking changes that was long time coming.
Improvements:
- The implementation is now in TypeScript and the types are exported together with the package - no need to install @types/react-custom-scroll anymore.
- react-custom-scroll now supports React 18.
- Rewritten the whole build infra, using Vite.
- Moved to styled components - no need to add the customScroll css file to your code.
- Upgraded demo page including multiple use cases
- Bug fix - blocking outer scroll behavior
- Bug fix - nested react-custom-scroll elements that caused the handle to appear on all of them
- Switched from karma test runner to Playwright (still in progress to achieve higher coverage)
Migrating from v5 or earlier
Remove react-custom-scroll css file from your project
Switch to named import
import { CustomScroll } from "react-custom-scroll";
Enjoy
v5.0.0 React 18
Upgrade to react 18.
- Remove usages of findDOMNode - use ref instead
- Update example to render with createRoot instead of reactDOM.render
Upgrade dependencies - handle security warnings
v4.4.0 4.4.0
Remove security warnings - update dependencies
v4.2.2 4.2.2
Remove security issues - update all dev dependencies
Github found some security issues in 2nd tier dev dependencies - this release was built after updating all dev dependencies to their latest version
Clean debounce memory leak, update build dependencies
React 16 compatibility
Remove usage of componentWillReceiveProps - deprecated in React 16
Update dev dependencies and run tests against latest react version 16.8.6
Remove passive event warnings
Bug fixes
Fix server side rendering bug - update webpack config.
Fix bug when content size changes to non scrollable and back to scrollable - after such a change, a click on the content used to change the scroll position (and shouldn't)
Update dev dependencies - test runner and prettier
Add 'rcs' prefix to all css classes to avoid clashes
This release solved #43
It may break existing functionality, since the class names have changed - so a major version.
My apologies if something broke because of this change, but it is needed.