Skip to content

Releases: briannesbitt/Carbon

3.0.0-beta.3

24 Jan 09:24
4f83b0d
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release

Complete commits list: 3.0.0-beta.2...3.0.0-beta.3

Summary:

  • Fixed fallback from setter to macro #2922

3.0.0-beta.2

23 Jan 23:35
e61a85b
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

Complete commits list: 3.0.0-beta.1...3.0.0-beta.2

Summary:

  • Fixed resolve* method return type so to allow sub-classes to take other sub-classes as parameters

3.0.0-beta.1

23 Jan 09:28
616a9d6
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

Complete commits list: 2.72.2...3.0.0-beta.1

Summary:

  • Dropped PHP < 8.1 #2810 #2385 #2346

  • Dropped Symfony < 4.4 #2070

  • Added enums for week days, months and units #2701

  • Added generic unitOfUnit and unitsInUnit getters #2885

  • Changed CarbonPeriod to extend DatePeriod #1752

  • Changed create* method to return null instead of false #2340

  • Changed forHumans() to show 0 seconds y default for empty intervals #2035

  • Changed CarbonInterval to be empty by default #2079

  • Changed diffIn* methods to return float and relative diff ($absolute = false by default) #2119

    • diffIn* will use the floatDiffInReal* behavior, all other variants will be removed
  • Changed week methods to work with current global locale #1967

  • Allowed to add and subtract decimal numbers of any unit #2347 #2519

  • Changed factories to have isolated settings, locale, testNow, macros and default timezone #2345

2.72.2

21 Jan 17:35
3e7edc4
Compare
Choose a tag to compare

Complete commits list: 2.72.1...2.72.2

Summary:

New Contributors

2.72.1

08 Dec 23:49
2b3b3db
Compare
Choose a tag to compare

Complete commits list: 2.72.0...2.72.1

Summary:

2.72.0

28 Nov 19:20
a6885fc
Compare
Choose a tag to compare

Complete commits list: 2.71.0...2.72.0

Summary:

New Contributors

2.71.0

25 Sep 13:15
9827623
Compare
Choose a tag to compare

Complete commits list: 2.70.0...2.71.0

Summary:

New Contributors

2.70.0

07 Sep 16:49
d3298b3
Compare
Choose a tag to compare

Complete commits list: 2.69.0...2.70.0

Summary:

New Contributors

2.69.0

03 Aug 09:10
4308217
Compare
Choose a tag to compare

Complete commits list: 2.68.1...2.69.0

Summary:

Breaking chances (for edge-case usages):
⚠️ getSetting() now longer return the locale when it's unchanged default, so you can distinguish between explicit 'en' which has Sunday as start of week vs. null which is English but with Monday as start of week. To get the previous behavior you can use:

$settings = array_merge(['locale' => 'en'], $date->getSettings());

2.68.1

20 Jun 18:44
4f991ed
Compare
Choose a tag to compare

Complete commits list: 2.68.0...2.68.1

Summary:

  • Fixed bug mutating the parameter of diffInWeekdays() and diffInWeekendDays()