Skip to content

Releases: wojtekmaj/react-calendar

v5.0.0

29 Apr 09:50
f12d8a8
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.
  • ❗️ 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

09 Jan 13:35
366be6b
Compare
Choose a tag to compare

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

09 Dec 21:20
a498cb8
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.6.1

18 Oct 13:02
b7b65e2
Compare
Choose a tag to compare

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

27 Jul 13:20
0c5a8da
Compare
Choose a tag to compare

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

21 Jul 18:51
48688ff
Compare
Choose a tag to compare

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

16 Jul 08:10
69711f6
Compare
Choose a tag to compare

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

13 Jun 08:29
c8c3365
Compare
Choose a tag to compare

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

04 Apr 13:47
88f5da5
Compare
Choose a tag to compare

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

04 Apr 07:15
f512e14
Compare
Choose a tag to compare

What's new?

  • Allowed array of strings to be passed as value.