Skip to content

Releases: Innmind/Immutable

4.15.0

08 Jul 13:39
4.15.0
16b1fd2
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Str\Encoding
  • Innmind\Immutable\Str now implements \Stringable
  • Most Innmind\Immutable\Str methods now also accept \Stringable

Changed

  • innmind/black-box updated to version 5

Removed

  • Support for PHP 8.0 and 8.1

4.14.1

18 May 14:21
4.14.1
5b85b79
Compare
Choose a tag to compare

Changed

  • All reduce methods now explicit the fact that the callable may not be called when the structure is empty

Fixed

  • A lazy Sequence::slice() no longer loads the whole underlying Generator
  • Innmind\Immutable\Set::matches(), Innmind\Immutable\Sequence::matches() and Innmind\Immutable\Map::matches() no longer iterates over all elements when one value doesn't match the predicate
  • When using yield from in the Generator passed to Sequence::lazy() values may be lost on certain operations

4.14.0

29 Apr 09:29
4.14.0
a15d1e4
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Either::flip()
  • Innmind\Immutable\Maybe::toSequence()
  • Innmind\Immutable\Maybe::eitherWay()
  • Innmind\Immutable\Either::eitherWay()

4.13.0

10 Apr 09:40
4.13.0
71b06b8
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Maybe::memoize()
  • Innmind\Immutable\Either::memoize()
  • Innmind\Immutable\Sequence::memoize()
  • Innmind\Immutable\Set::memoize()
  • Innmind\Immutable\Sequence::toSet()
  • Innmind\Immutable\Sequence::dropWhile()
  • Innmind\Immutable\Sequence::takeWhile()

Changed

  • Monads templates are now covariant

4.12.0

30 Mar 12:52
4.12.0
cec9847
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Sequence::aggregate()

4.11.0

18 Feb 13:33
4.11.0
ee97ef4
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Fold

4.10.0

05 Feb 09:49
4.10.0
2e8df7e
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Str::maybe()
  • Innmind\Immutable\Maybe::defer()
  • Innmind\Immutable\Either::defer()

Changed

  • ->get(), ->first(), ->last(), ->indexOf() and ->find() calls on a deferred or lazy Innmind\Immutable\Sequence will now return a deferred Innmind\Immutable\Maybe

Fixed

  • Innmind\Immutable\Sequence::last() returned Innmind\Immutable\Maybe::nothing() when the last value was null, now it returns Innmind\Immutable\Maybe::just(null)

4.9.0

17 Dec 10:35
4.9.0
2f1ebbd
Compare
Choose a tag to compare

Changed

  • Support lazy and deferred Set::flatMap()

4.8.0

11 Dec 16:57
4.8.0
8de9051
Compare
Choose a tag to compare

Added

  • Innmind\Immutable\Sequence::safeguard
  • Innmind\Immutable\Set::safeguard

Fixed

  • Innmind\Immutable\Set::remove() no longer unwraps deferred and lazy Sets
  • Fix calling unnecessary methods for some Set operations

4.7.1

26 Nov 12:44
4.7.1
30aadb0
Compare
Choose a tag to compare

Fixed

  • Fixed Sequence::lazyStartingWith() return type declaration