5.5.0
SupremeTechnopriest
released this
25 Jan 02:45
·
52 commits
to master
since this release
⚡️ Features
- Add
isLastActiveTab
method. #294 - Add
getActiveTime
andgetIdleTime
methods. #301 - Add
onPresenceChange
event handler. #319
✨ Enhancements
- Idle state now defaults to false. #304
- Add checks on max timeout values. #316
- Deprecate
promptTimeout
in favor ofpromptBeforeIdle
. #318 - Better typescript docs for
activate
method. #319 - Improve Higher Order Component and class component support.
🐞 Bug Fixes
- Use date timestamps everywhere to prevent issues when devices sleep. #281
- Fix a bug where class components would not preserve this context in IdleTimer methods. #309
- Fix a bug where
onActive
was called on every action whensyncTimers
was set. #320 - Fix a bug where the mounting of the IdleTimer hook was delayed.