Releases: wojtekmaj/react-calendar
Releases · wojtekmaj/react-calendar
v5.1.0
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 usingpropTypes
, we recommend migrating to TypeScript or another type-checking solution. - ❗️ Dropped support for deprecated
calendarType
values. If you're running React-Calendar v4.4.0 or newer, and followed documentation and deprecation warnings, you should be fine.
v4.8.0
v4.7.0
v4.6.1
What's new?
- Package is now published with npm provenance statements.
- Exported
OnArgs
type to make it easier to create customon…
callbacks (#897). Thanks, @meszaros-lajos-gyorgy! - Exported
TileArgs
type to make it easier to create customtileClassName
,tileContent
,tileDisabled
functions.
Bug fixes
v4.6.0
v4.5.0
v4.4.0
What's new?
NavigationLabelFunc
,OnClickFunc
,OnClickWeekNumberFunc
,TileClassNameFunc
,TileContentFunc
andTileDisabledFunc
types are now exported for your convenience.
What's changed?
- Renamed calendar types passed to
calendarType
prop to matchIntl.Locale.calendar
. Thanks to this change, we will be able to support many more calendar types in the near future! Don't worry - old values are still supported, but will be deprecated in the future. - Updated
clsx
dependency to2.0.0
to enable ESM support in the near future.
v4.3.0
v4.2.1
Bug fixes
- Improved type accuracy for value prop and all callbacks (it's now explicitly
[Date, Date]
instead ofDate[]
). - Fixed types for
onDrillDown
andonDrillUp
props. - Fixed types for
tileClassName
not allowingnull
orundefined
return values. - Fixed
React.ComponentProps<typeof Calendar>
incorrectly marking props with default values as required.