Skip to content

Releases: fp4php/functional

Release v3.0.0

28 Aug 09:30
Compare
Choose a tag to compare
  • drop jsonSearch function because of additional composer dependency
  • drop mtdowling/jmespath.php package dependency
  • replace reversed value+key arguments with short living Entry objects for HashMap
  • move Option::getOrElse callable argument type to Option::getOrCall
  • additional Set ops
  • drop Map::reduce @experimental method

Release v2.4.2

26 Aug 20:27
Compare
Choose a tag to compare
  • Do-notation temporary fix
  • Deprecate jsonSearch function
  • Replace symfony string component usages with native php functions
  • Internal class markings
  • None and Unit singletons
  • Drop redundant dev dependencies

Release v2.4.1

26 Aug 12:01
Compare
Choose a tag to compare
Drop composer.lock

Release v2.4.0. Filtering

26 Aug 07:38
Compare
Choose a tag to compare
  • Psalm plugin type refinement for collection filter and filterNotNull operations
  • Map key type refining support
  • appendedAll collection operation has been added
  • prependedAll collection operation has been added
  • takeWhile collection operation has been added
  • dropWhile collection operation has been added
  • take collection operation has been added
  • drop collection operation has been added
  • groupBy collection operation has been added

Release v2.3.0. ArrayList and NonEmptyArrayList

22 Aug 20:04
Compare
Choose a tag to compare
  • ArrayList implementation of IndexedSeq interface.
  • NonEmptyArrayList implementation of NonEmptyIndexedSeq interface.
  • Countable implementation for every collection class.

Release v2.2.4

22 Aug 12:05
Compare
Choose a tag to compare
  • Expand HashContract::equals $rhs type to mixed. Classes which implement HashContract should be able to enable or disable subclass equality
  • Deprecate isSequence function. Drop internal usages
  • Deprecate isNonEmptySequence function. Drop internal usages.
  • Deprecate pluck function. Use map function instead
  • Deprecate fold function. Use Seq::fold() or Set::fold() or Map::fold()
  • Deprecate reduce function. Use Seq::reduce() or Set::reduce()
  • Deprecate reduceNel function. Use NonEmptySeq::reduce() or NonEmptySet::reduce()
  • Deprecate reduceNer function. Use NonEmptySeq::reduce() or NonEmptySet::reduce()
  • Deprecate unique function. Use Set or Seq::unique()
  • Mark Map::reduce as experimental

Release v2.2.3

19 Aug 16:05
Compare
Choose a tag to compare
  • Fix fold signature
  • Fix reduce signature
  • Drop fold deprecation

Release v2.2.2

17 Aug 20:09
Compare
Choose a tag to compare
  • Drop TK template constraint for HashMap
  • Drop TV template constraint for HashSet
  • It's now possible to use arrays of objects which implement HashContract as keys in HashMap and as elements in HashSet
  • Additional convert methods for collections
  • Documentation example with HashContract implementation
  • Fold methods are now deprecated. Use reduce + Option::getOrElse.
  • Seq::unique marked as experimental. Try to use Set's instead.

Release v2.2.1. Collections documentation

17 Aug 16:23
Compare
Choose a tag to compare
  • REPL doc for every collection operation
  • Collection documentation with usage examples

Release v2.2.0. HashSet and NonEmptyHashSet

16 Aug 20:16
Compare
Choose a tag to compare
  • HashSet
  • NonEmptyHashSet

Hash sets are based on HashMap and thus aware of HashContract implementations.