5.5.0
·
52 commits
to master
since this release
⚡️ Features
- Add
isLastActiveTabmethod. #294 - Add
getActiveTimeandgetIdleTimemethods. #301 - Add
onPresenceChangeevent handler. #319
✨ Enhancements
- Idle state now defaults to false. #304
- Add checks on max timeout values. #316
- Deprecate
promptTimeoutin favor ofpromptBeforeIdle. #318 - Better typescript docs for
activatemethod. #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
onActivewas called on every action whensyncTimerswas set. #320 - Fix a bug where the mounting of the IdleTimer hook was delayed.