Releases: SupremeTechnopriest/react-idle-timer
Releases Β· SupremeTechnopriest/react-idle-timer
4.5.1
β¨ Enhancements
- Added the ability to set
timeout
dynamically in the useIdleTimer hook. Doing so will automatically reset the timer if it is active.
4.5.0
β‘οΈ Features
- Added
getLastIdleTime
andgetTotalIdleTime
methods.
β¨ Chores
- Refactor
getTotalActiveTime
to 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
getTotalActiveTime
method. 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
let
andconst
. Re-implemented babel to transpile back tovar
.
4.3.4
π Bugfixes
- Fixed a small regression that prevented
onAction
from being throttled or debounced.
4.3.2
π Bugfixes
- Fixed an issue where callback functions were not being updated within the
useIdleTimer
hook.