Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-elapsed-time

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-elapsed-time - npm Package Versions

23

3.0.4

Diff

Changelog

Source

3.0.4 (January 11th, 2022)

Big fix:

  • Fix an issue where the newStartAt from the onComplete handler was not respected
vydimitrov
published 3.0.3 •

Changelog

Source

3.0.3 (January 6th, 2022)

Big fix:

  • Replay the animation when the duration increases after the initial animation is over
vydimitrov
published 3.0.2 •

Changelog

Source

3.0.2 (September 5th, 2021)

Big fix:

  • Check if the value passed to reset is a number
vydimitrov
published 3.0.1 •

Changelog

Source

3.0.1 (June 20th, 2021)

Big fix:

  • 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.

Implemented enhancements:

  • 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
vydimitrov
published 3.0.0 •

Changelog

Source

3.0.0 (June 18th, 2021)

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
vydimitrov
published 2.1.8 •

Changelog

Source

2.1.8 (May 13th, 2021)

Chore:

  • Update dependencies
  • Add list of supported browsers
vydimitrov
published 2.1.7 •

Changelog

Source

2.1.7 (March 25th, 2021)

Chore:

  • Update dependencies
vydimitrov
published 2.1.6 •

Changelog

Source

2.1.6 (December 12th, 2020)

Chore:

  • Add Renovate and dump the versions of all dependencies
vydimitrov
published 2.1.5 •

Changelog

Source

2.1.5 (June 21st, 2020)

Big fix:

  • A warning is thrown by React that it can not update state on unmounted component when the hook component is unmounted from the onComplete callback and the callback returns shouldRepeat = true. Originally reported bug - https://github.com/vydimitrov/react-countdown-circle-timer/issues/28#issuecomment-645471853
vydimitrov
published 2.1.4 •

Changelog

Source

2.1.4 (June 3rd, 2020)

Big fix:

  • Fix an issue where pausing the animation once it is completed, resetting the timer and playing again it did not work.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc