Skip to content

chore(deps): Upgrade DayPicker to v10#259

Merged
nathanyoung merged 2 commits into
mainfrom
chore/react-daypicker
Jun 9, 2026
Merged

chore(deps): Upgrade DayPicker to v10#259
nathanyoung merged 2 commits into
mainfrom
chore/react-daypicker

Conversation

@nathanyoung

Copy link
Copy Markdown
Collaborator

Summary

  • replace the direct react-day-picker dependency with @daypicker/react@^10.0.1
  • update Calendar imports and Storybook type imports to the scoped DayPicker v10 package
  • remove the deprecated classNames.table override by moving the width class onto month_grid
  • update AGENTS.md instructions to use pnpm for lint/test commands

Validation

  • pnpm lint
  • pnpm test -- TableRow.test.tsx --runInBand
  • pnpm test --runInBand
  • previously verified during the migration: pnpm test, pnpm build, pnpm build-storybook, git diff --check

Note: one parallel pnpm test run hit a Jest worker SIGSEGV in TableRow.test.tsx; the affected test passed directly and the full suite passed serially with --runInBand.

Replace react-day-picker v9 with @daypicker/react v10 in package.json and update Calendar code to use the new package APIs. Adjust imports and types (DayPickerProps, Matcher, DateRange) and import the new stylesheet path. Add 'w-100' to the month grid class and remove the previous table class usage. Update stories to import DateRange from @daypicker/react and add a unit test asserting the month grid receives the width class.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying hyphen-components with  Cloudflare Pages  Cloudflare Pages

Latest commit: 241c5c9
Status: ✅  Deploy successful!
Preview URL: https://84db82e4.hyphen-components.pages.dev
Branch Preview URL: https://chore-react-daypicker.hyphen-components.pages.dev

View logs

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces react-day-picker with @daypicker/react (v10.0.1), updating the calendar component, its stories, and tests. It also updates the documentation in AGENTS.md to use pnpm instead of npm. There are no review comments, so I have no feedback to provide.

@nathanyoung nathanyoung changed the title [codex] Upgrade DayPicker to v10 chore(deps): Upgrade DayPicker to v10 Jun 9, 2026
@nathanyoung nathanyoung requested a review from Copilot June 9, 2026 18:20
@nathanyoung nathanyoung marked this pull request as ready for review June 9, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the Calendar component’s underlying DayPicker dependency to the scoped DayPicker v10 package (@daypicker/react), updating imports/usages accordingly and adjusting styling overrides to match v10’s className API.

Changes:

  • Replaced react-day-picker direct dependency with @daypicker/react@^10.0.1 and updated component/story imports + CSS import path.
  • Updated Calendar styling overrides by moving the w-100 width class from the deprecated classNames.table to classNames.month_grid, with a regression test.
  • Updated AGENTS.md workflow instructions to use pnpm for lint/test commands.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/components/Calendar/Calendar.tsx Migrates DayPicker imports to @daypicker/react and updates className overrides for v10 (moves width class to month_grid).
src/components/Calendar/Calendar.test.tsx Removes outdated v9-specific comment and adds a regression test ensuring w-100 is applied on .rdp-month_grid.
src/components/Calendar/Calendar.stories.tsx Updates Storybook story type import (DateRange) to come from @daypicker/react.
package.json Adds @daypicker/react dependency and removes direct react-day-picker dependency (plus devDependency ordering adjustments).
pnpm-lock.yaml Lockfile updates reflecting @daypicker/react@10.0.1 and transitive dependency changes.
AGENTS.md Updates local validation instructions to use pnpm commands.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@nathanyoung nathanyoung merged commit 7a7256b into main Jun 9, 2026
9 of 11 checks passed
@nathanyoung nathanyoung deleted the chore/react-daypicker branch June 9, 2026 18:24
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.

2 participants