unstale

npm / @daypicker/react

@daypicker/react

What changed in @daypicker/react 9 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

58 breaking10 deprecations3 new APIs and options3 behavior and defaults6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@daypicker/react 1058 changes

Breaking changes 46

  • The locale export moved to @daypicker/ethiopic.

    10.0.0release notes

  • A single Chevron component replaces IconLeft and IconRight; use its orientation prop to render the appropriate icon.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Class name keys changed, deprecated v8 compatibility keys were removed, and custom class names may need updating.

    10.0.0upgrade guide

  • The deprecated compatibility key was removed; use disabled instead.

    10.0.0upgrade guide

  • The deprecated compatibility key was removed; use selected instead.

    10.0.0upgrade guide

  • The deprecated compatibility key was removed; use button_previous and button_next instead.

    10.0.0upgrade guide

  • The deprecated compatibility key was removed; use month_grid instead.

    10.0.0upgrade guide

  • Removed the deprecated Button customization entry.

    10.0.0release notes

  • Removed; use PreviousMonthButton and NextMonthButton instead.

    10.0.0upgrade guide

  • CSS variables are scoped under .rdp-root; move overrides there if they were previously set on :root or .rdp.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Apps that installed date-fns only for DayPicker's peer dependency or locale objects can remove it after moving locale imports.

    10.0.0upgrade guide

  • Replaces the removed isMatch utility alias.

    10.0.0upgrade guide

  • Interactive days now render a DayButton; customize it for day content or extra DOM event handlers.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Use this stylesheet import path in place of react-day-picker/dist/style.css.

    10.0.0upgrade guide

  • Use this CSS module import path in place of react-day-picker/dist/style.module.css.

    10.0.0upgrade guide

  • Introduced as the preferred package name; update package installation and imports from react-day-picker.

    10.0.0upgrade guide

  • Removed deprecated compatibility typing for classNames and styles.

    10.0.0release notes

  • Use endMonth in place of the removed toMonth and toYear navigation boundary props.

    10.0.0upgrade guide

  • Replaces the removed formatMonthCaption formatter alias.

    10.0.0upgrade guide

  • Removed this deprecated alias.

    10.0.0release notesupgrade guide

  • Formatters now return strings; move React rendering into a custom component when markup is needed.

    10.0.0upgrade guide

  • Replaces the removed formatYearCaption formatter alias.

    10.0.0upgrade guide

  • Removed this deprecated prop; applications using it must update before upgrading to v10.

    10.0.0release notesupgrade guide

  • Removed; use startMonth instead.

    10.0.0upgrade guide

  • Removed; use startMonth with the first month of that year.

    10.0.0upgrade guide

  • Use hidden with before or after matchers in place of removed fromDate and toDate props.

    10.0.0upgrade guide

  • Removed; use autoFocus instead.

    10.0.0upgrade guideupgrade guide

  • Removed alias; use rangeIncludesDate instead.

    10.0.0upgrade guide

  • Removed alias; use labelGrid instead.

    10.0.0upgrade guide

  • Removed alias; use labelDayButton instead.

    10.0.0upgrade guide

  • Replaces labelDay, and its accessible names changed; update label overrides, translations, and queries.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Replaces the removed labelCaption alias.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Non-Gregorian calendars moved to separate add-on packages, which must be installed and used for calendar imports.

    10.0.0upgrade guide

  • Removed; use a custom DayButton component.

    10.0.0upgrade guide

  • Removed this deprecated event prop; applications using it must update before upgrading to v10.

    10.0.0release notesupgrade guide

  • Replaces the deprecated DayPickerDefaultProps type; a more specific prop type may also be used.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • Replaces the removed isDateInRange utility alias.

    10.0.0upgrade guide

  • Removed this deprecated subpath; the notes direct users to use react-day-picker/persian instead.

    10.0.0release notes

  • Use this subpath instead of the removed react-day-picker/jalali subpath.

    10.0.0release notes

  • Use startMonth in place of the removed fromMonth and fromYear navigation boundary props.

    10.0.0upgrade guide

  • Deprecated v8 compatibility keys were removed; review custom styles for changed markup and CSS names.

    10.0.0upgrade guide

  • The deprecated compatibility key was removed; use month_grid instead.

    10.0.0upgrade guide

  • Removed; use endMonth instead.

    10.0.0upgrade guide

  • Removed; use endMonth with the last month of that year.

    10.0.0upgrade guide

  • Deprecated type exports from this module were removed.

    10.0.0release notes

  • Replaces removed hooks including useNavigation and useActiveModifiers; it exposes navigation methods and getModifiers.

    10.0.0upgrade guide

