3.4 KiB
3.4 KiB
ramsey/collection Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
Added
Changed
Deprecated
Removed
Fixed
Security
1.0.1 - 2020-01-04
Fixed
- Fixed
AbstractCollection::offsetSet()so that it uses the provided$offsetwhen setting$valuein the array.
1.0.0 - 2018-12-31
Added
- Added support for queue data structures to represent collections of ordered
entities. Together with double-ended queues (a.k.a. deques),
first-in-first-out (FIFO), last-in-first-out (LIFO), and other queue and stack
behaviors may be implemented. This functionality includes interfaces
QueueInterfaceandDoubleEndedQueueInterfaceand classesQueueandDoubleEndedQueue. - Added support for set data structures, representing collections that cannot
contain any duplicated elements; includes classes
AbstractSetandSet. - Added support for typed map data structures to represent maps of elements
where both keys and values have specified data types; includes
TypedMapInterfaceand the classesAbstractTypedMapandTypedMap. - Added new manipulation and analyze methods for collections:
column(),first(),last(),sort(),filter(),where(),map(),diff(),intersect(), andmerge(). See CollectionInterface for more information. - Added the following new exceptions specific to the ramsey/collection library:
CollectionMismatchException,InvalidArgumentException,InvalidSortOrderException,NoSuchElementException,OutOfBoundsException,UnsupportedOperationException, andValueExtractionException.
Changed
- Minimum PHP version supported is 7.2.
- Strict types are enforced throughout.
Removed
- Removed support for HHVM.
Security
- Fixed possible exploit using
AbstractArray::unserialize()(see #47).
0.3.0 - 2016-05-23
Added
- Added
MapInterface::keys()method to return the keys from aMapInterfaceobject. This was added to theAbstractMapclass.
Removed
- Removed
getType()and constructor methods fromAbstractCollection. Children ofAbstractCollectionmust now implementgetType(), which should return a string value that defines the data type of items for the collection.
Fixed
- Improve error messages in exceptions when
CollectionandNamedParameterMapitems fail type checks.
0.2.1 - 2016-02-22
Fixed
- Allow non-strict checking of values in typed collections.
0.2.0 - 2016-02-05
Added
- Support typed collections.
0.1.0 - 2015-10-27
Added
- Support generic arrays and maps.