ZIO v1.0.3 Release Notes

Release Date: 2020-10-08 // over 3 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 with v1.0.0.

    Notable Changes

    ZIO Core

    ZIO Stream

    โœ… ZIO Test


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 on Exit.Failure values instead of emitting those failures. Please use ZStream#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)