Repository navigation
v2.2.0 #116
ericsizemore
announced in
Announcements
v2.2.0
#116
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[2.2.0] - 2025-01-10
Important
Initially, in the previous
2.1.0release, several functions were deprecated (seeDeprecatedunder2.1.0here).After much thought on the direction I want this library to move in, I am reversing my decision to deprecate the Array and Temperature functions mentioned.
Added
Dates::formatDifferenceOutput()a private function to handle formatting the output forDates::timeDifference()Dates::INTERVAL_UNITSconstant.$includeBcZonestoDates::timezoneInfo()andDates::validTimezone()PsalmandRectorPHPas dev-dependencies.Changed
Arrays::flatten(),Arrays::mapDeep(), and all the temperature related functions inConversionsare no longer deprecated.Imageclass. Still a work in progress; working toward no 'codeCoverageIgnore'.Dates::timeDifference()logic was changed and a new parameter$extendedOutputadded.false(default), it returns the same output as usual.true, it formats the output with available non-zeroDateIntervalunits. For example: 2 days 2 hours 20 minutes old.Dates::timeDifference()output no longer uses '(s)'. Will add 's' if greater than one.Arraysclass has gone through a bit of a refactor:Arrays::mapDeep()updated to avoid circular references when dealing with objects.mapDeep()as well.Arraysclass for psalm/phpstan templates/generics.Conversion::haversineDistance()method.Full Changelog: v2.1.0...v2.2.0
This discussion was created from the release v2.2.0.
All reactions