This minor release contains an important fix to a regression introduced in v2.1.2, where ZEnvironment#prune
throws an error in cases where a class implements multiple services. This regression is most likely to be observed during ZLayer
composition during app initialization, but users that have updated to v2.1.2 are still advised to update to v2.1.3 as soon as possible.
In addition, this release also contains performance improvements to ZStream
and Chunk
, as well as some minor bug fixes.
What's Changed
- Fix pruning on union types when a service implements multiple services (#8934) @kyri-petrou
- Reduce generated code size for ZLayer.make on Scala 3 (#8905) @joroKr21
- Reimplement someOrElse with better type inference (#8920) @notxcain
- Add support for comparing related types in assertTrue in Scala 2 (#8923) @andrzejressel
- Handle stream completion gracefully for timeout APIs (#8852) @kpritam
- revisit Zstream.mapZIOPar and Zstream.mapZIOParUnordered optimization (#8908) @eyalfa
- Fix Tag support for generic type arguments (#8883) @andrzejressel
- Improve performance of
Chunk#map
(#8904) @kyri-petrou
Other changes (CI, dependencies and documentation)
- Fix dependency in the build a restful webservice tutorial (#8930) @basdgrt
- Added assembly support for benchmarks (#8932) @ajaychandran
- Add Samsung Food to the list of adopters (#8925) @notxcain
- fix(deps): update dependency @zio.dev/zio-telemetry to v3.0.0-rc24 (#8921) @renovate
- Stream merge bench (#8919) @eyalfa
- fix(deps): update dependency @zio.dev/zio-json to v0.7.0 (#8918) @renovate