Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

fix(deps): update dependency @date-io/date-fns to v2 #25

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 4, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@date-io/date-fns ^1.3.13 -> ^2.0.0 age adoption passing confidence

Release Notes

dmtrKovalenko/date-io

v2.13.1

Compare Source

v2.11.0

Compare Source

Features

  • parseISO – will parse date using library method to avoid inconsistencies between browsers
  • toISO – will format date to iso string using library

Fixes/Enhancements

  • Better "AM/PM" localisation with dayjs

v2.10.11

Compare Source

Changelog

  • Make days adapter to be generic and accept any custom extended days instance as DayJsAdapter<Dayjs>
  • Update a lot of dependencies

v2.10.8

Compare Source

v2.10.7

Compare Source

Changelog

Some bugfixes and dependency updates:

v2.10.6

Compare Source

This release is finally fixing the problem of outdated builds of published date-io/* releases.

We apologize 🙏 for this publishing issues causing 2.10.0-2.10.5 releases. If you installed any of these versions please update to the latest, those builds are broken and deprecated on npm.

From now on versions of @date-io/* will always be synchronized with @date-io/core package and will never cause version conflict or be outdated.

v2.10.5

Compare Source

v2.10.4

Compare Source

v2.10.2

Compare Source

v2.10.0

Compare Source

Features

v2.9.2

Compare Source

v2.9.1

Compare Source

v2.8.1

Compare Source

Features

  • Add lib name to the adapter interface

Fixes

  • Remove prettier import, closes #​442
  • [Luxon] Properly apply locale for parsed and created date (#​443)
  • A lot of dependency updates

v2.8.0

Compare Source

v2.6.2

Compare Source

v2.6.1

Compare Source

Breaking changes

N/A

Fixes

v2.6.0

Compare Source

Breaking changes

N/A

Features

  • Introduce new getFormatHelperText method (#​340)

Fixes

v2.5.0

Compare Source

Breaking changes

N/A

Features

New functions:

  • isWithinRange: (date: TDate, range: [TDate, TDate]) => boolean
  • addMonths: (date: TDate, monthCount: number) => TDate

v2.4.0

Compare Source

Add 2 new functions:

  • startOfWeek(date: TDate): TDate - returns start of week
  • endOfWeek(date: TDate): TDate - returns end of week

v2.3.0

Compare Source

Changes

  • Add new toJsDate function converting lib object to native js date

v2.2.0

Compare Source

Localization improvements release

We have changed the formats tokens to use localized formats tokens everywhere possible. Also introduced several new methods and formats

List of new methods added:

  • is12HourCycleInCurrentLocale(): boolean - determine is 12 hours cycle and ampm used in current locale
  • getCurrentLocaleCode - get locale code

v2.1.0

Compare Source

v2.0.1

Compare Source

v2.0.0

Compare Source

Major upgrade

Do not update if you are using @​material-ui/pickers v3

Breaking changes
  • Remove all static format fields like dateTimeFormat
  • Introduce new object for cross utils formatting. It is overridable via constructor formats prop and provides easy localization formatting
export interface DateIOFormats {
  /** Full date, useful for accessibility @&#8203;example "2019, January 1st" */
  fullDate: string;
  /** Day format string extremely required to localize @&#8203;example "Wed, Jan 1st" for US, "January 1st" for Europe */
  normalDate: string;
  /** Shorter day format @&#8203;example "Jan 1st" */
  shortDate: string;
  /** Year format string @&#8203;example "2019" */
  year: string;
  /** Month format string @&#8203;example "January" */
  month: string;
  /** Short month format string @&#8203;example "Jan" */
  monthShort: string;
  /** Short month format string @&#8203;example "January 2018" */
  monthAndYear: string;
  /** Month with date format string @&#8203;example "January 1st" */
  monthAndDate: string;
  /** Day format string @&#8203;example "12" */
  dayOfMonth: string;
  /** Full time format string @&#8203;example "11:44 PM" */
  fullTime12h: string;
  /** Full time format string @&#8203;example "23:59" */
  fullTime24h: string;
  /** Hours format string @&#8203;example "11" */
  hours12h: string;
  /** Hours format string @&#8203;example "23" */
  hours24h: string;
  /** Minutes format string @&#8203;example "59" */
  minutes: string;
  /** Seconds format string @&#8203;example "59" */
  seconds: string;
  /** Date & Time format string @&#8203;example "2018, Jan 1st 11:44 PM" */
  fullDateTime12h: string;
  /** Date & Time format string @&#8203;example "2018, Jan 1st 23:44" */
  fullDateTime24h: string;
  /** Keyboard input friendly date format @&#8203;example "2019/01/01" */
  keyboardDate: string;
  /** Keyboard input friendly date/time 12h format @&#8203;example "2019/01/01 23:44" */
  keyboardDateTime12h: string;
  /** Keyboard input friendly date/time 24h format @&#8203;example "2019/01/01 11:44 PM" */
  keyboardDateTime24h: string;
}
  • format method now has signature (date: TDate, formatKey: keyof IDateIOFormat) => string in order to simplify formatting using new format keys
  • formatByString allowes to use custom (mostly user-provided) format strings formatByString(value: TDate, formatString: string): string;

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant