Skip to content

fix(deps): update dependency react-day-picker to v9 #1475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 15, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-day-picker (source) 8.10.1 -> 9.6.7 age adoption passing confidence

Release Notes

gpbl/react-day-picker (react-day-picker)

v9.6.7

Compare Source

Improved handling of timezones, fixed alignment with the Left/Right navigation icons.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.6.6...v9.6.7

v9.6.6

Compare Source

Includes a fix for autoFocus prop not correctly autofocusing the selected day.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.6.5...v9.6.6

v9.6.5

Compare Source

Fixed an issue with the Persian calendar.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.6.4...v9.6.5

v9.6.4

Compare Source

What's Changed

Full Changelog: gpbl/react-day-picker@v9.6.3...v9.6.4

v9.6.3

Compare Source

Improved accessibility, fixed the default locale imports, and added missing files for source maps.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.6.2...v9.6.3

v9.6.2

Compare Source

Fix issues when importing the Persian calendar or the CSS types declaration.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.6.1...v9.6.2

v9.6.1

Compare Source

This release addresses an accessibility issue, adds a new animate prop and fixes other minor bugs.

Possible Breaking Change in Custom Styles

To address a focus lost bug affecting navigation buttons, we updated the buttons to use aria-disabled instead of the disabled attribute.

This change may cause custom styles for those disabled buttons to break. To fix it in your code, update the CSS selector to target [aria-disabled="true"]:

- .rdp-button_next:disabled,
+ .rdp-button_next[aria-disabled="true"] {
  /* your custom CSS */
}
- .rdp-button_previous:disabled,
+ .rdp-button_previous[aria-disabled="true"] {
  /* your custom CSS */
}
Animating Month Transitions

Thanks to the work by @​rodgobbi, we have added animations to DayPicker. The new animate prop enables CSS transitions for captions and weeks when navigating between months:

<DayPicker animate />

Customizing the animation style can be challenging due to the HTML table structure of the grid. We may address this in the future. Please leave your feedback in DayPicker Discussions.

What's Changed

v9.6.1

New Contributors

Full Changelog: gpbl/react-day-picker@v9.5.1...v9.6.1

v9.6.0

Compare Source

This release addresses an accessibility issue, adds a new animate prop and fixes other minor bugs.

⚠️ Note v9.6.0 presents a bug when importing style.css. Please upgrade to v9.6.1 for a fix.

v9.5.1

Compare Source

This release fixes the calendar breaking its layout when passing a month not included between startMonth and endMonth props.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.5.0...v9.5.1

v9.5.0

Compare Source

This release adds full support for the Persian calendar and a new numerals prop to set the numbering system.

Breaking Change: Dropdown Formatters

The formatMonthDropdown and formatYearDropdown now receive a Date (instead of a number) as first argument.

<DayPicker formatters={{ 
-     formatMonthDropdown: (month) => format(new Date(month), "mmmm") }} 
+     formatMonthDropdown: (date) => format(date, "mmmm") }} />
-     formatYearDropdown: (year) => format(new Date(year), "yyyy") }} 
+     formatYearDropdown: (date) => format(date, "yyyy") }} />
/>
Persian Calendar

Persian Calendar get fulls support in DayPicker and replaces the previous "Jalali Calendar".

If you were using DayPicker from react-day-picker/jalali, change your imports to react-day-picker/persian:

- import { DayPicker } from  `react-day-picker/jalali`;
+ import { DayPicker } from  `react-day-picker/persian`;

See the Persian calendar documentation for more details about using Persian calendar in DayPicker.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.4.4...v9.5.0

v9.4.4

Compare Source

This release fixes an issue with the month names in the Jalali calendar.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.4.3...v9.4.4

v9.4.3

Compare Source

This release enhances compatibility with React 19.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.4.2...v9.4.3

v9.4.2

Compare Source

This release addresses some bugs in the dropdown caption layout.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.4.1...v9.4.2

v9.4.1

Compare Source

This release improves support for screen readers and fixes a VoiceOver issue when navigating the calendar.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.4.0...v9.4.1

