Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Apr 22, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
nesbot/carbon (source) require minor ^1.21 -> 1.39.1

Release Notes

briannesbitt/Carbon

v1.39.1

Compare Source

Complete commits list: briannesbitt/Carbon@1.39.0...1.39.1

Summary:

  • #​1909 Fixed validateCurrentDate return type annotation

v1.39.0

Compare Source

Port simple methods from Carbon 2 to Carbon 1.39

v1.38.4

Compare Source

Truncate deprecation notice if output is not verbose

v1.38.3

Compare Source

v1.38.2

Compare Source

Complete commits list: briannesbitt/Carbon@1.38.1...1.38.2

Summary:

  • Install composer/composer on upgrade

v1.38.1

Compare Source

Complete commits list: briannesbitt/Carbon@1.38.0...1.38.1

Summary:

  • Fix upgrade script path calculation

v1.38.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.37.1...1.38.0

Summary:

v1.37.1

Compare Source

Fixed #​1698 $ofTheSameYear parameter in isCurrentMonth

v1.37.0

Compare Source

v1.36.2

Compare Source

Fixed hours adjustment in differences with microseconds gaps

v1.36.1

Compare Source

Fixed sign addition to a negative interval

v1.36.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.35.1...1.36.0

Summary:

  • Add microseconds precision for closest/farthest/average

v1.35.1

Compare Source

Fixed compatibility with PHP 7.1.12 for diffIn(Seconds/Minutes/Hours) and diffAsCarbonInterval

v1.35.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.34.4...1.35.0

Summary:

  • Allowed to keep with Carbon::diffAsCarbonInterval setting new parameter $trimMicroseconds to false
  • Allowed to keep with CarbonInterval::instance setting new parameter $trimMicroseconds to false
  • Fixed PHP behavior divergences calculating differences below 1 second

v1.34.4

Compare Source

Fixed compatibility with PHP 7.1.0 to 7.1.7 linked to PHP bug 74852 fixed in 7.1.8: https://bugs.php.net/bug.php?id=74852

v1.34.3

Compare Source

Fixed compatibility with PHP 7.0.0 to 7.0.21 linked to PHP bug 74852 fixed in 7.0.22: https://bugs.php.net/bug.php?id=74852

/!\ Compatibility warning: if you use/support PHP 7.1.0 to 7.1.7, use 1.34.4 instead

v1.34.2

Compare Source

Fixed PHP bug 77007, handle negative microseconds in diffIn(Seconds/Minutes/Hours)

/!\ Compatibility warning: if you use/support PHP 7.0.0 to 7.0.21 and 7.1.0 to 7.1.7, use 1.34.4 instead

v1.34.1

Compare Source

Fixed hasFormat full-year detection to disallow less than 4 digits

v1.34.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.33.0...1.34.0

Summary:

  • Added ru abbreviated units
  • Checked for interface to exist before declare it

v1.33.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.32.0...1.33.0

Summary:

  • Added startOfSecond() method
  • Added endOfSecond() method
  • Added translations for az, bn, ca, es
  • Fixed sh plural
  • Fixed typing exception messages
  • Added support for closures in setToStringFormat

v1.32.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.31.1...1.32.0

Summary:

  • Thrown an exception if start/end of week set to a value out of range
  • Added short units for pt_BR translation
  • Added one/two days diff wording for uk translation
  • Added period wording for uk, ca and oc translation

v1.31.1

Compare Source

Complete commits list: briannesbitt/Carbon@1.31.0...1.31.1

Disabled locale auto-update with symfony/translation < 4

v1.31.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.30.0...1.31.0

Summary:

  • Added executeWithLocale method
  • Added localization support checking methods: getAvailableLocales, localeHasShortUnits, localeHasDiffSyntax, localeHasDiffOneDayWords, localeHasDiffTwoDayWords, localeHasPeriodSyntax
  • Added automated synchronization with Laravel locale
  • Added/updated translations for my, fr, pt_BR

v1.30.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.29.2...1.30.0

Summary:

  • Added CarbonPeriod skip method
  • Added calculated read-only properties englishDayOfWeek, shortEnglishDayOfWeek, englishMonth, shortEnglishMonth, localeDayOfWeek, shortLocaleDayOfWeek, localeMonth, shortLocaleMonth

v1.29.2

Compare Source

Complete commits list: briannesbitt/Carbon@1.29.1...1.29.2

Added german now/tomorrow/yesterday translations

v1.29.1

Compare Source

Complete commits list: briannesbitt/Carbon@1.29.0...1.29.1

Fixed #​1314: allowed to configure is(Same|Current)(Month|Quarter) behavior

v1.29.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.28.0...1.29.0

Added CarbonPeriod and related methods in Carbon and CarbonInterval

v1.28.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.27.0...1.28.0

Summary:

  • Added isStartOfDay, isEndOfDay, isMidnight, isMidday methods
  • Added locales bs_BA, hi, is, ne, oc, sh, sw
  • Added diff translations for ca, es, nl, no, pl, sl, sr*
  • Fixed ko, pl translations
  • Fixed createFromFormat with partial format and mock now instance
  • Added make methods to Carbon and CarbonInterval
  • Added getCascadeFactors, setCascadeFactors, getFactor, getDaysPerWeek, getHoursPerDay, - getMinutesPerHours, getSecondsPerMinutes, cascade, total methods and total getters to CarbonInterval
  • Added $short argument to CarbonInterval::forHumans to display short formats

