Skip to content

Releases: szjani/precore

2.1.0

16 May 10:19
Compare
Choose a tag to compare

New features

  • New finder methods in collection related classes that return Optional.
  • Functions::call().
  • TryTo monad to gracefully handle exceptions. For more information see the documentation.

Bugfixes

  • Numbers::compare() issue in case of floats is fixed now.

Precore 2.1 requires PHP 5.5.

2.0.0

30 Aug 12:58
Compare
Choose a tag to compare

New features

  • Optional added, coming from Guava and Java 8
  • Collections::emptyIterator()
  • FluentIterable implements Countable, map() and flatMap() were added based on Java 8 naming conventions
  • Iterators::each()
  • Range supports booleans and DateTimes, serialization is fixed (now uses ToStringHelper)

Backward incompatible changes

  • Arrays::sortWith() has been removed
  • ChunkProvider must return an Optional. Optional::absent() means the iteration must be stopped
  • Iterators::skip() has been renamed to Iterators::advance()
  • Iterators never reset the given Iterator from now
  • Removed Iterator and IteratorAggregate support in ToStringHelper