Releases: SupremeTechnopriest/react-idle-timer
Releases · SupremeTechnopriest/react-idle-timer
4.5.1
✨ Enhancements
- Added the ability to set
timeoutdynamically in the useIdleTimer hook. Doing so will automatically reset the timer if it is active.
4.5.0
⚡️ Features
- Added
getLastIdleTimeandgetTotalIdleTimemethods.
✨ Chores
- Refactor
getTotalActiveTimeto be accurate in more scenarios. - Switched from Travis CI to Github Actions.
4.4.2
✨ Chores
- Update peerDependencies to support React versions greater than 16.
4.4.1
✨ Enhancements
- Reduce bundle size by excluding examples from npm package.
📝 Documentation
- Update README.md.
4.4.0
⚡️ Features
- Added
getTotalActiveTimemethod. It returns the total time in milliseconds the user was active.
4.3.7
🐞 Bugfixes
- Added more event types to typescript definition.
- Fixed a type-o in the default events (
mouseWheel->mousewheel).
4.3.6
✨ Chores
- Fixed a type-o in the README examples.
This was causing some confusion and warranted a version bump to update the README on NPM as well.
4.3.5
🐞 Bugfixes
- Fixed a regression affecting older minifiers that don't know how to deal with
letandconst. Re-implemented babel to transpile back tovar.
4.3.4
🐞 Bugfixes
- Fixed a small regression that prevented
onActionfrom being throttled or debounced.
4.3.2
🐞 Bugfixes
- Fixed an issue where callback functions were not being updated within the
useIdleTimerhook.