Releases: wojtekmaj/react-datetime-picker
Releases · wojtekmaj/react-datetime-picker
v5.3.0
21 Jul 19:26
Compare
Sorry, something went wrong.
No results found
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.
v5.2.2
16 Jul 08:25
Compare
Sorry, something went wrong.
No results found
What's changed?
Updated various dependencies to enable ESM support in the near future.
v5.2.1
12 Jul 14:27
Compare
Sorry, something went wrong.
No results found
Bug fixes
Fixed widgets rendered prematurely when opening the other one.
Fixed calendar and clock not switching on focus (#355 , #381 ). Thanks, @vlad2689 !
v5.2.0
22 May 17:43
Compare
Sorry, something went wrong.
No results found
What's new?
DateTimePickerProps type is now exported for your convenience.
Added support for onInvalidChange prop.
Bug fixes
Fixed types for onChange and onFocus props (#375 ).
v5.1.0
18 May 14:26
Compare
Sorry, something went wrong.
No results found
What's new?
Added support for shouldOpenWidgets and shouldCloseWidgets props (#374 ).
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.
v5.0.3
11 Apr 08:53
Compare
Sorry, something went wrong.
No results found
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.2
06 Apr 08:17
Compare
Sorry, something went wrong.
No results found
Bug fixes
Allowed minDetail to be passed along in calendarProps.
Fixed source field and added types field in package.json.
v5.0.1
05 Apr 08:51
Compare
Sorry, something went wrong.
No results found
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.
v5.0.0
04 Apr 09:44
Compare
Sorry, something went wrong.
No results found
This is one of the biggest update - for React-DateTime-Picker and for me personally. React-DateTime-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 186 unit tests we have, please let me know. I hope you will like it.
❗️ = breaking change
What's new?
Converted package to TypeScript (#339 ).
Rewritten package using React Hooks (#338 ).
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-DateTime-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-Date-Picker to 10.0.0.
Updated React-Time-Picker to 6.0.0.
Updated React-Calendar to 4.2.0.
Updated React-Clock to 4.2.0.
v4.2.1
01 Apr 14:18
Compare
Sorry, something went wrong.
No results found
Bug fixes
Pinned React-Calendar version to 4.0.0 to fix a bug with TypeScript types.