Skip to content

Releases: wojtekmaj/react-date-picker

v10.1.0

18 May 14:23
b400e43
Compare
Choose a tag to compare

What's new?

  • Added support for shouldOpenCalendar and shouldCloseCalendar props.

Bug fixes

  • Fixed type checking of event handler props like onClick or onTouchStart.
  • Fixed focus jumping two fields when two keys were pressed at once (#556).

v10.0.3

11 Apr 08:51
ce273d5
Compare
Choose a tag to compare

Bug fixes

  • Fixed types for calendarIcon and clearIcon not allowing null values.
  • Fixed inconsistent text color inside input when text color was set to other than default.
  • Fixed redundant index.d.ts files published in the package.

v10.0.2

06 Apr 08:14
c5bb15f
Compare
Choose a tag to compare

Bug fixes

  • Allowed minDetail to be passed along in calendarProps.
  • Fixed source field and added types field in package.json.

v10.0.1

05 Apr 08:47
6d4c546
Compare
Choose a tag to compare

Bug fixes

  • Improved type accuracy for value prop and onChange callback (it's now explicitly Date | [Date, Date] instead of Date | Date[]).
  • Fixed types for portalContainer props not allowing null values, which made it hard to use.
  • Fixed props passed along to React-Calendar not typed correctly.

v10.0.0

04 Apr 09:18
8de4e42
Compare
Choose a tag to compare

This is one of the biggest update - for React-Date-Picker and for me personally. React-Date-Picker has been rewritten from scratch using TypeScript and React Hooks. I've put a tremendous amount of effort to modernize the package without introducing any major breaking changes. If, however, something have slipped through 207 unit tests we have, please let me know. I hope you will like it.

❗️ = breaking change

What's new?

  • Converted package to TypeScript (#580).
  • Rewritten package using React Hooks (#581).
  • Added named export support.
  • Added support for id prop.
  • Added support for passing clearIcon and calendarIcon as React functions (e.g. clearIcon={MyIcon}).

What's changed?

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

v9.2.1

01 Apr 14:14
c1a5e9b
Compare
Choose a tag to compare

Bug fixes

  • Pinned React-Calendar version to 4.0.0 to fix a bug with TypeScript types (#579).

v9.2.0

18 Jan 07:57
0cdbd07
Compare
Choose a tag to compare

What's new?

  • Added support for data-testid prop.
  • Increased compatibility with Deno (replaced typeof window … checks with typeof document … checks).

What's changed?

  • Replaced Less with CSS. Don't worry - the CSS produced didn't change, we just have one less tool in our stack.

Bug fixes

  • Fixed "Warning: useLayoutEffect does nothing on the server" warning when using SSR (see: wojtekmaj/react-daterange-picker#152).
  • Fixed divider and leading zero positioning.
  • Fixed native calendar sometimes showing on Safari (#421).

v9.1.0

08 Nov 10:30
670b8bd
Compare
Choose a tag to compare

What's changed?

  • Updated React-Calendar to 4.0.0.
  • Replaced merge-class-names with clsx.

v9.0.0

14 Sep 09:59
28725ea
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • Improved Preact compatibility.
  • Added support for portalContainer prop (#91).

What's changed?

❗️ React-Date-Picker no longer supports React versions lower than 16.8.

Bug fixes

  • Fixed inputs sometimes not properly sized until focused.
  • Fixed Calendar closing on value selection even if closeCalendar was set to false (#361).
  • Fixed memory leak when calling getFormatter (#405).

v8.4.0

04 Feb 12:11
ec6c1a9
Compare
Choose a tag to compare

What's new?

  • Added support for React 18.
  • Default to current year if year input is missing.
  • Calendar now closes when Escape key is pressed.

What's changed?

  • Improved performance of date formatters.

Bug fixes

  • Fixes styles not reset on Calendar close (#200).