DayPicker v10 is out #2993
gpbl
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have finally released DayPicker v10. This is a cleanup major release that removes APIs deprecated since v9 and makes the public API more consistent across props, CSS classes, and styles.
It also introduces the new
@daypicker/reactpackage name and moves non-Gregorian calendars into standalone@daypicker/*packages, so apps can install only the calendar code they need.You can read the full changelog and the updated upgrading guide.
Notable changes
@daypicker/reactis now the preferred package name for new projects.@daypicker/hijri,@daypicker/buddhist,@daypicker/hebrew,@daypicker/ethiopic, and@daypicker/persian.shadcn/ui compatibility
shadcn/ui uses DayPicker for its Calendar component, which is something I really appreciate, but their current implementation still depends on some deprecated DayPicker CSS APIs that were removed in v10.
I opened a PR to update their component, but it has not received much attention so far. Until that is merged, upgrading DayPicker directly inside a shadcn/ui Calendar component may require some manual changes.
I also decided not to change the default navigation layout in v10, even though it would fix this long-standing accessibility issue. If you are affected by that issue, you can opt in today with:
Scoped packages
One of the biggest changes in v10 is the new scoped package name:
@daypicker/react.The existing
react-day-pickerpackage is still available in v10 for compatibility, but new projects should prefer:This new
@daypicker/*scope gives DayPicker more room to evolve. For example, non-Gregorian calendars no longer need to live inside the main React package, so apps only install the calendar code and dependencies they actually use.It also gives us a cleaner path for future work, such as the proposed Temporal package.
Reporting issues
If you run into problems while upgrading to v10, please open an issue or discussion with a small reproduction when possible.
Useful details include:
react-day-pickeror@daypicker/react;Thanks to everyone who tested v9, reported deprecated API issues, and helped make this cleanup possible!
Beta Was this translation helpful? Give feedback.
All reactions