Skip to content

Change the folder hierarchy and export types

Compare
Choose a tag to compare
@SMAKSS SMAKSS released this 19 May 23:55
· 135 commits to master since this release
41a72a7

Release Notes

We're excited to announce a few important updates that aim to improve the organization and usage of our package:

  • 📁 Folder Hierarchy Change: We've restructured the folder hierarchy for better organization and to follow best practices. This change should make the project structure more transparent and more intuitive, thus improving the overall developer experience.

  • 🏷️ Exported Types: We are now exporting our types for enhanced usability and consistency across your projects. You can now import and utilize Axis and Direction in other parts of your application as needed.

⚠️ Breaking Changes

  • ♻️ Importing the Custom Hook: In this version, we've changed how you import the useDetectScroll custom hook. Previously, it was a named import (import { useDetectScroll } from '@smakss/react-scroll-direction';). However, it should now be imported as a default import (import useDetectScroll from '@smakss/react-scroll-direction';). Please update your import statements to reflect this change.

As always, thank you for your support and understanding as we continue improving. We hope these changes provide a more efficient and effective development experience. If you have any questions or need assistance, please don't hesitate to reach out.