Releases: amrlabib/react-timer-hook
Releases · amrlabib/react-timer-hook
v3.0.8
What's Changed
- Bump follow-redirects from 1.15.2 to 1.15.4 by @dependabot in #104
- Bump @babel/traverse from 7.21.5 to 7.23.2 by @dependabot in #103
- fix: typo by @OFK0 in #105
New Contributors
Full Changelog: v3.0.7...v3.0.8
v3.0.7
What's Changed
- Bump json5 from 0.5.1 to 1.0.2 by @dependabot in #96
- fix: Fix type for time returns; should have a
totalSeconds
property… by @kilokeith in #98 - Bump semver from 5.7.1 to 5.7.2 by @dependabot in #99
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #100
New Contributors
- @kilokeith made their first contribution in #98
Full Changelog: v3.0.6...v3.0.7
V3.0.5
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
- Create
useInterval
hook to handle interval reference and correct callback function with updated state and props - Change
useTimer
,useStopwatch
anduseTime
implementation to useuseInterval
for cleaner code - Handle resume in
useTimer
in different way, instead of decrementing current seconds it will calculate the expiry timestamp and then work by calculating timestamp every second, this way it is more accurate - Support
autoStart
settings inuseTimer
- Support
autoStart
parameter inrestart
function inuseTimer
v2.0.7
v2.0.6
- Add demo on github pages https://amrlabib.github.io/react-timer-hook/