Skip to content

Releases: wojtekmaj/react-datetimerange-picker

v5.2.0

22 May 17:48
0a42809
Compare
Choose a tag to compare

What's new?

  • DateTimeRangePickerProps type is now exported for your convenience.
  • Added support for onInvalidChange prop.

Bug fixes

  • Fixed types for onChange and onFocus props.

v5.1.0

18 May 14:27
5129a10
Compare
Choose a tag to compare

What's new?

  • Added support for shouldOpenWidgets and shouldCloseWidgets props.

v5.0.2

11 Apr 08:54
022dc69
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.

v5.0.1

06 Apr 08:23
e47166c
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 and React-Clock not typed correctly.
  • Fixed source field and added types field in package.json.
  • Fixed TypeScript types not being included in the published package.

v5.0.0

04 Apr 10:22
c7692a2
Compare
Choose a tag to compare

This is one of the biggest update - for React-DateTimeRange-Picker and for me personally. React-DateTimeRange-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 dozens of unit tests we have, please let me know. I hope you will like it.

❗️ = breaking change

What's new?

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

What's changed?

  • ❗️ React-DateTimeRange-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-DateTime-Picker to 5.0.0.
  • Updated React-Calendar to 4.2.0.
  • Updated React-Clock to 4.2.0.

v4.2.1

01 Apr 14:17
90c6f63
Compare
Choose a tag to compare

Bug fixes

  • Pinned React-Calendar version to 4.0.0 to fix a bug with TypeScript types.

v4.2.0

18 Jan 08:02
5f07d0c
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 and time picker sometimes showing on Safari.

v4.1.1

09 Nov 12:31
ddb1473
Compare
Choose a tag to compare

Bug fixes

  • Fixed widgets unnecessarily rendered when another widget was toggled.
  • Fixed Calendar closing on click without selecting value when rendered in a portal.

v4.1.0

08 Nov 11:37
5f5d90d
Compare
Choose a tag to compare

What's changed?

  • Updated React-Calendar to 4.0.0.
  • Updated React-Clock to 4.0.0.
  • Updated React-DateTime-Picker to 4.1.0.
  • Replaced merge-class-names with clsx.

v4.0.1

19 Sep 12:29
c2ad732
Compare
Choose a tag to compare

Bug fixes

  • Fixed .react-datetimerange-picker--open class not toggled on widget open.