Releases: SupremeTechnopriest/react-idle-timer
Releases Β· SupremeTechnopriest/react-idle-timer
4.6.4
π Bug Fixes
- Make IdleTimer
ref
optional 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
legacy
sub-module. See the README announcement for more information.
π Bug Fixes
- Add missing
ref
to TypeScript definitions. - Fixed a bug where reset would not propagate cross tab.
4.6.2
β¨ Enhancements
- Allow for dynamically setting
onActive
andonIdle
event handlers in conjunction with cross tab event reconciliation.
4.6.1
β¨ Enhancements
- When
emitOnAllTabs
is set totrue
,start
,reset
,pause
andresume
will be called on all tabs. - Calling
reset
will now automatically fireonActive
while callingstart
will 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
localStorage
method would not callidle
if there wasn't any user activity on the page. - Fixed an issue where the
TabManager
would 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
startManually
configuration option to enable starting of the timer and activity detection manually. An alias toreset()
calledstart()
is also exposed to keep the code more semantic. IfstartManually
is set totrue
, theIdleTimer
component anduseIdleTimer
hook 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
resume
andpause
from inside auseEffect
will now properly bind and unbind events.
4.5.5
π Bugfixes
- Setting a timeout dynamically will now call
onActive
if 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
timeout
dynamically in the IdleTimer Component. Doing so will automatically reset the timer if it is active.