Skip to content

Releases: zio/zio

2.1.1

11 May 08:55
6bc6ae0
Compare
Choose a tag to compare

We found a couple bugs in 2.1.0 so this we decided to release a patch version quickly:

  • An application using ZIO metrics would hang forever when receiving the termination signal after interrupting all other fibers. This is because ScopedRef now runs acquisition in an uninterruptibe region. You might want to be careful if you use ZLayer.reloadable and its variants: fibers forked in those layers are need to be marked as interruptible explicitly.
  • ZIO test assertions were broken on Scala.js with Scala 2.12 because of unsupported reflection usage.

What's Changed

Other changes (CI, dependencies and documentation)

  • Fix Versioning On Documentation by @khajavi in #8839
  • Added Scala3 + Prometheus + OpenTelemetry tracing example by @lewapek in #8831

Full Changelog: v2.1.0...v2.1.1

2.1.0

09 May 07:32
215c3e4
Compare
Choose a tag to compare

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 the Runtime.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 #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]. Using SttpBackend[Task, Any] or only one of ZioStreams/WebSockets solves the issue.

What's Changed (since 2.1.0-RC5)

What's Changed (since 2.0.22)

Other changes (CI, dependencies and documentation)

  • Update Binary Compatibility Version by @adamgfraser in #8601
  • Update scalajs documentation to be in line with latest zio2, scalajs by @jypma in #8613
  • Fixed some minor typos by @nedmules-sked in #8616
  • ZIO Ecosystem Docusaurus: Automate Project Discovery by @khajavi in #8641
  • ZIO Ecosystem Contribution Guide by @khajavi in #8640
  • Add Fhir Indexer to The sidebars.js File by @khajavi in #8639
  • Add zio nebula graph to sidebar by @jxnu-liguobin in #8622
  • zio-logging 2.2.0 website by @justcoon in #8645
  • Update @zio.dev/zio-bson docs to 1.0.6 by @github-actions in #8646
  • Update installation.md by @DoNotWorr in #8648
  • Enable Redirection Plugin for ZIO Website #8647 by @sroopsai in #8651
  • fix doc typo by @evis in #8650
  • chore: removed ZTestFramework by @ezhil56x in #8652
  • Update creating-sinks.md by @sangwoo-sean in #8658
  • Gitter channel -> Discord Server by @hearnadam in #8628
  • Update @zio.dev/zio-prelude docs to 1.0.0-RC23 by @github-actions in #8663
  • Refine ZIO Ecosystem Contribution Guide by @khajavi in #8643
  • Update @zio.dev/zio-sbt docs to 0.4.0-alpha.23 by @github-actions in #8665
  • zio-logging 2.2.1 website by @justcoon in #8669
  • Update operations.md by @gcsolaroli in #8694
  • Update @zio.dev/zio-sbt docs to 0.4.0-alpha.24 by @github-actions in #8685
  • Update @zio.dev/zio-query docs to 0.6.1 by @github-actions in #8698
  • fix(deps): update dependency @zio.dev/zio-metrics-connectors to v2.3.1 by @renovate in #8727
  • fix(deps): update dependency @zio.dev/zio-profiling to v0.3.0 by @renovate in #8728
  • fix(deps): update dependency @zio.dev/zio-schema to v1 by @renovate in #8730
  • chore(deps): update dependency typescript to v5.4.4 by @renovate in #8725
  • fix(deps): update dependency @zio.dev/zio-http to v3.0.0-rc6 by @renovate in #8707
  • fix(deps): update dependency @zio.dev/zio-logging to v2.2.2 by @renovate in #8709
  • fix(deps): update dependency @zio.dev/zio-telemetry to v3.0.0-rc21 by @renovate in #8722
  • fix(deps): update dependency @zio.dev/zio-kafka to v2.7.4 by @renovate in #8708
  • fix(deps): update dependency @zio.dev/zio-quill to v4.8.3 by @renovate in #8710
  • Update @zio.dev/zio-kafka docs to 2.7.4 by @github-actions in #8691
  • fix(deps): update dependency @zio.dev/zio-config to v4.0.1 by @renovate in #8705
  • fix(deps): update dependency @zio.dev/zio-ftp to v0.4.2 by @renovate...
Read more

2.1.0-RC5

02 May 06:29
4afafd0
Compare
Choose a tag to compare
2.1.0-RC5 Pre-release
Pre-release

An issue was found in the RC4 so we decided to release a RC5 directly.

What's Changed

Full Changelog: v2.1.0-RC4...v2.1.0-RC5

2.1.0-RC4

02 May 01:08
f4042b6
Compare
Choose a tag to compare
2.1.0-RC4 Pre-release
Pre-release

This version contains a few more performance improvements as well as some changes to maintain binary compatibility with ZIO 2.0.x so that there is no need to upgrade all libraries using ZIO. It is expected to be the last release candidate: if no major issues are discovered, we are planning to release a final 2.1.0 in about a week. Please report if you find anything!

EDIT: one issue has been found, will cut a RC5 shortly: #8811

What's Changed

CI Updates

Documentation Updates

New Contributors

Full Changelog: v2.1.0-RC3...v2.1.0-RC4

2.1.0-RC3

20 Apr 09:25
52b15e2
Compare
Choose a tag to compare
2.1.0-RC3 Pre-release
Pre-release

We found a regression in 2.1.0-RC2 causing compile errors with ZLayer.make or ZIO#provide. The change causing these errors has been reverted and we're making a RC3 right away so that more people can test the recent runtime improvements.

What's Changed

Full Changelog: v2.1.0-RC2...v2.1.0-RC3

2.1.0-RC2

19 Apr 08:35
f3ad39d
Compare
Choose a tag to compare
2.1.0-RC2 Pre-release
Pre-release

