Skip to content

Releases: gpbl/react-day-picker

v9.0.2

22 Jul 12:48
57fec63
Compare
Choose a tag to compare

This update improves backward compatibility with v8.10.1 for range selection mode.

What's Changed

  • feat: add excludeDisabled prop for range mode by @gpbl in #2290

Full Changelog: v9.0.1...v9.0.2

v9.0.1

22 Jul 00:41
8bed0e4
Compare
Choose a tag to compare

This update improves backward compatibility with v8.10.1.

What's Changed

  • fix: prop types not being correctly interpreted by TS by @gpbl in #2283
  • feat: add DeprecatedUI enum by @gpbl in #2284

Full Changelog: v9.0.0...v9.0.1

v9.0.0

21 Jul 01:13
bb72e4a
Compare
Choose a tag to compare

DayPicker v9 is a major release including significant updates related to accessibility, customization and localization.

Install the Latest Version

npm install react-day-picker@latest

What’s New

  • Moved date-fns from peer dependencies to dependencies.
  • Added support for UTC dates and Jalali Calendar.
  • Enhanced accessibility to better comply with WCAG 2.1 recommendations.
  • Simplified styles and new CSS variables for easier customization.
  • Improved selection logic for range mode.
  • New dropdown-years and dropdown-months caption layouts.
  • New hideWeekdayRow and hideNavigation props.
  • Updated for a complete custom components support.
  • Improved typings and props for better compatibility in TypeScript strict mode.

Breaking Changes

While we tried to keep the API as stable as possible, some breaking changes were necessary to improve the library:

  • The updated ARIA labels could require new translations or updated unit tests selectors.
  • Custom CSS styles will likely break, due to the updated CSS classes and simplified styles.
  • Custom Components have new API and may break.
  • Some typings have been renamed or deprecated.
  • The useInput hook has been removed. See Input fields guide for more details.
  • onWeekNumberClick has been removed. Use a custom component to handle week number clicks.
  • The updated build system to ESM and CommonJS could break some custom bundler.

Upgrading Guide

We prepared a Upgrading guide for help upgrading your app to v9. We welcome feedback about the upgrade process, to ensure it's smooth for everyone.

Compatibility

DayPicker v9 is compatible with React 16.8+.

Get Support and Report Issues

Get support, report issues, and provide feedback on the Discussion forums. Thanks.

New Contributors

v9.0.0-rc.6

17 Jul 12:08
223e5b6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v9.0.0-rc.5...v9.0.0-rc.6

v9.0.0-rc.5

14 Jul 23:34
2f3599c
Compare
Choose a tag to compare

What's Changed

  • build: date-fns as regular dependency by @benasher44 in #2249
  • build: Update compatibility with React 16.8 by @gpbl in #2266
  • fix(accessibility): remove aria-controls by @gpbl in 13c56ab
  • fix(accessibility): update labels, add more tests by @gpbl in 3106ed5
  • fix: add focus outline to dropdown selects by @gpbl in 8ef188b
  • fix: add back Root to custom components by @gpbl in 6055e45

New Contributors

Full Changelog: v9.0.0-rc.4...v9.0.0-rc.5

v9.0.0-rc.4

13 Jul 00:29
5fe94f5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v9.0.0-rc.3...v9.0.0-rc.4

v9.0.0-rc.3

07 Jul 18:39
037691d
Compare
Choose a tag to compare

What's Changed

  • feat: improve focus handling relying on data-attributes
  • feat: merge hooks into one useDayPicker hook
  • feat: rollback to use HTML tables and button elements by @gpbl in #2253
  • deprecate not used onDay* event handlers
  • consolidate use of components - now Is possible to extend all the internal components
  • improve ARIA labels for week number header, today date and selected dates
  • update footer to be an aria-live region
  • fix: range includes disabled days by @gpbl in #2219
  • fix: add type module in package.json by @ArthurGoupil in #2230
  • feat: use back HTML table and Button element a button by @gpbl in #2253

New Contributors

Full Changelog: v9.0.0-rc.2...v9.0.0-rc.3

v9.0.0-rc.2

24 Jun 11:27
f26248b
Compare
Choose a tag to compare

What's Changed

  • CSS variables are now inside the .rdp-caledar scope
  • fix: chevron orientation on RTL direction by @gpbl in #2216
  • fix: gradient in RTL by @gpbl in #2217
  • fix: selection modes not working as expected
  • fix: dropdown navigation not including year or month

Full Changelog: v9.0.0-rc.1...v9.0.0-rc.2

v9.0.0-rc.1

22 Jun 16:06
11b6734
Compare
Choose a tag to compare

What's Changed

  • feat: add support for UTC, Jalali calendar by @gpbl in #2213
  • refactor: simplified props, contexts by @gpbl in #2211

Full Changelog: v9.0.0-beta.5...v9.0.0-rc.1

v9.0.0-beta.5

08 Jun 14:33
1ae1822
Compare
Choose a tag to compare

What's Changed

  • feat: remove fromDate, toDate props by @gpbl in #2197
  • feat: new startMonth, endMonth prop; deprecate props by @gpbl in #2198
  • docs: update upgrading guide by @gpbl in #2199

Full Changelog: v9.0.0-beta.4...v9.0.0-beta.5