This minor release contains support for Scala 3.0.0-M3 as well as bug fixes and various other improvements. This release is binary compatible with v1.0.0.
Notable Changes
ZIO Core
- microsecond precision for Clock on JVM (#4554) (by @runtologist)
- update to scala 3.0.0-M3 (#4516) (by @scalavision)
- Implement Chunk.fromIterator (#4536) (by @adamgfraser)
- Implement Chunk#split (#4504) (by @adamgfraser)
- Fix Race Condition in ZIO#effectAsyncInterrupt (#4490) (by @adamgfraser)
- Add support for scala 3.0.0-M2 (#4483) (by @scalavision)
- Generalize ZIO.getOrFail/Unit to getOrFailWith (#4491) (by @iravid)
- Add note for ifM to ZIO.cond (#4485) (by @blast-hardcheese)
- Implement Unfold Constructors For Chunk (#4470) (by @adamgfraser)
- Fix refineOrDie implementation (#4458) (by @mijicd)
- Fix Bug in ZQueue#takeBetween (#4455) (by @adamgfraser)
- Prevent Fibers From Being Terminated Prematurely In ZIO#foreachPar (#4403) (by @adamgfraser)
- Improve documentation about ZLayer (#4431) (by @timrourke)
- improve descriptions of ZIO repeat and retry methods (#4446) by @arnoldlacko)
- add TRandom (#4443) (by @mschuwalow)
- Don't Use Mutable Data Structures Inside Ref (#4445) (by @adamgfraser)
- Implement
Chunk#head
to Avoid Version Specific Issues With Scala Collections Library (#4441) (by @adamgfraser) - Improve TSemaphore (#4437) (by @mijicd)
- Update Dotty (Scala 3) to 3.0.0-M1 (#4425) (by @atrianac)
- Add Variants of STM Collection Operators for Set (#4381) (by @adamgfraser)
- Implement ZIO.executor (#4372) (by @adamgfraser)
- Add accessibleM and accessibleMM macro annotations to support HKT (#4332) (by @myazinn)
- Generalize Implementation of ZIO.validate and ZIO.validatePar (#4344) (by @adamgfraser)
- foreachParN_ should not use more than 'n' fibers (#4346) (by @ghostdogpr)
- Promise.makeManaged (#4343) (by @fsvehla)
- Add Schedule.unwrap combinator (#4329) (by @leszekgruchala)
- Remove unnecessary buffering in Console.getStrLn (#4335) (by @mijicd)
- add STM warnings (#4289) (by @robmwalsh)
- Implement NonEmptyChunk.unapplySeq (#4310) (by @adamgfraser)
- Scala Native: publish stacktracer (#4307) (by @sideeffffect)
- Fix MatchError in
zio.Has.equals
(#4304) (by @myazinn)
ZIO Stream
- when* methods for ZStream (#4542) (by @arnoldlacko)
- Update reactivestreams.md (#4442) (by @mingyang91)
- ZStream#retry (with tests this time) (#4409) (by @svroonland)
- fix for issue #4356 'ZStream fromFile with drop/take data loss' (#4365) (by @TobiasPfeifer)
- Sink.take should also emit at end of chunk. (#4342) (by @quelgar)
- Add Redis Streams with ZIO to the resources (#4361) (by @leszekgruchala)
- Adding post for ZIO streams with JMS (#4355) (by @atooni)
ZIO Test
- Include source location (filename, line number) of the executing specs (#4242) (by @hmemcpy)
- MutableRunnableSpec (#4523) (by @fokot)
- ZIO-Test: Solve the
test
conflict withzio.test
. (#4532) (by @dkarlinsky) - zio-test: improvements for assert capturing expression and location (#4533) (by @dkarlinsky)
- Fix #4472 - make findMatching pure (#4539) (by @senia-psm)
- fix zio test Assertion.isSubtype example (#4531) (by @kazchimo)
- Add includeCase parameter to DefaultTestReporter.render (#4486) (by @blast-hardcheese)
- ZIO Test: Support Stateful Property Based Testing (#4497) (by @adamgfraser)
- Temporary magnolia-free implementation of zio-test-magnolia on Scala 3 (#4487) (by @vigoo)
- zio-test: make
assert
capture expression and source location using macro (#4427) (by @dkarlinsky) - Issue/4347 ignored tests not visible in report (#4429) (by @lmserrano)
- Fix the mockable macro to work with systems using CRLF too. (#4423) (by @vigoo)
- Adding test_assertions docs and other misc cleanup (#4406) (by @blast-hardcheese)
- Fix 4358 . Assertion::equals should never throw exceptions (#4362) (by @senia-psm)
- Delete redundant eqlReflexive instance (#4350) (by @joroKr21)
- Update Examples in TestClock Documentation (#4345) (by @adamgfraser)
- ZIO Test: Implement Test Aspects To Run Effects Before Or After All Tests (#4341) (by @adamgfraser)
- ZIO Test Magnolia: Add derived generator for Instant (#4333) (by @aartigao)
- Increase the number of generators to 10 in zipN* methods (#4317) (by @aartigao)