ZIO v1.0.0-RC20 Release Notes
Release Date: 2020-05-25 // almost 4 years ago-
๐ This release features a number of important bugfixes for ZStream. Upgrading is advised!
Notable changes
ZIO Core
The return type for the
run
method inzio.App
has changed toZIO[ZEnv, Nothing, ExitCode]
.ExitCode
is a simple wrapper around an integer, with handy constructors for error and success (ExitCode.success
,ExitCode.failure
). In addition, a convenience combinatorZIO#exitCode
was added that converts aZIO
value to anExitCode
.- [Breaking] Add App ExitCode (#3583) (by @luis3m)
- โ Add Chunk#nonEmptyOrElse (#3687) (by @simpadjo)
- Implement Fast Single Element Append for Chunk (#3416) (by @adamgfraser)
- ๐ Fix Chunk.splitWhere (#3644) (by @KadekM)
- โ Add combinators collectSome and collectSomePar (#3568) (by @ghidei)
- โ Add ZIO#validateWith (#3617) (by @luis3m)
- ensure ZIO#fromFutureJava runs the parameter only once (#3702) (#3704) (by @fsarradin)
ZIO Streams
๐ We've seen in the last release that removing
Take[E, A]
and relying onExit[Option[E], Chunk[A]]
instead degrades ergonomics significantly when working with ZStream. So we went ahead and re-added it, this time as a wrapper overExit[Option[E], Chunk[A]]
. Apologies for the inconvenience!- ๐ Modify ZStream#mergeWith implementation to use a queue (#3691) (by @luis3m)
- [Breaking] Add back ZStream.Take (#3669) (by @luis3m)
- Modify ZStream#debounce to take chunk last element (#3689) (by @luis3m)
- ๐ Fix ZTransducer.splitLines (#3690) (by @iravid)
- ๐ Fix debounce to properly handle empty chunks (#3611) (by @luis3m)
- ๐ Fix memory leak in ZStream#forever (#3681) (by @iravid)
- โ Add ZStream#zipWithNext & ZStream#zipWithPrevious (#3596) (by @luis3m)
- ๐ Allow schedule on ZStream.repeatEffectWith rely on effect value (#3618) (by @luis3m)
- ๐ Fix ZStream.fromInputStream (#3678) (by @iravid)
- ๐ Maintain ZStream's laziness on chunks at the expense of performance (#3666) (by @iravid)
- โ Add ZStream#flattenTake (#3661) (by @luis3m)
- ๐ Fix ZSink#collectAllWhileWith (#3665) (by @simpadjo)
- [Breaking] ZSink.fromOutputStream should return Long (#3652) (by @simpadjo)
- ๐ Fix ZStream#toInputStream error handling (#3700) (by @simpadjo)
- โ Add ZStream.fromFile (#3697) (by @iravid)
โ ZIO Test
- โ ZIO Test: Close Resources Earlier In ProvideLayerShared (#3696) (by @adamgfraser)