Skip to content

Releases: wojtekmaj/react-calendar

v3.3.0

03 Jan 19:00
822f5b2
Compare
Choose a tag to compare

What's new?

  • Added definite support for years < 1000 (#472).

v3.2.1

18 Nov 11:53
96664fc
Compare
Choose a tag to compare

Bug fixes

  • Fixed an issue that caused some of the v3.2.0 features and changes not to be published.

v3.2.0

05 Nov 11:03
312891c
Compare
Choose a tag to compare

What's new?

  • Added value to onActiveStartDateChange and onViewChange callbacks arguments (#379).
  • Added event to onChange callback (#388).
  • Added inputRef prop to pass ref to main <div> rendered by <Calendar> component (#384).

What's changed?

  • Hide previous/next button when prevLabel/nextLabel is set to null (#436). Thanks, @benomatis!

v3.1.0

15 May 19:48
68f525b
Compare
Choose a tag to compare

What's new?

  • Added allowPartialRange which when set to true will cause onChange to be called with only partial result given selectRange prop (#351).
  • Added CSS classes to Navigation label items to allow better custom styling (#333). Thanks, @zigotica!
  • Added CSS classes to tiles to allow better styling of hovered date range (#373). Thanks, @bywo!

What's changed?

  • Refactored internals
  • Added unit tests
  • Improved documentation on hiding icons (#364). Thanks, @valtism!

Bug fixes

v3.0.1

29 Mar 11:09
Compare
Choose a tag to compare

Bug fixes

  • Don't call onActiveStartDateChange, onViewChange, onChange if the values didn't change (#344).

v3.0.0

09 Mar 08:53
85b5b6a
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • ❗️ React-Calendar now ships with ES6 Modules along with CommonJS modules. This allows for Webpack and other bundlers to optimize your code better.
  • React-Calendar can now be used as an uncontrolled component. Simply use defaultValue instead of value. More details in README (#217).
  • Added showDoubleView which causes React-Calendar to show two months/years/… at a time instead of one.
  • Added formatYear prop which allows you to customize formatting of year numbers (#241).
  • Added onViewChange callback prop called when the view is changed.
  • Added default color for "now" tile (current day/month/…) (#112).
  • Exposed events in in onChange, onClick* functions (#291).
  • tileClassName and tileContent now also get activeStartDate in arguments (#257).
  • Added locale to navigationLabel arguments (#317). Thanks, @zorfling!

What's changed?

  • ❗️ React-Calendar no longer supports React versions lower than 16.3 (#219).
  • ❗️ Typings are no longer shipped with React-Calendar package (#272).
  • ❗️ React-Calendar no longer imports its styles by default. If you want to continue to use them, import them separately as instructed in README.
  • ❗️ onActiveDateChange is now onActiveStartDateChange.
  • ❗️ Removed renderChildren backwards compatibility (#283).
  • React-Calendar now uses @wojtekmaj/date-utils for date calculations.
  • formatMonthYear is now used on month tiles in YearView.
  • Reduced code duplication (#277).
  • Refactored some elements of the package for bundle size optimizations.

Bug fixes

  • Fixed year not properly formatted in th-TH locale (#241).
  • Fixed handling dates in year < 100: clicking e.g. January 1st, 50 would cause the calendar to jump to January 1st, 1950.
  • Fixed Calendar subcomponents re-rendering too often because of callback functions being merged in a suboptimal way.

v3.0.0-beta.6

02 Mar 17:02
10d33d7
Compare
Choose a tag to compare
v3.0.0-beta.6 Pre-release
Pre-release

What's new?

  • Added locale to navigationLabel arguments (#317). Thanks, @zorfling!

Bug fixes

  • Fixed activeStartDate not being called on value change (#322).
  • Fixed handling dates in year < 100: clicking e.g. January 1st, 50 would cause the calendar to jump to January 1st, 1950.

v3.0.0-beta.5

21 Dec 16:08
1fa4a29
Compare
Choose a tag to compare
v3.0.0-beta.5 Pre-release
Pre-release

❗️ = breaking change

What's new?

  • Exposed events in in onChange, onClick* functions (#291).

What's changed?

  • ❗️ React-Calendar no longer imports its styles by default. If you want to continue to use them, import them separately as instructed in README.

v3.0.0-beta.4

11 Dec 22:55
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

❗️ = breaking change

What's changed?

  • ❗️ Remove renderChildren backwards compatibility (#283).
  • Refactored some elements of the package for bundle size optimizations.

Bug fixes

  • Fixed Calendar subcomponents re-rendering too often because of callback functions being merged in a suboptimal way.

v3.0.0-beta.3

11 Dec 22:53
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

Bug fixes

  • Fixed defaultValue, defaultActiveStartDate and defaultView ignored when calculating initial active start date