Update dependency dev.zio:zio to v2.1.0 #396
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.22
->2.1.0
Release Notes
zio/zio (dev.zio:zio)
v2.1.0
: 2.1.0Compare Source
This version brings a lot of performance improvements in the fiber runtime as well as the scheduler. It is fully binary compatible with the 2.0.x branch with the exception of some internal classes that shouldn't be used anywhere else (we tested a wide range of the library ecosystem without issues).
An important change is that we disabled auto-blocking detection by default because it could cause some performance degradation in some cases. Better heuristics might be introduced in the future, but in the meantime you can enable it by using the
Runtime.enableAutoBlockingExecutor
aspect. We also added an optional executor based on Loom that you can use if your Java version is 21 or higher with theRuntime.enableLoomBasedExecutor
aspect. Which one is better may vary based on your use case so we encourage you to test and measure it.If you use sttp v3 and Scala 3, you might run into a compile error when trying to provide or access
SttpClient
from/to your environment. This is because since https://github.com/zio/zio/pull/8612 we don't allow materializing tags for intersection types in covariant position and sttp does exactly that:type SttpClient = SttpBackend[Task, ZioStreams with WebSockets]
. UsingSttpBackend[Task, Any]
or only one ofZioStreams
/WebSockets
solves the issue.What's Changed (since 2.1.0-RC5)
ZIO#fork
by 300% by @kyri-petrou in https://github.com/zio/zio/pull/8814add
instead ofunion
when extending a Scope by @kyri-petrou in https://github.com/zio/zio/pull/8823foreachPar
et.al. by @kyri-petrou in https://github.com/zio/zio/pull/8816What's Changed (since 2.0.22)
asBase64String
toChunk
by @987Nabil in https://github.com/zio/zio/pull/8606TestSelector
by @Duhemm in https://github.com/zio/zio/pull/8633FiberRuntime
optimizations by @kyri-petrou in https://github.com/zio/zio/pull/8671Exception in thread "zio-fiber-X"
instead of the interruptor fiber by @neko-kai in https://github.com/zio/zio/pull/8687FiberRuntime.MaxTrampolinesBeforeYield
constant by @guizmaii in https://github.com/zio/zio/pull/8756FiberId#isNone
by @guizmaii in https://github.com/zio/zio/pull/8746ZIO#absolve
by @kyri-petrou in https://github.com/zio/zio/pull/8759v2.0.x
for methods used inzio/interop-cats
by @kyri-petrou in https://github.com/zio/zio/pull/8757Runtime#unsafe.fork
andRuntime#unsafe.runToFuture
by @kyri-petrou in https://github.com/zio/zio/pull/8752MutableConcurrentQueue
by @kyri-petrou in https://github.com/zio/zio/pull/8773FiberId
s by @kyri-petrou in https://github.com/zio/zio/pull/8778Other changes (CI, dependencies and documentation)
sbt
to 1.10.0 by @kyri-petrou in https://github.com/zio/zio/pull/8826New Contributors
Full Changelog: zio/zio@v2.0.22...v2.1.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.