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