v9.4.0

Compare Source

This version includes support for broadcast calendars and some style fixes.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.3.2...v9.4.0

v9.3.2

Compare Source

Bug fixes.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.3.1...v9.3.2

v9.3.1

Compare Source

Bug fixes.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.3.0...v9.3.1

v9.3.0

Compare Source

This release adds the dayPickerProps to the values returned by useDayPicker, enabling access to these props from custom components.

Thanks to the work by @​rodgobbi, we could enhance the performance when selecting a range of days.

We’ve also updated the default style to preserve the font-family inherited from the parent element. To restore the previous behavior, update the .rdp-root CSS class to include font-family: system-ui.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.2.1...v9.3.0

v9.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.2.0...v9.2.1

v9.2.0

Compare Source

This release addresses an issue with localization and applies some fixes for types and CSS exports.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.1.4...v9.2.0

v9.1.4

Compare Source

This release fixes a localization issue and improves export compatibility across various Node.js environments.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.1.3...v9.1.4

v9.1.3

Compare Source

This release includes some minor build fixes and documentation updates.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.1.2...v9.1.3

v9.1.2

Compare Source

What's Changed

Full Changelog: gpbl/react-day-picker@v9.1.1...v9.1.2

v9.1.1

Compare Source

This release improves reliability for controlled mode and adds experimental support for time zones.

Time Zone Support

By integrating the @​date-fns/tz utilities for handling time zones, we have added a new experimental timeZone prop. Please see the updated docs for more details.

import { DayPicker, TZDate } from 'react-day-picker';
<DayPicker 
    timeZone="Europe/Athens"  // set the time zone
    disabled={TZDate.tz("Europe/Athens")}  // make sure you use `TZDate` to initialize dates
/> 

[!NOTE]
If you were using the experimental react-day-picker/utc module, you can skip now it. Remove the @date-fns/utc package and just pass timeZone="UTC" to <DayPicker />.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.1.0...v9.1.1

v9.1.0

Compare Source

Thank you for using and helping improve DayPicker. Here are the notable changes in this release:

  • Updated to date-fns v4.
    • Please update @date-fns/utc if you are using react-day-picker/utc.
  • Introduced new custom components for dropdowns and navigation buttons.
  • Fixed issues with controlled vs. uncontrolled selections not working as expected.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.9...v9.1.0

v9.0.9

Compare Source

This release fixes a regression causing the calendar to reset when selecting the days, improves compatibility with the previous version and fixes some other bugs.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.8...v9.0.9

v9.0.8

Compare Source

This release fixes a regression in v9.0.7 affecting range mode.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.0.7...v9.0.8

v9.0.7

Compare Source

This release improves compatibility with v8 and fix an issue with the calendar navigation.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.6...v9.0.7

v9.0.6

Compare Source

This release addresses the failed import of the common-js module for some app builder and add new data- attributes to help the integration with Tailwind. Thanks for your feedback!

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.5...v9.0.6

v9.0.5

Compare Source

This release improves the range mode behavior (see the updated docs) and address some styling issues.

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.4...v9.0.5

v9.0.4

Compare Source

This release fixes some bugs and improves compatibility with v8.10. Thanks for your feedback and patience! 🤖

What's Changed

New Contributors

Full Changelog: gpbl/react-day-picker@v9.0.3...v9.0.4

v9.0.3

Compare Source

This release fixes two issues found with the grid style and the range mode.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.0.2...v9.0.3

v9.0.2

Compare Source

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

What's Changed

Full Changelog: gpbl/react-day-picker@v9.0.1...v9.0.2

v9.0.1

Compare Source

This update improves backward compatibility with v8.10.1.

What's Changed

Full Changelog: gpbl/react-day-picker@v9.0.0...v9.0.1

v9.0.0

Compare Source

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

coderabbitai bot commented Apr 15, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renovate renovate bot force-pushed the renovate/react-day-picker-9.x branch from 9e8b51f to b3778f4 Compare April 15, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants