Use Elapsed Time Versions Save

React hook to measure elapsed time using requestAnimationFrame

v3.0.3

2 years ago

Big fix:

  • Replay the animation when the duration increases after the initial animation is over

Improvements:

  • Update codecov pipeline to report test coverage

3.0.2

2 years ago

Fix an issue where reset method did not check if the newStartAt value is a number

v3.0.1

2 years ago
  • 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

2 years ago

The hooks is now written in TypeScript.

Breaking Changes:

  • IE is not longer supported
  • autoResetKey props has been deprecated
  • reset method of the hook return value no longer accepts newStartAt. When it is fired the animation will start over from the initially provided startAt value
  • onComplete return value does not accept newStartAt

New features:

  • updateInterval prop now controls how often the hook should rerender. Set as a number in seconds
  • onUpdate callback will be fired with the current elapsed time when the elapsedTime changes.

Chore:

  • example folder is added, which can we be used for development or testing the hook

2.1.8

2 years ago
  • Update dependencies
  • Add list of supported browsers

2.1.7

3 years ago

chore: update dependencies

2.1.6

3 years ago

In this release the Renovate app is added to the repo and all dependency versions are dumped. No new features are introduced.