Skip to content

Releases: wojtekmaj/react-clock

v5.0.0

29 Apr 09:13
5894abe
Compare
Choose a tag to compare

❗️ = breaking change

What's changed?

  • Added support for React 19.
  • ❗️ New JSX transform is now required. Most likely, you’re already using it, but if you’re not, you’ll need to enable it by following the instructions in the linked blog post.
  • ❗️ propTypes were removed. If you’re using propTypes, we recommend migrating to TypeScript or another type-checking solution.

v4.6.0

09 Dec 21:21
1a64c4c
Compare
Choose a tag to compare

What's new?

  • Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
  • Improved documentation.

v4.5.1

18 Oct 13:05
7ab731e
Compare
Choose a tag to compare

What's new?

v4.5.0

27 Jul 11:09
888db20
Compare
Choose a tag to compare

What's new?

  • Added support for native ESM modules (#210).

Bug fixes

  • HourMark and MinuteMark components are now memoized to prevent them from re-rendering unnecessarily.

v4.4.0

26 Jul 09:05
a4569e2
Compare
Choose a tag to compare

What's new?

  • Added support for millisecond precision via useMillisecondPrecision prop. Thanks, @arcataroger!

Bug fixes

  • @types/react and @types/react-dom are now optional peerDependencies, which eliminates errors caused by duplicate typings.
  • Fixed hour hand angle off by a fraction of a degree due to angle miscalculation for seconds. Yeah, awkward: you had one job!

v4.3.0

16 Jul 08:12
1ea04ea
Compare
Choose a tag to compare

What's new?

  • ClockProps type is now exported for your convenience.

What's changed?

  • Updated clsx dependency to 2.0.0 to enable ESM support in the near future.

v4.2.0

03 Apr 19:36
8e10aac
Compare
Choose a tag to compare

What's new?

  • Added named export support.

Bug fixes

  • Fix className and value props unnecessarily too restrictive.

v4.1.0

02 Feb 11:00
281a7de
Compare
Choose a tag to compare

What's new?

  • Converted package to TypeScript (#122).
  • Allowed more flexible size values.

v4.0.0

08 Nov 10:26
b8237e8
Compare
Choose a tag to compare

Note: React <16.8 is not supported. If you're still using React older than 16.8, please use react-clock@^3.0.0 instead.

❗️ = breaking change

What's changed?

  • ❗️ Minimum React version is now 16.8.
  • Replaced merge-class-names with clsx.

v3.1.0

04 Feb 12:03
2fa3f71
Compare
Choose a tag to compare

What's new?

  • Added support for React 18.