Skip to content

Releases: rommguy/react-custom-scroll

React 18 + types + infra rewrite

02 Mar 11:34
Compare
Choose a tag to compare

This is a major release, containing breaking changes that was long time coming.

Improvements:

  1. The implementation is now in TypeScript and the types are exported together with the package - no need to install @types/react-custom-scroll anymore.
  2. react-custom-scroll now supports React 18.
  3. Rewritten the whole build infra, using Vite.
  4. Moved to styled components - no need to add the customScroll css file to your code.
  5. Upgraded demo page including multiple use cases
  6. Bug fix - blocking outer scroll behavior
  7. Bug fix - nested react-custom-scroll elements that caused the handle to appear on all of them
  8. 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

06 Feb 20:29
Compare
Choose a tag to compare

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

22 Jan 18:48
Compare
Choose a tag to compare

Remove security warnings - update dependencies

27 Jan 13:04
Compare
Choose a tag to compare

Remove security issues - update all dev dependencies

11 Feb 19:05
Compare
Choose a tag to compare

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

27 Aug 13:44
Compare
Choose a tag to compare

React 16 compatibility

24 Jun 10:33
Compare
Choose a tag to compare

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

23 Jun 12:52
Compare
Choose a tag to compare

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

17 Aug 19:22
Compare
Choose a tag to compare

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.

bug fix

26 May 14:42
Compare
Choose a tag to compare

remove usage of toJSON - not supported in openfin env