chore(deps): bump @h6s/calendar to 2.2.0 and drop unused date-fns#1089
Open
vineethasok wants to merge 2 commits into
Open
chore(deps): bump @h6s/calendar to 2.2.0 and drop unused date-fns#1089vineethasok wants to merge 2 commits into
vineethasok wants to merge 2 commits into
Conversation
@h6s/calendar 2.2.0 no longer declares date-fns as a peer dependency (react-only peer now), and nothing in src imports date-fns directly, so it can be removed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
…r 2.2.0 The 2.1.0 release (which dropped the date-fns peer dep) renamed the useCalendar headers key from weekDays to weekdays. Update the single usage in Common.tsx to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Storybook Preview Deployed✅ Preview URL: https://click-ok5tnzk5y-clickhouse.vercel.app Built from commit: |
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.
What
@h6s/calendar2.0.1→2.2.0date-fns4.1.0from dependenciesWhy
date-fnswas only present to satisfy@h6s/calendar@2.0.1's peer dependency (date-fns: ">= 2"). No source file imports it directly.@h6s/calendar@2.2.0drops that peer requirement (peers are now justreact: ">= 18"), sodate-fnsis no longer needed.🤖 Generated with Claude Code
Note
Low Risk
Dependency-only change with a single property rename in DatePicker; low blast radius if calendar behavior is unchanged.
Overview
Upgrades
@h6s/calendarfrom2.0.1to2.2.0and removes thedate-fnsdev dependency, which was only there to satisfy the old calendar peer requirement and is not imported anywhere in this repo.The calendar API rename is reflected in
DatePicker/Common.tsx: weekday headers now read fromheaders.weekdaysinstead ofheaders.weekDays. Lockfile entries are updated accordingly.Reviewed by Cursor Bugbot for commit d0bd4b5. Bugbot is set up for automated code reviews on this repo. Configure here.