React Calendar Versions Save

Ultimate calendar for your React app.

v5.0.0

2 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.
  • ❗️ 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

4 months ago

What's new?

  • Added support for showNeighboringCentury and showNeighboringDecade props.`

What's changed?

  • Replaced tiny-warning with more popular (and equally tiny!) warning.

Bug fixes

  • Fixed disabled neighboring tiles text color.

v4.7.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.6.1

6 months ago

What's new?

  • Package is now published with npm provenance statements.
  • Exported OnArgs type to make it easier to create custom on… callbacks (#897). Thanks, @meszaros-lajos-gyorgy!
  • Exported TileArgs type to make it easier to create custom tileClassName, tileContent, tileDisabled functions.

Bug fixes

  • Fix weekend indicators ignoring calendarType prop (#902). Thanks, @abukati!

v4.6.0

9 months ago

What's new?

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

What's changed?

  • Improved propTypes.
  • Strengthened TypeScript types.
  • Refactored tile rendering.

Bug fixes

  • Fixed propTypes declared twice in every declaration file.

v4.5.0

9 months ago

What's new?

  • Improved RSC compatibility. You no longer need to add 'use client'; to the parent component for this component to work.

Bug fixes

  • @types/react and @types/react-dom are now optional peerDependencies, which eliminates errors caused by duplicate typings.

v4.4.0

9 months ago

What's new?

  • NavigationLabelFunc, OnClickFunc, OnClickWeekNumberFunc, TileClassNameFunc, TileContentFunc and TileDisabledFunc types are now exported for your convenience.

What's changed?

  • Renamed calendar types passed to calendarType prop to match Intl.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 to 2.0.0 to enable ESM support in the near future.

v4.3.0

11 months ago

Thanks to internal improvements, this is our smallest release ever, down to just 10kB Gzipped! 🥳

What's new?

  • CalendarProps type is now exported for your convenience (#866).
  • Rewritten package using React Hooks (#858).
  • Improved RTL language support (#841).

v4.2.1

1 year ago

Bug fixes

  • Improved type accuracy for value prop and all callbacks (it's now explicitly [Date, Date] instead of Date[]).
  • Fixed types for onDrillDown and onDrillUp props.
  • Fixed types for tileClassName not allowing null or undefined return values.
  • Fixed React.ComponentProps<typeof Calendar> incorrectly marking props with default values as required.

v4.2.0

1 year ago

What's new?

  • Allowed array of strings to be passed as value.