Releases: SupremeTechnopriest/react-idle-timer
Releases · SupremeTechnopriest/react-idle-timer
4.6.4
🐞 Bug Fixes
- Make IdleTimer
refoptional in typedefs. This prevents the API from breaking previous versions and really should be optional anyway.
4.6.3
✨ Enhancements
- Exported a bundle for modern browsers.
This will become the default export in version 5. CommonJS/ Babel compiled source will be provided by the
legacysub-module. See the README announcement for more information.
🐞 Bug Fixes
- Add missing
refto TypeScript definitions. - Fixed a bug where reset would not propagate cross tab.
4.6.2
✨ Enhancements
- Allow for dynamically setting
onActiveandonIdleevent handlers in conjunction with cross tab event reconciliation.
4.6.1
✨ Enhancements
- When
emitOnAllTabsis set totrue,start,reset,pauseandresumewill be called on all tabs. - Calling
resetwill now automatically fireonActivewhile callingstartwill not. Otherwise these two methods are functionally equivalent.
🐞 Bug Fixes
- Fixed a type-o in propTypes, typescript definitions and docs.
- Fixed an issue where the
localStoragemethod would not callidleif there wasn't any user activity on the page. - Fixed an issue where the
TabManagerwould not deregister itself when the tab was closed if it was not the leader tab.
4.6.0
⚡️ Features
- Added cross tab event reconciliation. See examples and README for usage and documentation.
- Added an
isLeader()method that returns a boolean indicating wether or not the current tab is the lead orchestrator for cross tab reconciliation. - Added a
startManuallyconfiguration option to enable starting of the timer and activity detection manually. An alias toreset()calledstart()is also exposed to keep the code more semantic. IfstartManuallyis set totrue, theIdleTimercomponent anduseIdleTimerhook wont start untilreset()orstart()are called.
✨ Enhancements
- Updated test suite. 100% test coverage and new utilities to help with run speed.
🐞 Bugfixes
- Fixed a bug where throttle and debounce wouldn't work at higher values in useIdleTimer.
4.5.6
🐞 Bugfixes
- Calling
resumeandpausefrom inside auseEffectwill now properly bind and unbind events.
4.5.5
🐞 Bugfixes
- Setting a timeout dynamically will now call
onActiveif the user is idle.
4.5.4
🐞 Bugfixes
- Bind
getLastIdleTime()to component scope making the method callable from the IdleTimer component.
4.5.3
🐞 Bugfixes
- Bind
getTotalActiveTime()andgetTotalIdleTime()to component scope making the methods callable from the IdleTimer component.
4.5.2
✨ Enhancements
- Added the ability to set
timeoutdynamically in the IdleTimer Component. Doing so will automatically reset the timer if it is active.