Releases: wojtekmaj/react-daterange-picker
Releases · wojtekmaj/react-daterange-picker
v6.0.0
❗️ = breaking change
What's new?
- Added support for React 19.
What's changed?
- ❗️ New JSX transform is now required. Most likely, you’re already using it, but if you’re not, you’ll need to enable it by following the instructions in the linked blog post.
- ❗️
propTypes
were removed. If you’re using propTypes
, we recommend migrating to TypeScript or another type-checking solution.
- ❗️ Props intended for consumption by React-Calendar should now be passed via the
calendarProps
prop. This change was made to avoid conflicts with React-DateRange-Picker's own props and to make customization easier.
Bug fixes
- Fixed leading zero having different font in certain scenarios. Thanks, @AaronWatson2975!
v5.5.0
What's new?
- Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
- Improved documentation.
v5.4.3
Bug fixes
- Fixed "Failed prop type: DateRangePicker: prop type portalContainer is invalid" error when using server-side rendering (#313).
v5.4.2
Bug fixes
- Fixed ESM build not working correctly in some environments (#312).
v5.4.1
Bug fixes
- Fixed "ReferenceError: HTMLElement is not defined" error when using server-side rendering (#311).
v5.4.0
What's new?
- Added support for native ESM modules (#310).
What's changed?
- Improved propTypes.
- Improved TypeScript types.
Bug fixes
- Fixed propTypes declared twice in every declaration file.
v5.3.0
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.1
What's changed?
- Updated various dependencies to enable ESM support in the near future.
v5.2.0
What's new?
DateRangePickerProps
type is now exported for your convenience.
- Added support for
onInvalidChange
prop.
Bug fixes
- Fixed types for
onChange
and onFocus
props.