Releases: SMAKSS/react-scroll-direction
v4.2.0-beta.2
Full Changelog: v4.2.0-beta.1...v4.2.0-beta.2
v4.2.0-beta.1
Full Changelog: v4.2.0-beta.0...v4.2.0-beta.1
v4.2.0-beta.0
What's Changed
- feat: add the ability to specify a scrollable target element for tracking scroll direction by @CXBoyy in #311
New Contributors
Full Changelog: v4.1.0...v4.2.0-beta.0
🚀 Release Notes for v4.2.0
What's Changed
- feat: add the ability to specify a scrollable target element for tracking scroll direction by @CXBoyy in #311
- [Release] Allow specifying a custom scrollable element by @SMAKSS in #312
New Contributors
🆕 New Features
- Target Elements for
useDetectScroll
Hook: Added a new feature to allow specifying target elements for theuseDetectScroll
hook. This enhancement enables end users to apply this hook to containers other thanwindow
. 🆕🎯
🔄 Changes
-
ESLint Upgrade: Upgraded all dependencies, including upgrading ESLint to version 9.x.x, which necessitated changes to the ESLint settings for the project. This includes:
- Migrating from
.eslintrc.json
toeslint.config.js
. - Updating lint scripts to be compatible with the new configuration format.
- Using the
ignores
property ineslint.config.js
to replace.eslintignore
. 🔄
- Migrating from
-
Code Organization: Organized exports by creating specific files for types and the main code, and only exporting necessary functionalities from
index.ts
. This improves the structure and maintainability of the codebase. 📁📦
🙏 Acknowledgments
Special thanks to our contributors:
- @EvgenyOrekhov
- @punkpeye
- Especially @CXBoyy
Your contributions are greatly appreciated! 🎉👏
Full Changelog: v4.1.0...v4.2.0
Release Notes for @smakss/react-scroll-direction v4.1.0
We are excited to announce the release of @smakss/react-scroll-direction
version 4.1.0. This version brings several improvements and bug fixes that enhance the functionality and usability of our React scroll direction detection hook.
What's New
-
Improvements:
- Enhanced the scroll position detection accuracy, especially near page boundaries.
- Updated documentation with more examples and use cases to help developers integrate the hook into their projects more easily.
-
Bug Fixes:
- Fixed an issue where the scroll direction incorrectly reported as "down" when scrolling the page.
Acknowledgments
A big thank you to @astralarya, @KubaZachacz and the community for their continuous support and feedback, which have been invaluable in making this release possible.
What's Changed
Full Changelog: v4.0.4...v4.1.0
v4.0.4-beta.0
Full Changelog: v4.0.3...v4.0.4-beta.0
Upgrade dependencies to their latest stable version
v4.0.4 chore(version): upgrade to stable version 4.0.4
Include types path in package.json
v4.0.3 chore(core): add types path
Include source map
v4.0.2 chore(core): include sourcemap into distribution
Fix package config and distribution
v4.0.1 chore(core): fix package rollup config and distribution