This release contains multiple under-the-hood optimizations particularly for async operations such as race and asyncInterrupt.
[!WARNING]
This release fixes a bug in the behaviour of ConfigProvider.kebabCase and ConfigProvider.snakeCase which did not parse config keys correctly. However, users that might have implemented workarounds to the bug might be affected by this fix, so we advice anyone that uses these ConfigProviders in their codebase to review their usage.
Note that for cases where a workaround was implemented and changing config keys is not straightforward, users can opt-in to use ConfigProvider.kebabCaseLegacy / ConfigProvider.snakeCaseLegacy instead.
For more info see https://github.com/zio/zio/pull/9921.
What's Changed
zio-test: fix assertTrue comparison using implicit conversion on Scala 3 by @joroKr21 in https://github.com/zio/zio/pull/9920
remove printing to stdout when provide* is missing layer(s) by @hearnadam in https://github.com/zio/zio/pull/9916
remove: custom for jvm Runtime by @hearnadam in https://github.com/zio/zio/pull/9899
IsFatal
Make Diff contravariant on Scala 3 and use a union type for equality by @joroKr21 in https://github.com/zio/zio/pull/9907
Optimize race and synchronous interruption by @kyri-petrou in https://github.com/zio/zio/pull/9848
Optimize and deprecate TestAspect.fibers by @kyri-petrou in https://github.com/zio/zio/pull/9955
Optimize provision of ZLayers to effects by @kyri-petrou in https://github.com/zio/zio/pull/9895
Fix ZStream.async dropping elements on Scala Native by @Saturn225 in https://github.com/zio/zio/pull/9925
Adding a ZStreamAspect.tagged method that takes in multiple tags. by @douglasthomsen in https://github.com/zio/zio/pull/9890
Improve the precision of ClockLive#currentTime by @kyri-petrou in https://github.com/zio/zio/pull/9963
Don't add supervisor more than once. by @quelgar in https://github.com/zio/zio/pull/9962
test-sbt: [bug] match tests on both short and prefixed names. by @dubinsky in https://github.com/zio/zio/pull/9756
[test-sbt]: emit sbt.testing.Events on Scala.js and Scala Native. by @dubinsky in https://github.com/zio/zio/pull/9979
Optimize error path in FiberRuntime by @kyri-petrou in https://github.com/zio/zio/pull/9975
Use Duration.Infinity in ZIO.infinity by @hearnadam in https://github.com/zio/zio/pull/9986
Deprecate ZIO.infinity by @hearnadam in https://github.com/zio/zio/pull/9987
Deprecated ZIO#exitCode by @hearnadam in https://github.com/zio/zio/pull/9978
ZLayer: Use Exit.succeed instead of ZIO where already suspended by @hearnadam in https://github.com/zio/zio/pull/9983
zio-test: Remove the "... + x more" feedback from zio-test outputs by @guizmaii in https://github.com/zio/zio/pull/9900
Fix ConfigProvider's kebabCase and snakeCase to handle numeric boundaries by @kitlangton in https://github.com/zio/zio/pull/9921
Optimize ZIO.asyncInterrupt by @kyri-petrou in https://github.com/zio/zio/pull/9945
Fix OOM issue in ZPipeline#encodeStringWith by @kyri-petrou in https://github.com/zio/zio/pull/10011
Other changes (CI, dependencies and documentation)
fix(deps): update dependency @zio.dev/zio-http to v3.3.3 by @renovate[bot] in https://github.com/zio/zio/pull/9914
chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.12 by @renovate[bot] in https://github.com/zio/zio/pull/9915
Update zio-http to 3.3.3 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9917
Update junit-platform-engine to 1.13.0 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9918
Update sbt, sbt-dependency-tree, ... to 1.11.1 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9927
fix(deps): update dependency @zio.dev/zio-sbt to v0.4.0-alpha.32 by @renovate[bot] in https://github.com/zio/zio/pull/9929
fix(deps): update dependency @zio.dev/zio-redis to v1.1.4 by @renovate[bot] in https://github.com/zio/zio/pull/9934
fix(deps): update dependency @zio.dev/zio-prelude to v1.0.0-rc41 by @renovate[bot] in https://github.com/zio/zio/pull/9933
Update maven-compat, maven-embedder to 3.9.10 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9942
Add documentation for ZIOApp#gracefulShutdownTimeout by @varshith257 in https://github.com/zio/zio/pull/9923
Update junit-platform-engine to 1.13.1 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9949
Update sbt, sbt-dependency-tree, ... to 1.11.2 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9950
Update sbt-ci-release to 1.11.1 by @kyri-petrou in https://github.com/zio/zio/pull/9951
Switch to sonatypeCentralSnapshots by @kyri-petrou in https://github.com/zio/zio/pull/9952
fix(deps): update dependency @zio.dev/zio-kafka to v3 by @renovate[bot] in https://github.com/zio/zio/pull/9953
Update Scala Native to 0.5.8 by @kyri-petrou in https://github.com/zio/zio/pull/9954
chore(deps): update dependency @types/react to v19.1.7 by @renovate[bot] in https://github.com/zio/zio/pull/9956
Update scala3-library, ... to 3.3.6 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9847
Update izumi-reflect to 3.0.3 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9912
Update reactor-core to 3.7.7 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9961
chore(deps): update dependency @types/react to v19.1.8 by @renovate[bot] in https://github.com/zio/zio/pull/9964
fix(deps): update dependency postcss to v8.5.5 by @renovate[bot] in https://github.com/zio/zio/pull/9966
fix(deps): update dependency @zio.dev/zio-ftp to v0.4.4 by @renovate[bot] in https://github.com/zio/zio/pull/9965
fix(deps): update tailwindcss monorepo to v4.1.10 by @renovate[bot] in https://github.com/zio/zio/pull/9967
Update spring-core to 6.2.8 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9968
docs: Clarify that fork and forkDaemon inherit parent’s interruptibility by @Saturn225 in https://github.com/zio/zio/pull/9924
Speedup CI by @kyri-petrou in https://github.com/zio/zio/pull/9970
Enable Scala 2 optimizations in the testJvms CI step by @kyri-petrou in https://github.com/zio/zio/pull/9969
fix(deps): update dependency postcss to v8.5.6 by @renovate[bot] in https://github.com/zio/zio/pull/9977
fix(deps): update dependency @zio.dev/zio-schema to v1.7.3 by @renovate[bot] in https://github.com/zio/zio/pull/9980
fix(deps): update dependency @zio.dev/zio-json to v0.7.44 by @renovate[bot] in https://github.com/zio/zio/pull/9981
chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.13 by @renovate[bot] in https://github.com/zio/zio/pull/9982
Update scala-native-crypto to 0.2.1 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9984
chore(deps): update dependency prettier to v3.6.0 by @renovate[bot] in https://github.com/zio/zio/pull/9989
chore(deps): update dependency prettier to v3.6.1 by @renovate[bot] in https://github.com/zio/zio/pull/9992
Update junit-platform-engine to 1.13.2 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9991
fix(deps): update dependency @zio.dev/zio-ftp to v0.5.0 by @renovate[bot] in https://github.com/zio/zio/pull/9990
fix(deps): update tailwindcss monorepo to v4.1.11 by @renovate[bot] in https://github.com/zio/zio/pull/9994
chore(deps): update dependency prettier to v3.6.2 by @renovate[bot] in https://github.com/zio/zio/pull/9995
Update sbt-scalafmt to 2.5.5 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/9998
Update izumi-reflect to 3.0.4 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10001
Update maven-resolver-connector-basic, ... to 1.9.24 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10002
Update junit-platform-engine to 1.13.3 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10007
fix(deps): update dependency @zio.dev/zio-streams-compress to v1.1.1 by @renovate[bot] in https://github.com/zio/zio/pull/10008
Update sbt, sbt-dependency-tree, ... to 1.11.3 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10009
chore(deps): update dependency cytoscape to v3.32.1 by @renovate[bot] in https://github.com/zio/zio/pull/10012
Update izumi-reflect to 3.0.5 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10013
Update cats-effect to 3.6.2 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10014
fix(deps): update dependency @zio.dev/zio-metrics-connectors to v2.4.0 by @renovate[bot] in https://github.com/zio/zio/pull/10015
Update sbt-mdoc to 2.7.2 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10018
Update zio-metrics-connectors, ... to 2.4.0 by @zio-scala-steward[bot] in https://github.com/zio/zio/pull/10017
chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.14 by @renovate[bot] in https://github.com/zio/zio/pull/10016
fix(deps): update dependency @zio.dev/zio-logging to v2.5.1 by @renovate[bot] in https://github.com/zio/zio/pull/10021
New Contributors
@douglasthomsen made their first contribution in https://github.com/zio/zio/pull/9890
Full Changelog: https://github.com/zio/zio/compare/v2.1.19...v2.1.20