Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Version 0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jmalloc jmalloc released this 25 Aug 09:32
· 55 commits to master since this release

This release includes numerous naming changes to improve consistency across the project. Please be aware that some new methods and classes have been added with the same name as existing methods which have been renamed.

  • [BC] The mbstring extension is now required
  • [BC] Renamed MutableAssociativeInterface::merge() to mergeInPlace()
  • [BC] Renamed AssociativeInterface::combine() to merge()
  • [BC] Renamed MutableIterableInterface::filter() to filterInPlace()
  • [BC] Renamed IterableInterface::filtered() to filter()
  • [BC] Renamed MutableSequenceInterface::sort() to sortInPlace()
  • [BC] Renamed MutableSequenceInterface::reverse() to reverseInPlace()
  • [BC] Renamed SequenceInterface::sorted() to sort()
  • [BC] Renamed SequenceInterface::reverse() to reversed()
  • [BC] Moved AssociativeKeyGenerator into Icecave\Collections\Detail namespace (it is not part of the public API)
  • [BC] Added begin index parameter to RandomAccessInterface::indexOfLast() and findLast()
  • [BC] Swapped the order of parameters to PriorityQueue::__construct()
  • [BC] The Map class has been renamed to HashMap
  • [BC] The Set class has been renamed to HashSet
  • [BC] Renamed Set::isEqual() to Set::isEqualSet()
  • [BC] All set-specific operations (union, diff, etc) can now only operate on sets of the same type and hash/comparator function
  • [BC] Renamed Set::isStrictSuperSet() and isStrictSubSet() to isProperSuperSet() and isProperSubSet(), respectively
  • [FIXED] Fixed issue that prevented pushing elements into a PriorityQueue with an explicit priority that is weakly equivalent to null (eg, 0)
  • [FIXED] Fixed issues with Vector::filter() and join() whereby additional null values were added to the collection
  • [FIXED] Fixed several issues with Vector whereby count() is called on iterable arguments that are not necessarily countable
  • [NEW] Collection class provides collection type agnostic operations for generic programming
  • [NEW] All collections now implement ExtendedComparableInterface from Icecave\Parity
  • [NEW] Added Map, a comparator based associative container
  • [NEW] Added Set, a comparator based set container
  • [NEW] Added SetInterface, which adds isIntersecting(), addMany(), removeMany(), symmetricDiff() and symmetricDiffInPlace()
  • [NEW] Added an iterator traits system (see Collection::iteratorTraits)
  • [NEW] Added create() static method to each collection for constructing from elements as variable arguments
  • [NEW] Added MutableRandomAccessInterface::insertRange()
  • [IMPROVED] Prioritizer parameter to PriorityQueue::__construct() now defaults to the identity function
  • [IMPROVED] Added optional end index parameter to RandomAccessInterface::indexOf() and find()
  • [IMPROVED] Vector now implements SeekableIterator