Skip to content

Releases: vydimitrov/react-countdown-circle-timer

v3.2.1

15 Mar 07:26
edbd3f2
Compare
Choose a tag to compare

Fix

  • Build packages before publish to include changes from v.3.2.0

v3.2.0

15 Mar 07:15
c778b6b
Compare
Choose a tag to compare

Features

  • Add isGrowing prop that indicates if the progress should grow instead of shrink. Thanks @bonqus!

Fix

  • Workflow action to run tests and publish results

v3.1.0

28 Nov 07:10
Compare
Choose a tag to compare

Features:

  • Add viewBox prop to the svg element for the wen and mobile packages. The viewBox prop will make the countdown timer responsive and it will adjust its size according to the element outside.

v3.0.9

04 Mar 09:02
Compare
Choose a tag to compare

Fix

  • Fix for #193. This is fix for the issue where types for the hook are referenced by the shared package, which is not exported. To solve the problem now we copy the types from the shared package and add them to each package when bundling the code. This is not the best solution but it is the simplest. Once we have a good way to bundle types from monorepo this can be changed.

v3.0.8

29 Jan 12:04
Compare
Choose a tag to compare

Fix

Draft a new release since the previous one did not include the type fix

v3.0.7

29 Jan 11:59
Compare
Choose a tag to compare

Fix

Extend strokeLinecap to support "butt" option

v3.0.6

13 Jan 07:36
Compare
Choose a tag to compare

This release includes fixes for issues that were found after the v3 release:

Fixes

  • Fix README on both packages and sync up versions
  • The animating path is visible when the animation is over on Android. To fix it we check if the elapsed time is equal the duration
  • Upgrade use-elapsed-time to fix an issue where the newStartAt was not respected
  • Accept a new argument from onComplete that can control the initialRemainingTime
  • Move types close to the web and mobile packages since TypeScript can not reexport submodules. Issue microsoft/TypeScript#8305
  • Add README to mobile package
  • Add README for web package so it shows in NPM

v3.0.0

12 Jan 07:38
Compare
Choose a tag to compare

In v3 both packages - web and mobile are rewritten in TypeScript and bunch of improvements are added:

Improvements

  • The Web and Mobile packages are now written in TypeScript
  • PNPM is now used as package manager as well as to handle the monorepo
  • Webpack is replaced by Esbuild to bundle the code and run dev server
  • PropTypes are no longer required as peerDependencies. The component relays on the TypeScript types
  • New prop updateInterval is added to control how often the timer should be updated
  • New prop colorsTime is added to handle the times when a color should switch to the next color. This was part of the colors prop before
  • New prop isSmoothColorTransition indicates if the colors should smoothly transition to the next color or just change the color when the time comes
  • New event handler onUpdate will fire every time the time changes
  • Reduce overall bundle size and provide ES module export for the Web package

Breaking changes

  • IE is no longer supported
  • colors prop now is either: Single color in any valid color format or URL to a gradient; Array of colors in HEX format. At least 2 colors should be provided.
  • Gradient is no longer supported out of the box and isLinearGradient and gradientUniqueKey are now deprecated. The gradient can be set from outside of the component. Please refer to the recipes section.
  • ariaLabel and renderAriaTime are also deprecated. Refer to the recipes section to check how this can be implemented.
  • children prop now accepts only a render function and it does not take a React component as a children

React Native (mobile) changes

  • The Mobile package does not rely on AnimatedPath to animate the SVG path but instead it uses the animation event loop from use-elapsed-time. Thus now both packages - web and mobile share the same core logic to animate the path. Performance comparison shows that the later approach is much more performant.

v2.5.4

29 Aug 08:02
Compare
Choose a tag to compare

2.5.4 (2021-08-29)

Note: Version bump only for package countdown-circle-timer-monorepo

v2.5.3

13 May 18:41
Compare
Choose a tag to compare

2.5.3 (2021-05-13)

Bug Fixes

  • web: upgrade use-elapsed-time to 2.1.8 (9eb0166)