ZIO v1.0.3 Release Notes
Release Date: 2020-10-08 // over 2 years ago-
๐ This minor release contains a fix to a regression introduced in
v1.0.2
regarding tags. Upgrading is recommended for all users. This release is binary compatible withv1.0.0
.Notable Changes
ZIO Core
- Implement a ZIO#foreach Variant for Array (#4297) (by @adamgfraser)
- โฑ Implement ZIO#schedule (#4296) (by @adamgfraser)
- ๐ Handle Heterogeneous Collections in ChunkBuilder (#4295) (by @adamgfraser)
- Generalize returnValue access in accessible macro (#4266) (by @timaliberdov)
ZIO Stream
- accessible accessors for ZStream/ZSink (#4223) (#4224) (by @dpovey)
- ๐ Fix GZip compression for input >= 216 (#4299) (by @fsvehla )
โ ZIO Test
- ๐ Fixing JUnit test runner failure reporting (#4286) (by @dkarlinsky)
- โ ZIO Test: Implement TestAspect.sized (#4301) (by @adamgfraser )
Previous changes from v1.0.2
-
๐ This is a minor release containing bug fixes as well as some new features. It is binary compatible with
v1.0.0
.
๐ There's one breaking change on the ZStream data type - see the section below for details.Notable changes
ZIO Core
Implement ZLayer#project (#4123) (by @adamgfraser)
Immediately Shift to ZIO Thread Pool In UnsafeRunAsync (#4120) (by @adamgfraser)
๐ Improve Support For Single Threaded Environments (#4115) (by @adamgfraser)
๐ Support unsafeRunAsyncCancelable on Scala Native (#4131) (by @sideeffffect)
Implement TSet#toSet (#4132) (by @mijic)
๐ Fix Documentation of ZIO#firstSuccessOf (#4134) (by @ghostdogpr)
Implement ZLayer#tap (#4138) (by @adamgfraser)
๐ Fix Delay Computation In Schedule#fixed (#4147) (by @iravid)
Implement ZIO#getOrFailUnit (#4163) (by @politrons)
Implement ZIO.fromPromise (#4165) (by @politrons)
Don't transform to Chunk when using foreach in ZManaged (#4169) (by @ghostdogpr)
๐ Improve ZLayer how-to documentation (#4156) (by @leszekgruchala)
Implement ZIO#forkInternal (#4142) (@adamgfraser)
๐ Fix Memory Leak in FiberContext#await (#4171) (by @adamgfraser)
Prevent Interruption While Closing Scopes (#4121) (by @adamgfraser)
โ Add some Schedule constructors for cron-like functionality (#4174) (by @heaven-born)
๐ Fix signature of effectBlockingIO (#4182) (by @adamgfraser)
Enable effectual filtering of Sets (#4188) (by @kelvin-chappell)
โ Add some Schedule constructors for cron-like functionality: dayOfWeek (#4195) (by @heaven-born)
๐ Fix Bug in Chunk#foldRight (#4199) (by @adamgfraser)
Implement ZIO.not (#4201) (by @evis)
Introduce ZManaged.runtime (#4215) (by @fsvehla)
โฑ Use SetRemoveOnCanceledPolicy In Scheduler To Prevent Memory Leaks (#4237) (by @adamgfraser)
Don't Leak Fibers From Within ZIO#foreachParN (#4253) (by @adamgfraser)
โ Remove thread factory hash from thread name (#4256) (by @mijicd)
Avoid Recomputing Hash Code In ZLayer (#4258) @adamgfraser)
โ Add some Schedule constructors for cron-like functionality: dayOfMonth (#4212) (by @heaven-born)
Switch to java.lang.Class comparisons in Chunk.Tags (#4274) (by @iravid)
โฑ Implement Schedule#contramapM (#4271) (by @adamgfraser)ZIO Streams
๐ฅ BREAKING CHANGE: This release changes the behavior of
ZStream#collectWhileSuccess
to end the stream onExit.Failure
values instead of emitting those failures. Please useZStream#flattenExitOption
for the previous behavior.๐ Fix Gunzipper when consuming multiple gzipped parts as a single chunk (#4124) (by @ghostbuster91)
๐ Fix Bug In ZStream#fixed (#4140) (by @luis3m)
๐ Make ZStream#aggregateAsyncWithin fail fast (#4141) (by @luis3m)
โ Add Back ZStream#effectAsync to JS (#4143) (by @luis3m)
โ Add ZStream#takeRight (#4154) (by @luis3m)
๐ Fix BufferedPull#pullChunk (#4164) (by @mikearnaldi)
โ Add ZStream#scan and its variants (#4153) (by @luis3m)
โก๏ธ Optimize ZStream.range to emit chunks (#4006) (by @TobiasPfeifer)
โ Add a promise poll to ZStream#interruptWhen (#4166) (by @luis3m)
โ Add ZStream.fromResource (#4228) (by @fsvehla)
โ Add maxChunkSize to ZStream.fromQueue (#4205) (by @svroonland)
โ Remove Some Extraneous Type Parameters (#4244) (by @adamgfraser)
Compile ZIO Streams for Scala Native (#4252) (by @sideeffffect)
โ Add UStream alias for streams that can't fail (#4267) (by @erdeszt)
๐ Fix ZStream#takeWhile stopping on empty chunks (#4273) (by @iravid)
โ Add a bunch of collect combinators (#4279) (by @iravid)โ ZIO Test
Implement parallel checkM (#4221) (by @lightning95)
โ Add LawfulF and LawsF for Divariant (#4220) (by @lemastero)
โ Delete Gen.usASCII (#4236) (by @adamgfraser)
Evaluate Effects Sequentially In Gen#zipWith (#4238) (by @adamgfraser)
โ Add example of testing layered effects with Clock (#4219) (by @leszekgruchala)
โ Harden TestClock (#4248) (by @adamgfraser)
๐ Build ZIO Test for Scala Native (#4260) (by @sideeffffect)
Preserve Original Failure When Shrinks Is Set To Zero (#4265) (by @adamgfraser)