chore(deps): update npm (runtime) (major) #72
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.
This PR contains the following updates:
3.6.0->4.1.018.3.1->19.0.08.10.1->9.5.018.3.1->19.0.0Release Notes
date-fns/date-fns (date-fns)
v4.1.0Compare Source
This release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs.
Make sure also upgrade
TZDateto v1.0.2 as it includes a bunch of critical bug fixes.Fixed
constructFromthrowing an exception onnullarguments. Whilenullisn't allowed, the functions should rather returnInvalid DateorNaNin such cases. See #3885.Added
format,formatISO,formatISO9075,formatRelativeandformatRFC3339. See #3886.v4.0.0Compare Source
I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.
Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.
Read more about the release in the announcement blog post.
- Sasha @kossnocorp
Added
Added time zones support via
@date-fns/tz'sTZDateclass andtzhelper function. See its README for the details about the API.All relevant functions now accept the context
inoption, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:In the example,
addDayswill get the current date and time in Singapore and add 5 days to it.startOfDaywill inherit the date type and return the start of the day in Singapore.Changed
The function arguments, as well as
Interval'sstartandend, now can be of different types, allowing you to mixUTCDate,TZDate,Date, and other extensions, as well as primitives (strings and numbers).The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context
inoption or the first encountered argument object type. TheInterval'sstartandendwill be considered separately, starting fromstart.In the given example, the result will be in the
TZDateas the first argument is a number, and thestarttakes precedence over theend.BREAKING: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please open an issue.
BREAKING: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please report them.
Fixed
$by properly wrapping the code in an IIFE.facebook/react (react)
v19.0.0Compare Source
gpbl/react-day-picker (react-day-picker)
v9.5.0Compare Source
This release adds full support for the Persian calendar and a new
numeralsprop to set the numbering system.Breaking Change: Dropdown Formatters
The
formatMonthDropdownandformatYearDropdownnow receive aDate(instead of anumber) 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 toreact-day-picker/persian:See the Persian calendar documentation for more details about using Persian calendar in DayPicker.
What's Changed
numeralsprop by @gpbl in https://github.com/gpbl/react-day-picker/pull/2647today,newDate,timeZoneto theDateLibclass by @gpbl in https://github.com/gpbl/react-day-picker/pull/2642startMonth/endMonthconstraints when caption layout isdropdown-monthsby @rodgobbi in https://github.com/gpbl/react-day-picker/pull/2648date-fns-jalalito the package dependencies by @gpbl in https://github.com/gpbl/react-day-picker/pull/2640dateLibformat by @gpbl in https://github.com/gpbl/react-day-picker/pull/2644Dateconstructor fromdateLibby @gpbl in https://github.com/gpbl/react-day-picker/pull/2636dateLibfor getting days/months/years from aDateby @gpbl in https://github.com/gpbl/react-day-picker/pull/2643Full Changelog: gpbl/react-day-picker@v9.4.4...v9.5.0
v9.4.4Compare Source
This release fixes an issue with the month names in the Jalali calendar.
What's Changed
faIRlocale and RTL direction by @gpbl in https://github.com/gpbl/react-day-picker/pull/2624Full Changelog: gpbl/react-day-picker@v9.4.3...v9.4.4
v9.4.3Compare 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.2Compare 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.1Compare Source
This release improves support for screen readers and fixes a VoiceOver issue when navigating the calendar.
What's Changed
roleandaria-labelprops by @gpbl in https://github.com/gpbl/react-day-picker/pull/2609Full Changelog: gpbl/react-day-picker@v9.4.0...v9.4.1
v9.4.0Compare Source
This version includes support for broadcast calendars and some style fixes.
What's Changed
--rdp-day-height,--rdp-day-width,--rdp-day-button-height,--rdp-day-button-widthhave been updated to pixel values (44pxfor day cells and42pxfor day buttons).New Contributors
Full Changelog: gpbl/react-day-picker@v9.3.2...v9.4.0
v9.3.2Compare Source
Bug fixes.
What's Changed
beforeMonthwas set by @rodgobbi in https://github.com/gpbl/react-day-picker/pull/2578Full Changelog: gpbl/react-day-picker@v9.3.1...v9.3.2
v9.3.1Compare Source
Bug fixes.
What's Changed
fixedWeeksis used by @gpbl in https://github.com/gpbl/react-day-picker/pull/2590formatMonthDropdownthrowing a type error by @gpbl in https://github.com/gpbl/react-day-picker/pull/2584initialFocusandInternalModifierstypes by @gpbl in https://github.com/gpbl/react-day-picker/pull/2582selectionStatesfromuseGetModifiers()by @gpbl in https://github.com/gpbl/react-day-picker/pull/2586@date-fns/tzpackage to v1.2.0 by @gpbl in https://github.com/gpbl/react-day-picker/pull/2591Full Changelog: gpbl/react-day-picker@v9.3.0...v9.3.1
v9.3.0Compare Source
This release adds the
dayPickerPropsto 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-rootCSS class to includefont-family: system-ui.What's Changed
dayPickerPropsfromuseDayPickerby @gpbl in https://github.com/gpbl/react-day-picker/pull/2572New Contributors
Full Changelog: gpbl/react-day-picker@v9.2.1...v9.3.0
v9.2.1Compare Source
What's Changed
useRangeby @gpbl in https://github.com/gpbl/react-day-picker/pull/2560New Contributors
Full Changelog: gpbl/react-day-picker@v9.2.0...v9.2.1
v9.2.0Compare Source
This release addresses an issue with localization and applies some fixes for types and CSS exports.
What's Changed
DateLibclass by @gpbl and @daveallie in https://github.com/gpbl/react-day-picker/pull/2550New Contributors
Full Changelog: gpbl/react-day-picker@v9.1.4...v9.2.0
v9.1.4Compare Source
This release fixes a localization issue and improves export compatibility across various Node.js environments.
What's Changed
dropdown-yearscaption layout by @gpbl in https://github.com/gpbl/react-day-picker/pull/2497Full Changelog: gpbl/react-day-picker@v9.1.3...v9.1.4
v9.1.3Compare Source
This release includes some minor build fixes and documentation updates.
What's Changed
tsconfig-base.jsonto package by @luucvanderzee in https://github.com/gpbl/react-day-picker/pull/2492New Contributors
Full Changelog: gpbl/react-day-picker@v9.1.2...v9.1.3
v9.1.2Compare Source
What's Changed
dateLibto work when mocking dates by @gpbl in https://github.com/gpbl/react-day-picker/pull/2481DayPickerContexttype by @gpbl in https://github.com/gpbl/react-day-picker/pull/2479Full Changelog: gpbl/react-day-picker@v9.1.1...v9.1.2
v9.1.1Compare 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
timeZoneprop. Please see the updated docs for more details.What's Changed
timeZoneprop (experimental) by @gpbl in https://github.com/gpbl/react-day-picker/pull/2467react-day-picker/localeby @gpbl in https://github.com/gpbl/react-day-picker/pull/2474Full Changelog: gpbl/react-day-picker@v9.1.0...v9.1.1
v9.1.0Compare Source
Thank you for using and helping improve DayPicker. Here are the notable changes in this release:
@date-fns/utcif you are usingreact-day-picker/utc.What's Changed
PreviousMonthButtonandNextMonthButtonto custom components by @gpbl in https://github.com/gpbl/react-day-picker/pull/2437MonthsDropdownandYearsDropdowncustom components by @gpbl in https://github.com/gpbl/react-day-picker/pull/2454componentsandclassNamesprop types by @gpbl in https://github.com/gpbl/react-day-picker/pull/2452OnSelectHandlertype by @gpbl in https://github.com/gpbl/react-day-picker/pull/2436ChevronofNextMonthButtonby @qgadrian in https://github.com/gpbl/react-day-picker/pull/2449ClassNamestypes for dropdowns by @hsnaydd in https://github.com/gpbl/react-day-picker/pull/2441labelOptionsfromlabelNextandlabelPreviousby @gpbl in https://github.com/gpbl/react-day-picker/pull/2434Navto its own component by @gpbl in https://github.com/gpbl/react-day-picker/pull/2435ButtoninCustomComponentsby @gpbl in https://github.com/gpbl/react-day-picker/pull/2439New Contributors
Full Changelog: gpbl/react-day-picker@v9.0.9...v9.1.0
v9.0.9Compare 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
useDayPickerby @gpbl in https://github.com/gpbl/react-day-picker/pull/2427dateMatchModifiersto usedefaultDateLibby @gpbl in https://github.com/gpbl/react-day-picker/pull/2413formatWeekNumberHeadertoFormattersby @gpbl in https://github.com/gpbl/react-day-picker/pull/2412ChevronPropsexport by @rishabh-ink in https://github.com/gpbl/react-day-picker/pull/2363New Contributors
Full Changelog: gpbl/react-day-picker@v9.0.8...v9.0.9
v9.0.8Compare 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.7Compare Source
This release improves compatibility with v8 and fix an issue with the calendar navigation.
What's Changed
startMonthorendMonthchange by @gpbl in https://github.com/gpbl/react-day-picker/pull/2343defaultLocaleby @gpbl in https://github.com/gpbl/react-day-picker/pull/2348undefinedas initially selected value, as it was in v8 by @gpbl in https://github.com/gpbl/react-day-picker/pull/2341calendartorootin the examples by @gpbl in https://github.com/gpbl/react-day-picker/pull/2347New Contributors
Full Changelog: gpbl/react-day-picker@v9.0.6...v9.0.7
v9.0.6Compare 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.5Compare 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.4Compare Source
This release fixes some bugs and improves compatibility with v8.10. Thanks for your feedback and patience! 🤖
What's Changed
.rdp-range_endby @AlessioDP in https://github.com/gpbl/react-day-picker/pull/2298endMonthdate not working as expected by @gpbl in https://github.com/gpbl/react-day-picker/pull/2301onDayMouseEnterandonDayMouseLeaveby @gpbl in https://github.com/gpbl/react-day-picker/pull/2304New Contributors
Full Changelog: gpbl/react-day-picker@v9.0.3...v9.0.4
v9.0.3Compare 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.2Compare Source
This update improves backward compatibility with v8.10.1 for range selection mode.
What's Changed
excludeDisabledprop for range mode by @gpbl in https://github.com/gpbl/react-day-picker/pull/2290Full Changelog: gpbl/react-day-picker@v9.0.1...v9.0.2
v9.0.1Compare Source
This update improves backward compatibility with v8.10.1.
What's Changed
DeprecatedUIenum by @gpbl in https://github.com/gpbl/react-day-picker/pull/2284Full Changelog: gpbl/react-day-picker@v9.0.0...v9.0.1
v9.0.0Compare Source
DayPicker v9 is a major release including significant updates related to accessibility, customization and localization.
Install the Latest Version
What’s New
date-fnsfrom peer dependencies to dependencies.dropdown-yearsanddropdown-monthscaption layouts.hideWeekdayRowandhideNavigationprops.strictmode.Breaking Changes
While we tried to keep the API as stable as possible, some breaking changes were necessary to improve the library:
useInputhook has been removed. See Input fields guide for more details.onWeekNumberClickhas been removed. Use a custom component to handle week number clicks.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
facebook/react (react-dom)
v19.0.0Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.