Releases: wojtekmaj/react-clock
Releases · wojtekmaj/react-clock
v5.1.0
What's new?
- Decouple renderNumbers from renderHourMarks (#229).
Bug fixes
- Fixed
datetime
prop of <time>
element including current date, which does not make sense for a clock.
v5.0.0
❗️ = 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
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.0
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
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
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
What's new?
- Added named export support.
Bug fixes
- Fix
className
and value
props unnecessarily too restrictive.
v4.1.0
What's new?
- Converted package to TypeScript (#122).
- Allowed more flexible
size
values.
v4.0.0
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
.