Releases: SMAKSS/react-scroll-direction
v4.3.1
v4.3.0
4.3.0 (2026-02-01)
Bug Fixes
- ci: update artifact path from ./build/ to ./dist in CI workflow (4a3eccd)
- config: remove 'test' type from commitlint configuration (4239e34)
- exports: update exports field to include types and default entry point (cf48142)
- scripts: update typecheck:playground script to build before type checking (e171e67)
- workflow: move pnpm action setup step for clarity (fa534a0)
- workflow: update npm publish workflow to support OIDC and npm CLI version (7d1e362)
- workflow: update release step for develop branch to remove dry run (fc3638a)
Features
- build: enhance build scripts to clean dist directory before building and update Vite configuration (62b8f8c)
- ci: allow PR checks on develop branch in CI workflow (dc500df)
- ci: update Node.js setup to use .nvmrc for version management and enhance release process with dry run for develop branch (86e38be)
- core: Update project to use pnpm, add playground for testing, and enhance ESLint configuration (1026ea3)
- docs: add Copilot and AGENTS instructions for automation and project behavior (ef2896f)
- release: update release process to include develop branch and enhance configuration (3cf6dbd)
v4.3.0-develop.4
4.3.0-develop.4 (2026-02-01)
Bug Fixes
- dependencies: update
viteand@vitejs/plugin-reactto latest versions (3ffda40)
v4.3.0-develop.3
4.3.0-develop.3 (2026-02-01)
Bug Fixes
- config: remove 'test' type from commitlint configuration (4239e34)
v4.3.0-develop.2
4.3.0-develop.2 (2026-02-01)
Bug Fixes
- workflow: update npm publish workflow to support OIDC and npm CLI version (7d1e362)
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
useDetectScrollHook: Added a new feature to allow specifying target elements for theuseDetectScrollhook. 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.jsontoeslint.config.js. - Updating lint scripts to be compatible with the new configuration format.
- Using the
ignoresproperty ineslint.config.jsto 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