Releases: wojtekmaj/react-date-picker
Releases · wojtekmaj/react-date-picker
v10.1.0
v10.0.3
v10.0.2
v10.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 not typed correctly.
v10.0.0
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
andcalendarIcon
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
v9.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 sometimes showing on Safari (#421).
v9.1.0
v9.0.0
❗️ = 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.