New APIs and options 3

  • Calendar add-on packages are now published under the @daypicker/* scope and should be installed alongside @daypicker/react for non-Gregorian calendars.

    10.0.0release notes

  • Introduced as the preferred package name for new projects; the react-day-picker package remains available for compatibility with the same DayPicker API.

    10.0.0release notesupgrade guideupgrade guide

  • Locale objects can now be imported from this package subpath instead of date-fns/locale.

    10.0.0upgrade guide

Behavior and default changes 3

  • The next-month button's accessible label changed; update overrides, translations, and tests.

    10.0.0upgrade guide

  • The previous-month button's accessible label changed; update overrides, translations, and tests.

    9.0.0, 10.0.0upgrade guideupgrade guide

  • When passing selected, handle selection changes with onSelect; this also applies to multiple and range modes.

    9.0.0, 10.0.0upgrade guideupgrade guide

Fixes and other changes 6

  • Focus is preserved when a controlled month change replaces the focused day.

    10.0.2release notes

  • Importing a locale subpath no longer loads all date-fns locales.

    10.0.2release notes

  • Imports date-fns functions and DayPicker locales from their subpaths.

    10.0.2release notes

  • Inline styles are now applied to all component slots.

    10.0.1release notes

  • Added @types/react as an optional peer dependency for strict package managers.

    10.0.1release notes

  • The expected month is now shown after dropdown changes in multi-month calendars.

    10.0.0release notes

@daypicker/react 922 changes

Breaking changes 12

  • Class-name keys changed, including day to day_button, day_disabled to disabled, and cell to day; update custom class-name mappings.

    9.0.0upgrade guide

  • Use this data attribute instead of the removed multiple_months class name.

    9.0.0upgrade guide

  • Use this data attribute instead of the removed with_weeknumber class name.

    9.0.0upgrade guide

  • Use formatDay for text content in place of the removed DayContent component.

    9.0.0upgrade guide

  • Formatters now return strings; move React rendering into a custom component.

    9.0.0upgrade guide

  • The next-month button's accessible label changed; update overrides, translations, and accessible-name selectors.

    9.0.0upgrade guide

  • The week-number accessible label changed; update overrides, translations, and tests.

    9.0.0upgrade guide

  • Use MonthCaption in place of the v8 Caption component.

    9.0.0upgrade guide

  • Replace the v8 bundled CSS import path with this path.

    9.0.0upgrade guide

  • Use this updated path when importing the CSS module.

    9.0.0upgrade guide

  • Use Week in place of the v8 Row component.

    9.0.0upgrade guide

  • Use Weekdays in place of the v8 HeadRow component.

    9.0.0upgrade guide

Deprecations 10

  • Use dateMatchModifiers in place of the deprecated isMatch utility alias.

    9.0.0upgrade guide

  • Use endMonth in place of deprecated toMonth and toYear navigation boundaries.

    9.0.0upgrade guide

  • Use formatCaption in place of the deprecated formatMonthCaption alias.

    9.0.0upgrade guide

  • Use formatYearDropdown in place of the deprecated formatYearCaption alias.

    9.0.0upgrade guide

  • Use PropsMulti in place of the deprecated DayPickerMultipleProps type.

    9.0.0upgrade guide

  • Use PropsRange in place of the deprecated DayPickerRangeProps type.

    9.0.0upgrade guide

  • Use PropsSingle in place of the deprecated DayPickerSingleProps type.

    9.0.0upgrade guide

  • Use rangeIncludesDate in place of the deprecated isDateInRange utility alias.

    9.0.0upgrade guide

  • Use startMonth in place of deprecated fromMonth and fromYear navigation boundaries.

    9.0.0upgrade guide

  • Use useDayPicker in place of the deprecated useNavigation hook.

    9.0.0upgrade guide