react-scrollbar-size

React hook to calculate the size of browser scrollbars.

MIT License

Downloads
112.4K
Stars
28
Committers
7
react-scrollbar-size - 5.0.0 Latest Release

Published by shawnmcknight over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/shawnmcknight/react-scrollbar-size/compare/4.0.0...5.0.0

react-scrollbar-size - Release 4.0.0

Published by shawnmcknight over 3 years ago

BREAKING CHANGE

Deprecated the legacy component syntax in favor of the custom hook syntax introduced in #263. The custom hook is now the default export from the library. See the README for information on how to use the custom hook syntax.

react-scrollbar-size - Release 4.0.0-rc.0

Published by shawnmcknight over 3 years ago

BREAKING CHANGE

Deprecated the legacy component syntax in favor of the custom hook syntax introduced in #263. The custom hook is now the default export from the library. See the README for information on how to use the custom hook syntax.

react-scrollbar-size - Release 3.2.0

Published by shawnmcknight over 3 years ago

This release introduces the useScrollbarSize custom hook to provide the same functionality to detect scrollbar size changes as the existing component based syntax. This syntax is significantly easier to utilize as a consumer and should be considered the default way to utilize this library. All documentation has been updated to reference this approach and the component syntax should be considered legacy at this point.

The component syntax will be deprecated in a future major release.

react-scrollbar-size - Release 3.1.1

Published by shawnmcknight over 3 years ago

  • Minor changes to links requiring republish. No user facing changes.
react-scrollbar-size - Release 3.1.0

Published by shawnmcknight almost 4 years ago

react-scrollbar-size - Release 3.0.1

Published by shawnmcknight over 4 years ago

  • Internalized debounce function (#30 by @shawnmcknight)
    • Repo now has zero production dependencies!
react-scrollbar-size - Release 3.0.0

Published by shawnmcknight over 4 years ago

BREAKING CHANGE

  • Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated (#11) @shawnmcknight
    • The API has been changed significantly; there are no longer separate onLoad and onChange props in favor of a single onChange prop. The callback for onChange returns height and width instead of scrollbarHeight and scrollbarWidth.
react-scrollbar-size - Release 3.0.0-rc.0

Published by shawnmcknight over 4 years ago

BREAKING CHANGE

  • Library has been completely rewritten in TypeScript, complies with React >=16.8, and all tooling has been updated (#11) @shawnmcknight
    • The API has been changed significantly; there are no longer separate onLoad and onChange props in favor of a single onChange prop. The callback for onChange returns height and width instead of scrollbarHeight and scrollbarWidth.
react-scrollbar-size - 2.1.0

Published by shawnmcknight over 6 years ago

  • Lodash as a peerDependency was causing missing peerDependency errors. Lodash peerDep replaced with stifle dep
  • Bump several dependency versions
  • Configure npm to not generate package-lock file
react-scrollbar-size - 2.0.0

Published by shawnmcknight over 7 years ago

May 30, 2017

Major version bump to facilitate new dependency requirements:

  • Make react a peerDependency to avoid running module duplication (#3) @shawnmcknight
  • Make lodash a peerDependency due to its common use and avoid inflating build size unnecessarily @shawnmcknight
react-scrollbar-size - 1.0.2

Published by shawnmcknight over 7 years ago

May 28, 2017
  • Remove separate lodash modules in favor of direct import of functions @shawnmcknight
  • Add support for prettier and update libraries to conform to rules @shawnmcknight
  • Update all dependencies to latest version and make updates to conform to API changes @shawnmcknight
  • Update all devDependencies to latest version and make updates to conform to API changes @shawnmcknight
  • Eliminate usage of lodash isEqual in favor of separate instance variables @shawnmcknight
  • Updated test suite to check for returned values rather than simply calling @shawnmcknight
react-scrollbar-size - 1.0.1

Published by shawnmcknight over 7 years ago

Apr 26, 2017
  • Cancel throttled events when unmounting component @shawnmcknight
react-scrollbar-size - 1.0.0

Published by shawnmcknight over 7 years ago

Apr 17, 2017
  • Add unit tests through mocha/chai/enzyme to reach 100% code coverage @shawnmcknight
  • Add code coverage tooling through istanbul/nyc @shawnmcknight
  • Update to React separate prop-types package @shawnmcknight
  • Update all dependencies to latest versions @shawnmcknight
  • Correct instruction link in README @shawnmcknight
Package Rankings
Top 2.73% on Npmjs.org
Badges
Extracted from project README
npm package npm downloads Code Climate Code Style Code style Dependencies Percentage of issues still open Contributor Covenant Star on Github
Related Projects