zio/zio (dev.zio:zio)
### [`v2.1.5`](https://togithub.com/zio/zio/releases/tag/v2.1.5): 2.1.5
[Compare Source](https://togithub.com/zio/zio/compare/2.1.4...v2.1.5)
This minor release contains a bug fix and a few improvements. The most meaningful improvement is that we now try to detect when an asynchronous effect is run from inside another ZIO effect via `Runtime.unsafe.run` (which is an anti-pattern! but happens in the wild) and move it automatically to the blocking threadpool to prevent deadlocks.
##### What's Changed
- Cleanup `submit` and `submitAndYield` methods in `ZScheduler` by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8957](https://togithub.com/zio/zio/pull/8957)
- Avoid deadlocks when a Fiber is unsafely running asynchronous effects by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8955](https://togithub.com/zio/zio/pull/8955)
- Prefer `Exit.succeed` over `ZIO.succeed` for pure functions by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8961](https://togithub.com/zio/zio/pull/8961)
- Add `Duration#asFiniteDuration` by [@Adriani277](https://togithub.com/Adriani277) [@asr2003](https://togithub.com/asr2003) [@ghostdogpr](https://togithub.com/ghostdogpr) in [https://github.com/zio/zio/pull/8960](https://togithub.com/zio/zio/pull/8960) [https://github.com/zio/zio/pull/8962](https://togithub.com/zio/zio/pull/8962) [https://github.com/zio/zio/pull/8967](https://togithub.com/zio/zio/pull/8967)
- Fixed defect in accessing environment when using `ZPipeline.fromFunction` by [@eyalfa](https://togithub.com/eyalfa) in [https://github.com/zio/zio/pull/8966](https://togithub.com/zio/zio/pull/8966)
- Use a mutable `HashMap` as a cache in `ZEnvironment` by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8974](https://togithub.com/zio/zio/pull/8974)
##### Other changes (CI, dependencies and documentation)
- fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-sbt to v0.4.0-alpha.28 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8969](https://togithub.com/zio/zio/pull/8969)
- fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-json to v0.7.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8977](https://togithub.com/zio/zio/pull/8977)
- fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-query to v0.7.2 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8968](https://togithub.com/zio/zio/pull/8968)
##### New Contributors
- [@asr2003](https://togithub.com/asr2003) made their first contribution in [https://github.com/zio/zio/pull/8962](https://togithub.com/zio/zio/pull/8962)
**Full Changelog**: https://github.com/zio/zio/compare/2.1.4...v2.1.5
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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
2.1.4
->2.1.5
Release Notes
zio/zio (dev.zio:zio)
### [`v2.1.5`](https://togithub.com/zio/zio/releases/tag/v2.1.5): 2.1.5 [Compare Source](https://togithub.com/zio/zio/compare/2.1.4...v2.1.5) This minor release contains a bug fix and a few improvements. The most meaningful improvement is that we now try to detect when an asynchronous effect is run from inside another ZIO effect via `Runtime.unsafe.run` (which is an anti-pattern! but happens in the wild) and move it automatically to the blocking threadpool to prevent deadlocks. ##### What's Changed - Cleanup `submit` and `submitAndYield` methods in `ZScheduler` by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8957](https://togithub.com/zio/zio/pull/8957) - Avoid deadlocks when a Fiber is unsafely running asynchronous effects by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8955](https://togithub.com/zio/zio/pull/8955) - Prefer `Exit.succeed` over `ZIO.succeed` for pure functions by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8961](https://togithub.com/zio/zio/pull/8961) - Add `Duration#asFiniteDuration` by [@Adriani277](https://togithub.com/Adriani277) [@asr2003](https://togithub.com/asr2003) [@ghostdogpr](https://togithub.com/ghostdogpr) in [https://github.com/zio/zio/pull/8960](https://togithub.com/zio/zio/pull/8960) [https://github.com/zio/zio/pull/8962](https://togithub.com/zio/zio/pull/8962) [https://github.com/zio/zio/pull/8967](https://togithub.com/zio/zio/pull/8967) - Fixed defect in accessing environment when using `ZPipeline.fromFunction` by [@eyalfa](https://togithub.com/eyalfa) in [https://github.com/zio/zio/pull/8966](https://togithub.com/zio/zio/pull/8966) - Use a mutable `HashMap` as a cache in `ZEnvironment` by [@kyri-petrou](https://togithub.com/kyri-petrou) in [https://github.com/zio/zio/pull/8974](https://togithub.com/zio/zio/pull/8974) ##### Other changes (CI, dependencies and documentation) - fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-sbt to v0.4.0-alpha.28 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8969](https://togithub.com/zio/zio/pull/8969) - fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-json to v0.7.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8977](https://togithub.com/zio/zio/pull/8977) - fix(deps): update dependency [@zio](https://togithub.com/zio).dev/zio-query to v0.7.2 by [@renovate](https://togithub.com/renovate) in [https://github.com/zio/zio/pull/8968](https://togithub.com/zio/zio/pull/8968) ##### New Contributors - [@asr2003](https://togithub.com/asr2003) made their first contribution in [https://github.com/zio/zio/pull/8962](https://togithub.com/zio/zio/pull/8962) **Full Changelog**: https://github.com/zio/zio/compare/2.1.4...v2.1.5Configuration
📅 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.