This release candidate builds on the previous ZIO runtime system improvements delivered in the 2.1-RC1 to add major improvements in forking and joining fibers. Our ForkJoin benchmark is about 6x faster than in 2.0.x, and close to 20x faster when you disable FiberRoots (which is recommended for high performance).

We've also changed the default behavior to disable 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. It looks like our default ZScheduler is faster when forking a lot of fibers, but depending on your use case, you might want to try this new executor using the Runtime.enableLoomBasedExecutor aspect.

Because of the amount of changes, we decided to release a new release candidate first, and hope to get people to test it and report any issue. We will probably do a minor RC3 with a few fixes but are hoping to release 2.1.0 soon. Note that this version is binary compatible with 2.0.x with the exception of a few internal classes that should not be used anywhere else, but if you find any incompatibility issue, please let us know.

Known issues:

  • Regression in ZLayer.make #8767

What's Changed

Documentation Updates

  • Update @zio.dev/zio-telemetry docs to 3.0.0-RC20 by @github-actions in #8587
  • Update @zio.dev/zio-jdbc docs to 0.1.2 by @github-actions in #8589
  • Fix Broken Newsletter's Link by @khajavi in #8593
  • Update Copyright by @adamgfraser in #8596
  • Update scalajs documentation to be in line with latest zio2, scalajs by @jypma in #8613
  • Fixed some minor typos by @nedmules-sked in #8616
  • Update @zio.dev/zio-prelude docs to 1.0.0-RC22 by @github-actions in #8627
  • Revert "Update @zio.dev/zio-prelude docs to 1.0.0-RC22" by @khajavi in #8637
  • ZIO Ecosystem Docusaurus: Automate Project Discovery by @khajavi in #8641
  • ZIO Ecosystem Contribution Guide by @khajavi in #8640
  • Add Fhir Indexer to The sidebars.js File by @khajavi in #8639
  • Add zio nebula graph to sidebar by @jxnu-liguobin in #8622
  • zio-logging 2.2.0 website by @justcoon in #8645
  • Update @zio.dev/zio-bson docs to 1.0.6 by @github-actions in #8646
  • Update installation.md by @DoNotWorr in #8648
  • Enable Redirection Plugin for ZIO Website #8647 by @sroopsai in #8651
  • fix doc typo by @evis in #8650
  • Update creating-sinks.md by @sangwoo-sean in #8658
  • Gitter channel -> Discord Server by @hearnadam in #8628
  • Update @zio.dev/zio-prelude docs to 1.0.0-RC23 by @github-actions in #8663
  • Refine ZIO Ecosystem Contribution Guide by @khajavi in #8643
  • Update @zio.dev/zio-sbt docs to 0.4.0-alpha.23 by @github-actions in #8665
  • zio-logging 2.2.1 website by @justcoon in #8669
  • Update operations.md by @gcsolaroli in #8694
  • Update @zio.dev/zio-sbt docs to 0.4.0-alpha.24 by @github-actions in #8685
  • Update @zio.dev/zio-query docs to 0.6.1 by @github-actions in #8698
  • fix(deps): update dependency @zio.dev/zio-metrics-connectors to v2.3.1 by @renovate in #8727
  • fix(deps): update dependency @zio.dev/zio-profiling to v0.3.0 by @renovate in #8728
  • fix(deps): update dependency @zio.dev/zio-schema to v1 by @renovate in #8730
  • chore(deps): update dependency typescript to v5.4.4 by @renovate in #8725
  • fix(deps): update dependency @zio.dev/zio-http to v3.0.0-rc6 by @renovate in #8707
  • fix(deps): update dependency @zio.dev/zio-logging to v2.2.2 by @renovate in #8709
  • fix(deps): update dependency @zio.dev/zio-telemetry to v3.0.0-rc21 by @renovate in #8722
  • fix(deps): update dependency @zio.dev/zio-kafka to v2.7.4 by @renovate in #8708
  • fix(deps): update dependency @zio.dev/zio-quill to v4.8.3 by @renovate in #8710
  • Update @zio.dev/zio-kafka docs to 2.7.4 by @github-actions in #8691
  • fix(deps): update dependency @zio.dev/zio-config to v4.0.1 by @renovate in #8705
  • fix(deps): update dependency @zio.dev/zio-ftp to v0.4.2 by @renovate in #8706
  • chore(deps): update dependency typescript to v5.4.5 by @renovate in https...
Read more

2.0.22

12 Apr 00:08
0f88315
Compare
Choose a tag to compare

This release contains a few performance improvements that were backported to the 2.0.x branch so you can benefit from them sooner (the "current" branch is for 2.1.x, for which a RC2 will probably be released in the coming weeks). These changes, in particular the FiberRuntime one, have shown a ~10-15% improvement in some benchmarks.

What's Changed

Full Changelog: v2.0.21...v2.0.22

2.0.21

02 Jan 16:35
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.20...v2.0.21

v2.1-RC1

27 Dec 20:58
e115661
Compare
Choose a tag to compare
v2.1-RC1 Pre-release
Pre-release

What's Changed

  • Correct Run to Future docs and provide an example by @gnp in #8577
  • ZIO Test: Include Error Message When Spec Run As App Fails by @adamgfraser in #8584
  • fix ambiguity checks in ZLayer#provide macro by @myazinn in #8580
  • Do not emit non-0 exit code for failing tests when running with IntelliJ by @hmemcpy in #8583
  • ZIO Runtime System Improvements (2.1 candidate) by @jdegoes in #8582
  • Fix a typo in "Queue". by @martinpovolny in #8586

New Contributors

Full Changelog: v2.0.20...v2.1-RC1

2.0.20

13 Dec 13:40
52f4a58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.19...v2.0.20