Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 11, 2024

Bumps dev.zio:zio_3 from 2.1.9 to 2.1.11.

Release notes

Sourced from dev.zio:zio_3's releases.

2.1.11

We found a regression in 2.1.10 causing a runtime exception in some cases when using ZIO environment and layers, so here's a release to fix that.

What's Changed

2.1.10

This release brings a few important bug fixes related to ZPool and ZSTM as well as some optimizations. It also fixes a binary incompatibility that caused runtime errors when using an older version ZIO Streams together with ZIO 2.1.9.

Important note about ZPool changes

There are 2 fixes / changes to ZPool that might affect the behaviour of an application so users are advised to revise the following in cases of unexpected behaviour after upgrading to ZIO 2.1.10+.

Eager / strict initialization of ZPool's resources

In previous ZIO versions, the initialization of ZPool resources was done lazily in a daemon fiber. e.g., this code would previously print the message, but will now "hang" awaiting for the pool to be initialized to its full size:

ZPool.make(ZIO.never, 10) *> ZIO.debug("Pool initialized")

We believe that this change makes the behaviour of ZPool more predictable (and referentially transparent!) as previously there were no guarantees that the ZPool resources would be initialized during the creation of the pool. However, this might result in the initialization of the pool hanging in cases that the acquisition of the resources itself hangs. Therefore users are advised to consider adding timeouts to the resource initialization effect.

Strict finalization of ZPool resources

In previous versions, it was possible for the ZPool finalizers to be interrupted, which would lead to potential leak of resources (see this issue for more info). Starting with ZIO 2.1.10+, closing a ZPool requires all of the resource finalizers to finish first. As with (1), this might lead to some unexpected behaviour if the finalization of a resource hangs indefinitely, so users are advised to add timeouts to the finalizers of resources used with ZPool.

What's Changed

Other changes (CI, dependencies and documentation)

... (truncated)

Commits
  • 6362961 Fix IndexOutOfBoundsException when using reverseIterator on `UpdateOrderL...
  • 66fcbd1 Fix documentation for TestLens#Right (#9232)
  • a16f43f fix(deps): update dependency @​zio.dev/zio-lambda to v1.0.5 (#9230)
  • 564285a Doc: Needs to use serviceWithZIO not serviceWith (#9226)
  • 0fa767e chore(deps): update dependency @​types/react to v18.3.11 (#9225)
  • 2e0337e Doc: Update info about Java versions supported (#9224)
  • ee4cd6a Attempt to obtain new locks without retrying transaction in ZSTM (#9221)
  • da82865 Fix binary incompatibility issue in zio v2.1.7+ (#9223)
  • b36fe78 chore(deps): update dependency @​types/react to v18.3.9 (#9217)
  • d0295c2 chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.8 (#9218)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dev.zio:zio_3](https://github.com/zio/zio) from 2.1.9 to 2.1.11.
- [Release notes](https://github.com/zio/zio/releases)
- [Commits](zio/zio@v2.1.9...v2.1.11)

---
updated-dependencies:
- dependency-name: dev.zio:zio_3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Oct 11, 2024
@mergify mergify bot added the gradle PR for Gradle dependencies label Oct 11, 2024
@carlosedp carlosedp added the merge Label PR as safe for Mergify label Oct 11, 2024
@mergify mergify bot merged commit cd21467 into main Oct 11, 2024
3 checks passed
@dependabot dependabot bot deleted the dependabot/gradle/dev.zio-zio_3-2.1.11 branch October 11, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file gradle PR for Gradle dependencies java Pull requests that update Java code merge Label PR as safe for Mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants