Skip to content

1.0.0

Choose a tag to compare

@ramsey ramsey released this 31 Dec 09:48
1.0.0
c7a212f

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 QueueInterface and DoubleEndedQueueInterface and classes Queue and DoubleEndedQueue.
  • Added support for set data structures, representing collections that cannot contain any duplicated elements; includes classes AbstractSet and Set.
  • Added support for typed map data structures to represent maps of elements where both keys and values have specified data types; includes TypedMapInterface and the classes AbstractTypedMap and TypedMap.
  • Added new manipulation and analyze methods for collections: column(), first(), last(), sort(), filter(), where(), map(), diff(), intersect(), and merge(). See CollectionInterface for more information.
  • Added the following new exceptions specific to the ramsey/collection library: CollectionMismatchException, InvalidArgumentException, InvalidSortOrderException, NoSuchElementException, OutOfBoundsException, UnsupportedOperationException, and ValueExtractionException.

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).