Releases: kununu/collections
Releases · kununu/collections
Version 5.1
What's Changed
Breaking Changes
- None
New Features
- Add a
chunk
method to get chunks of a collection by @tdashton in #35 - Add a
eachChunk
method to execute an anonymous function on collection chunks by @tdashton in #35
Other Changes
- Update continous integration pipeline by @hugo-goncalves-kununu in #37
Full Changelog: v5.0.0...v5.1.0
Version 5.0 - Introduce collections interfaces and new methods to collections
What's Changed
Breaking Changes
- Introduce collections interfaces by @hugo-goncalves-kununu in #34
New Features
- Add
FromIterable
interface by @hugo-goncalves-kununu in #34 - Allow
duplicates
to return only unique values by @hugo-goncalves-kununu in #34 - Add
keys
andvalues
method to collections by @hugo-goncalves-kununu in #34 - Add a method to test if a collection has an element by @tdashton in #32
- Add a method to find duplicate elements in a collection by @tdashton in #33
Full Changelog: v4.1.0...v5.0.0
Version 4.1
What's Changed
Breaking Changes
- None
New Features
- Add
AbstractBasicItem
to have a basic abstract item without the "builders" functionality
Other Changes
- Make
AbstractItem
extendsAbstractBasicItem
and keep the same functionality - Refactor magic __call method to set/get attributes from the item
Full Changelog: v4.0.0...v4.1.0
Version 4.0
What's Changed
Breaking Changes
- Drop support for PHP 8.0 and make 8.1 the minimum version
- Remove getters from
MapperCallers
and use public read-only properties instead AbstractItem::getBuilders
is now an abstract method that should always be implemented in subclasses
New Features
- Add
FilterOperatorXor
Other Changes
- Change CI/CD pipelines to test with PHP 8.1, 8.2 and 8.3
- Refactor code to make all properties read-only where possible
- Remove useless
catch
blocks inCollectionTrait
- Refactor some code to use more PHP 8.1 features
- Bump PHPUnit to 10.5
- Update tests to PHPUnit 10.5
- Update documentation
Full Changelog: v3.1.1...v4.0.0
Update continuous integration components
What's Changed
No code changes
Improve AbstractItem default builders
What's Changed
- Add
buildGetterOptionalField
- Add
buildFromArrayGetter
- Add
$useSnakeCase
parameter to all default builders to allow to convert name of properties to snake_case when getting data in the source array
Extend Convertible `FromXXXX` interfaces to return static as well
What's Changed
- Make
FromArray::fromArray
returnself|static
- Make
FromInt::fromInt
returnself|static
- Make
FromString::fromString
returnself|static
Small refactor to address Sonar issues
Address Sonar issues: (#24) - Extract provided builders of AbstractItem to a trait - Rename local variable in DefaultMapper
Open Source
What's Changed
- Open source the library
Drop support for PHP 7.x
Breaking changes:
- Drop support for PHP 7.x
- Small refactors to use PHP 8.0 features