Releases: vydimitrov/use-elapsed-time
Releases · vydimitrov/use-elapsed-time
v3.0.3
v3.0.2
Fix an issue where reset
method did not check if the newStartAt
value is a number
v3.0.1
- Fix an issue where the new updateInterval prop didn't really respect that elapsed time. Now, for example, if it is set to 10 seconds then the next update will be exactly after 10 seconds.
- newStartAt value can now be passed to the onComplete callback as well as the reset method. This feature was available in v2 of the hook and it is implemented again in v.3
v3.0.0
The hooks is now written in TypeScript.
Breaking Changes:
- IE is not longer supported
autoResetKey
props has been deprecatedreset
method of the hook return value no longer acceptsnewStartAt
. When it is fired the animation will start over from the initially providedstartAt
valueonComplete
return value does not acceptnewStartAt
New features:
updateInterval
prop now controls how often the hook should rerender. Set as a number in secondsonUpdate
callback will be fired with the current elapsed time when theelapsedTime
changes.
Chore:
- example folder is added, which can we be used for development or testing the hook
v2.1.8
- Update dependencies
- Add list of supported browsers
v2.1.7
chore: update dependencies
v2.1.6
In this release the Renovate app is added to the repo and all dependency versions are dumped. No new features are introduced.