React Clock Versions Save

An analog clock for your React app.

v5.0.0

3 weeks ago

❗️ = 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

5 months ago

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

7 months ago

What's new?

v4.5.0

9 months ago

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

9 months ago

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

10 months ago

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

1 year ago

What's new?

  • Added named export support.

Bug fixes

  • Fix className and value props unnecessarily too restrictive.

v4.1.0

1 year ago

What's new?

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

v4.0.0

1 year ago

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

2 years ago

What's new?

  • Added support for React 18.