Closed
Conversation
Signed-off-by: Giampaolo Bellavite <io@gpbl.dev>
…-apis # Conflicts: # package.json
…-apis # Conflicts: # CHANGELOG.md # examples/__snapshots__/StylingCssModules.test.tsx.snap # package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR ships the v10 API cleanup by removing all public APIs that were deprecated in v9, and aligns runtime/docs behavior with the new defaults.
What Changed
DayPickerProps:fromDate,toDate,fromMonth,toMonth,fromYear,toYearinitialFocus,onWeekNumberClick,onDayKeyUp,onDayKeyPress,onDayPointerEnter,onDayPointerLeave,onDayTouchCancel,onDayTouchEnd,onDayTouchMove,onDayTouchStartcomponents.ButtonNextMonthButton/PreviousMonthButtonnow render native buttons directlyformatMonthCaption,formatYearCaptionlabelDay,labelCaptionisMatch,isDateInRangeDeprecatedUIsupport fromclassNames/stylessrc/types/deprecated.tsand its export fromtypes/indexFormatOptions,LabelOptions,dateLib, andDateLib.Datereact-day-picker/jalaliand top-leveljalali.js/jalali.d.tsreact-day-picker/persiannavLayoutnow defaults to"after"inDayPickerBreaking Changes
Yes, this PR introduces breaking changes and is intended for a major release (
v10.0.0).Migration Notes
from*/to*props withstartMonth/endMonthandhiddenmatchers.initialFocuswithautoFocus.onWeekNumberClickwith a customWeekNumbercomponent.DayButtoncomponent.formatCaption,formatYearDropdown,labelDayButton,labelGrid,dateMatchModifiers,rangeIncludesDatereact-day-picker/jalaliimports withreact-day-picker/persian.navLayoutexplicitly ("after"or"around") as needed.shadcn/uicompatibility:shadcn/ui'sCalendaris copied into each app, so compatibility depends on the localcalendar.tsxversion.Chevron,button_previous,button_next,day_button,month_grid) are expected to work with v10.calendar.tsxfiles may still use removed deprecated props or class keys and require manual updates during migration.