Releases: wojtekmaj/react-datetime-picker
Releases · wojtekmaj/react-datetime-picker
v5.2.1
v5.2.0
v5.1.0
v5.0.3
v5.0.2
v5.0.1
Bug fixes
- Improved type accuracy for value prop and
onChange
callback (it's now explicitlyDate | [Date, Date]
instead ofDate | Date[]
). - Fixed types for
portalContainer
props not allowingnull
values, which made it hard to use. - Fixed props passed along to React-Calendar and React-Clock not typed correctly.
v5.0.0
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
andclockIcon
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
v4.2.0
What's new?
- Added support for
data-testid
prop. - Increased compatibility with Deno (replaced
typeof window …
checks withtypeof 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.