Skip to content

Releases: Innmind/Immutable

5.1.0

11 Oct 16:31
5.1.0
dad4c41
Compare
Choose a tag to compare

Changed

  • Registered cleanup callbacks for lazy Sequences and Sets are all called now for composed structures, instead of the last one

5.0.0

16 Sep 13:52
5.0.0
e7968ea
Compare
Choose a tag to compare

Changed

  • Innmind\Immutable\Str only use Innmind\Immutable\Str\Encoding to represent the encoding to work with

Removed

  • Fixtures\Innmind\Immutable\Map

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