Skip to content

Releases: vydimitrov/use-count-up

v3.0.1

05 Sep 13:24
Compare
Choose a tag to compare

Fix an issue where reset method was taking any kind of value as an argument. Now it checks if the value is a number. The fix comes from the use-elapsed-time hook.

v3.0.0

05 Sep 12:48
bfbffa1
Compare
Choose a tag to compare

Breaking Changes:

  • IE is not longer supported
  • autoResetKey props has been deprecated.
  • shouldUseToLocaleString and the whole setup to use the built-in toLocaleString out of the box has been deprecated. The same result can be achieved using the formatter function.
  • React PropTypes has been removed as well as the prop-types peer-dependency. The component and hook will rely on the TypeScript types.
  • prefix and suffix props has been deprecated. The same result can be achieved just by adding them to in front and behind the value.

New features:

  • updateInterval prop now determines how often the animated value will change. When set to 0 the value will update on each key frame (default behavior).
  • onUpdate callback will be fired with the current animated value when it changes.

Implemented enhancements:

  • bundle size is now even further reduced
  • esbuild is now used to bundle the code
  • example folder is added, which can be used for testing the hook and component

v2.3.1

25 Mar 08:55
Compare
Choose a tag to compare

chore: upgrade dependencies

v2.3.0

15 Jan 08:52
Compare
Choose a tag to compare
  • add a list of the supported browsers to package.json

v2.2.6

12 Jan 11:12
Compare
Choose a tag to compare
  • chore: Add renovate to the repo
  • chore: Update all packages

2.2.5 (2020-09-10)

10 Sep 15:01
Compare
Choose a tag to compare
  • upgrade rollup and rollup-terser packages