v1.27.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.26.4...1.27.0

Summary:

  • Added isSameQuarter, isCurrentQuarter, isNextQuarter and isLastQuarter methods
  • Added isSameHour, isSameMinute, isSameSecond, isCurrentHour, isCurrentMinute and isCurrentSecond methods
  • Added CarbonInterval::times method
  • Added italian translation for diff words

v1.26.6

Compare Source

Truncate deprecation notice if output is not verbose

v1.26.5

Compare Source

Added #​1685 upgrade helper from 1.x to 2.x

v1.26.4

Compare Source

Always pass $self at its position even if previous arguments miss

v1.26.3

Compare Source

Macro: restrict $self (PHP 5.3 helper) to this explicit name only

v1.26.2

Compare Source

Change macros variable name to coexist with Laravel's one

v1.26.1

Compare Source

Change macros variable name to coexist with Laravel's one

v1.26.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.25.0...1.26.0

Summary:

  • Added setDateFrom and setTimeFrom methods
  • Allowed DateTimeInterface in instance method
  • Added macro, hasMacro and mixin methods
  • Added welsh language
  • Added CarbonInterval::getDateIntervalSpec (similar to CarbonInterval::spec but static and able to take any DateInterval instance as argument)
  • Added options for diffForHumans to support now/yesterday/tomorrow (#​1240)

v1.25.3

Compare Source

Truncate deprecation notice if output is not verbose

v1.25.1

Compare Source

Added #​1685 upgrade helper from 1.x to 2.x

v1.25.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.24.2...1.25.0

Summary:

  • Allowed date/time strings in diffIn* and diffForHumans methods
  • Added addRealHours()/addRealHour()/subRealHours()/subRealHour() method
  • Added addRealMinutes()/addRealMinute()/subRealMinutes()/subRealMinute() method
  • Added addRealSeconds()/addRealSecond()/subRealSeconds()/subRealSecond() method
  • Added diffInRealHours() method
  • Added diffInRealMinutes() method
  • Added diffInRealSeconds() method
  • Added Carbon::createFromTimeString() method
  • Added CarbonInterval::fromString() method
  • Allowed spec string as CarbonInterval constructor and in CarbonInterval::parse()
  • Added Carbon::useMicrosecondsFallback() and Carbon::isMicrosecondsFallbackEnabled() to handle microseconds work-around in PHP < 7.1
  • Added dayOfWeekIso property
  • Allowed editing/adding languages and translations

v1.24.2

Compare Source

Prevent from negative values in microtime

Complete commits list: briannesbitt/Carbon@1.24.1...1.24.2

v1.24.1

Compare Source

Re-align __set_state on DateTime method to ease Laravel compatibility

Complete commits list: briannesbitt/Carbon@1.24.0...1.24.1

v1.24.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.23.0...1.24.0

Summary:

  • Added createMidnightDate() method
  • Added isLastOfMonth() method
  • Added isDayOfWeek() method
  • Added toRfc7231String() method
  • Added toIso8601ZuluString() method
  • Added hasFormat() method
  • Added toArray() method
  • Added startOfHour() method
  • Added endOfHour() method
  • Added startOfMinute() method
  • Added endOfMinute() method
  • Added midDay() dynamic method, and getMidDayAt, setMidDayAt static methods
  • Added nowWithSameTz() method
  • Added CarbonInterval::compare() method
  • Added year overflow support (addYearsNoOverflow, addYearNoOverflow, addYearsWithOverflow, addYearWithOverflow, subYearNoOverflow, subYearsNoOverflow, subYearWithOverflow, subYearsWithOverflow dynamic methods and useYearsOverflow, resetYearsOverflow, shouldOverflowYears static methods)
  • Added microseconds on calling now with PHP < 7.1 (PHP >= 7.1 still support it natively)
  • Fixed hasRelativeKeywords() that no longer guess if the string is relative but test if it really produces a relative date, making it more accurate
  • Fixed createSafe(), now throws an exception with PHP >= 5.4 if the time is in a hour skipped by daylight saving time
  • Allowed DateTime and DateTimeInterface in diff methods

v1.23.0

Compare Source

Complete commits list: briannesbitt/Carbon@1.22.1...1.23.0

Summary:

  • Add ->weekNumberInMonth property
  • Add $parts arguments to diffForHumans() to allow components diff like "1 week 2 days 11 hours"
  • Add createFromTimestampMs method to create from timestamp in milliseconds
  • Fix/complete translations: ar, az, bg, el, fr, hy (arm), ja, pl, sk, sr, th, uk, uz, zh
  • Add translations: ar_shakl, dv_MV, kk, mn, ps, sr_Cyrl
  • Add Carbon::getDays() returning week days codes
  • getLastErrors() now works also on construct
  • Add workaround for setTimezone bug: https://bugs.php.net/bug.php?id=72338
  • Now Carbon instances can be exported via var_export and recreated with the produced code
  • Compatible with Symfony 4
  • Dates can be mocked now with microseconds
  • Workaround for the coma decimal separator PHP bug https://bugs.php.net/bug.php?id=67127
  • Allow formatLocalized no matter if a custom toStringFormat has been set
  • isSame*() methods now also accept DateTime instances
  • Handle daylight saving time in a better way

v1.22.1

Compare Source

v1.22.0

Compare Source


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, check this box.

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

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