vydimitrov / react-countdown-circle-timer

Lightweight React/React Native countdown timer component with color and progress animation based on SVG
MIT License
692 stars 87 forks source link

chore(deps): update dependency use-elapsed-time to v3 #172

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
use-elapsed-time 2.1.8 -> 3.0.1 age adoption passing confidence

Release Notes

vydimitrov/use-elapsed-time ### [`v3.0.1`](https://togithub.com/vydimitrov/use-elapsed-time/blob/master/CHANGELOG.md#​301-June-20th-2021) [Compare Source](https://togithub.com/vydimitrov/use-elapsed-time/compare/v3.0.0...v3.0.1) **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 ### [`v3.0.0`](https://togithub.com/vydimitrov/use-elapsed-time/blob/master/CHANGELOG.md#​300-June-18th-2021) [Compare Source](https://togithub.com/vydimitrov/use-elapsed-time/compare/2.1.8...v3.0.0) 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

Configuration

📅 Schedule: "before 3am on the first day of the month" (UTC).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

codecov-commenter commented 3 years ago

Codecov Report

Merging #172 (bdbd4ea) into master (03fac58) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #172   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files           9        9           
  Lines         197      197           
  Branches       53       53           
=======================================
  Hits          192      192           
  Misses          5        5           
Flag Coverage Δ
mobile 95.23% <ø> (ø)
web 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 03fac58...bdbd4ea. Read the comment docs.