8000 Releases · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: zio/zio

2.1.17

05 Apr 03:56
77206ce
Compare
Choose a tag to compare

Highlights

This release brings a few bug fixes and improvements. One notable fix is that the initial value of Ref can now be garbage-collected once the value of the Ref changes (it was not the case previously).

What's Changed

Other changes (CI, dependencies and documentation)

  • fix(deps): update dependency @zio.dev/zio-json to v0.7.35 by @renovate in #9647
  • chore(deps): update dependency cytoscape to v3.31.1 by @renovate in #9648
  • Update magnolia to 1.3.16 by @zio-scala-steward in #9649
  • fix(deps): update dependency @zio.dev/zio-redis to v1.1.1 by @renovate in #9651
  • Update auxlib, clib, javalib, nativelib, ... to 0.5.7 by @zio-scala-steward in #9650
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.36 by @renovate in #9655
  • fix(deps): update dependency @zio.dev/zio-cache to v0.2.4 by @renovate in #9654
  • Revert Scala Native version to 0.5.6 by @kyri-petrou in #9656
  • chore(deps): update dependency prettier to v3.5.3 by @renovate in #9661
  • chore(deps): update dependency typescript to v5.8.2 by @renovate in #9658
  • docs: add a hint about interruption in ScopedRef by @mberndt123 in #9660
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.37 by @renovate in #9663
  • fix(deps): update dependency @zio.dev/zio-redis to v1.1.2 by @renovate in #9664
  • Bump actions/create-github-app-token from 1.11.5 to 1.11.6 by @dependabot in #9666
  • fix(deps): update dependency react-markdown to v10.0.1 by @renovate in #9665
  • Update sbt, sbt-dependency-tree, ... to 1.10.9 by @zio-scala-steward in #9667
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.38 by @renovate in #9669
  • fix(deps): update dependency @zio.dev/zio-schema to v1.6.4 by @renovate in #9670
  • Update sbt, sbt-dependency-tree, ... to 1.10.10 by @zio-scala-steward in #9671
  • fix(deps): update dependency @zio.dev/zio-telemetry to v3.1.2 by @renovate in #9673
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.39 by @renovate in #9672
  • fix(deps): update dependency react-markdown to v10.1.0 by @renovate in #9674
  • fix(deps): update dependency @zio.dev/zio-streams-compress to v1.1.0 by @renovate in #9675
  • fix(deps): update dependency autoprefixer to v10.4.21 by @renovate in #9679
  • Bump peter-evans/create-pull-request from 7.0.7 to 7.0.8 by @dependabot in #9682
  • fix(deps): update dependency @zio.dev/zio-http to v3.1.0 by @renovate in #9685
  • Update sbt-ci-release to 1.9.3 by @zio-scala-steward in #9691
  • Update reactor-core to 3.7.4 by @zio-scala-steward in #9687
  • fix(deps): update dependency @zio.dev/zio-schema to v1.6.5 by @renovate in #9689
  • Update spring-core to 6.2.4 by @zio-scala-steward in #9694
  • Add ZSteam un-chunking notes by @erikvanoosten in #9695
  • Update zio-http to 3.1.0 by @zio-scala-steward in #9686
  • fix(deps): update dependency @zio.dev/zio-config to v4.0.4 by @renovate in #9699
  • Update junit-platform-engine to 1.12.1 by @zio-scala-steward in #9698
  • fix(deps): update dependency @zio.dev/zio-schema to v1.6.6 by @renovate in #9702
  • chore(deps): update dependency @types/react to v19.0.11 by @renovate in #9706
  • Update sbt, sbt-dependency-tree, ... to 1.10.11 by @zio-scala-steward in #9707
  • Update sbt-mdoc to 2.6.5 by @zio-scala-steward in #9708
  • chore(deps): update dependency @types/react to v19.0.12 by @renovate in #9712
  • fix(deps): update dependency @zio.dev/zio-redis to v1.1.3 by @renovate in #9713
  • Update sbt-bloop to 2.0.9 by @zio-scala-steward in #9714
  • Update spring-core to 6.2.5 by @zio-scala-steward in #9715
  • fix(deps): update dependency @zio.dev/zio-query to v0.7.7 by @renovate in #9718
  • fix(deps): update dependency @zio.dev/zio-kafka to v2.12.0 by @renovate in #9721
  • Update cats-effect to 3.6.0 by @zio-scala-steward in #9722
  • Bump actions/create-github-app-token from 1.11.6 to 1.11.7 by @dependabot in #9725
  • Update fs2-core to 3.12.0 by @zio-scala-steward in #9727
  • fix(deps): update dependency @zio.dev/zio-http to v3.2.0 by @renovate in #9730
  • Upgrade to Tailwind 4 by @johnspade in #9728
  • fix(deps): update tailwindcss monorepo to v4.0.17 by @renovate in #9731
  • Update zio-http to 3.2.0 by @zio-scala-steward in #9732
  • Use simple CSS minifier by @johnspade in #9734
  • fix(deps): update react monorepo to v19.1.0 by @renovate in #9735
  • fix(deps): update dependency @zio.dev/zio-telemetry to v3.1.3 by @renovate in #9736
  • Bump actions/create-github-app-token from 1.11.7 to 1.12.0 by @dependabot in #9737
  • chore(deps): update dependency cytoscape to v3.31.2 by @renovate in #9739
  • fix(deps): update tailwindcss monorepo to v4.1.0 by @renovate in #9741
  • fix(deps): update tailwindcss monorepo to v4.1.1 by @renovate in #9746
  • chore(deps): update dependency @types/react to v19.1.0 by @renovate in #9745
  • Disable Renovate Dependency Dashboard by @hearnadam in #9747
  • fix(deps): update tailwindcss monorepo to v4.1.2 by @renovate in #9749
  • fix(deps): update tailwindcss monorepo to v4.1.3 by @renovate in #9752

New Contributors

Full Changelog: v2.1.16...v2.1.17

2.1.16

26 Feb 06:36
883fe88
Compare
Choose a tag to compare

Highlights

This seemingly small release brings 2 new features to ZIO which library authors can utilize in order to provide a better DX for users. As usually, it also contains a number of optimizations, bug fixes, and it's fully binary and source-compatible with the rest of the v2.x series.

HasNoScope evidence (#9604)

In ZIO, having a Scope as an environment requirement indicates that the effect contains finalizers (e.g., closing an HTTP connection) which need to be handled at some point in the evaluation of the effect or the application's lifetime. In certain cases, we might want to ensure that an effect provided to a method does not contain any finalizers. Starting with this version of ZIO, users / library authors can use the HasNoScope evidence for methods where the environment is generic, e.g.,:

def foo[R, A](f: ZIO[R, Nothing, A)(using HasNoScope[R]) = ???

val f1 = foo(ZIO.succeed("foo")) // compiles
val f2 = foo(ZIO.acquireRelease(ZIO.succeed("foo"))(_ => ZIO.unit)) // fails to compile

Note that this feature is primarily intended for use in libraries such as zio-http where we need to ensure that a user-provided effect does not contain any finalizers.

Generic interfaces for non-empty collections (#9560)

This release introduces the NonEmptySeq type class (which NonEmptyChunk now extends) so that users / library authors can write generic code which requires non-empty collections as arguments.

What's Changed

Other changes (CI, dependencies and documentation)

  • fix(deps): update dependency @zio.dev/zio-json to v0.7.15 by @renovate in #9551
  • Update magnolia to 1.3.11 by @zio-scala-steward in #9553
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.16 by @renovate in #9561
  • Remove community project zio-aws-s3 from doc as it's not maintained by @guizmaii in #9564
  • Update zio-aws doc by @guizmaii in #9563
  • Update magnolia to 1.3.12 by @zio-scala-steward in #9567
  • chore(deps): update dependency prettier to v3.5.0 by @renovate in #9566
  • Deprecate accessor methods in zio-kafka tutorial by @erikvanoosten in #9565
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.17 by @renovate in #9572
  • fix(deps): update dependency @zio.dev/zio-prelude to v1.0.0-rc39 - autoclosed by @renovate in #9573
  • fix: Flaky broadcastDynamic tests (#9555) by @gkfabs in #9557
  • Bump actions/create-github-app-token from 1.11.2 to 1.11.3 by @dependabot in #9577
  • fix(deps): update dependency postcss to v8.5.2 by @renovate in #9578
  • fix(deps): update dependency @zio.dev/zio-bson to v1.0.8 by @renovate in #9579
  • Update reactor-core to 3.7.3 by @zio-scala-steward in #9581
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.18 by @renovate in #9582
  • fix(deps): update dependency @zio.dev/zio-redis to v1.0.1 by @renovate in #9583
  • fix(deps): update dependency @zio.dev/zio-sbt to v0.4.0-alpha.31 by @renovate in #9584
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.19 by @renovate in #9588
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.20 by @renovate in #9591
  • chore(deps): update dependency prettier to v3.5.1 by @renovate in #9590
  • Update magnolia to 1.3.13 by @zio-scala-steward in #9594
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.21 by @renovate in #9599
  • Update sbt-mdoc to 2.6.4 by @zio-scala-steward in #9595
  • Update spring-core to 6.2.3 by @zio-scala-steward in #9596
  • chore(deps): update dependency @types/react to v19.0.9 by @renovate in #9605
  • Bump actions/create-github-app-token from 1.11.3 to 1.11.5 by @dependabot in #9607
  • chore(deps): update dependency @types/react to v19.0.10 by @renovate in #9606
  • Update magnolia to 1.3.14 by @zio-scala-steward in #9609
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.22 by @renovate in #9612
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.23 by @renovate in #9613
  • fix(deps): update dependency react-icons to v5.5.0 by @renovate in #9615
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.24 by @renovate in #9614
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.25 by @renovate in #9618
  • Tweaking the zio-kafka tutorial by @erikvanoosten in #9617
  • fix(deps): update dependency postcss to v8.5.3 by @renovate in #9620
  • fix(deps): update dependency @zio.dev/zio-schema to v1.6.2 by @renovate in #9619
  • fix(deps): update dependency @zio.dev/zio-kafka to v2.11.0 by @renovate in #9621
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.26 by @renovate in #9627
  • fix(deps): update dependency @zio.dev/zio-schema to v1.6.3 by @renovate in #9623
  • fix(deps): update dependency react-markdown to v10 by @renovate in #9626
  • chore(deps): update dependency prettier to v3.5.2 by @renovate in #9631
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.28 by @renovate in #9632
  • Update sbt-scalafix, scalafix-testkit to 0.14.2 by @zio-scala-steward in #9628
  • Update junit-platform-engine to 1.12.0 by @zio-scala-steward in #9630
  • fix(deps): update dependency @zio.dev/zio-redis to v1.1.0 by @renovate in #9634
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.29 by @renovate in #9635
  • fix(deps): update dependency @zio.dev/zio-logging to v2.5.0 by @renovate in #9636
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.30 by @renovate in #9637
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.31 by @renovate in #9641
  • Bump JamesIves/github-pages-deploy-action from 4.7.2 to 4.7.3 by @dependabot in #9639
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.32 by @renovate in #9643
  • Bump peter-evans/create-pull-request from 7.0.6 to 7.0.7 by @dependabot in #9640
  • fix(deps): update dependency @zio.dev/zio-json to v0.7.33 by @renovate in #9644
  • Update slf4j-simple to 2.0.17 by @zio-scala-steward in #9646
  • Update magnolia to 1.3.15 by @zio-scala-steward in #9645

Full Changelog: v2.1.15...v2.1.16

2.1.15

05 Feb 10:47
299f180
Compare
Choose a tag to compare

Highlights

This release contains various under-the-hood optimizations and minor bug fixes.

Important

One noteable change is the update of izumi-reflect to v3.x from v2.x. This version of izumi-reflect generates tags that are not binary/backwards compatible for Scala 3 opaque types with those generated by v2.x.

Since zio itself does not use opaque types, we considered this as a safe change. However, library authors that have ZIO as a dependency might want to check whether this change affects them in any way and release a new version using the updated zio / izumi-reflect versions

What's Changed

Other changes (CI, dependencies and documentation)

New Contributors

Full Changelog: v2.1.14...v2.1.15

2.1.14

19 Dec 12:51
bc18e4a
Compare
Choose a tag to compare

Highlights

This release comes packed with bug fixes and under-the-hood optimizations. Big thank you to all the old and new contributors for their work in this release!

Important

Runtime behaviour change of ZIO#onDone and ZIO#onDoneCause

In this release, the behavior of onDone and onDoneCause has changed to address concerns raised in #9191. Unlike other onX methods, onDone and onDoneCause executed the callback effects in "fire and forget" mode.

We believe that this behaviour could lead to unexpected bugs in applications. As such we changed the implementation of these methods so that the callbacks are executed synchronously. While we believe it's highly unlikely that users using these methods were aware of this implementation detail, we still advice them to review their usages as a precaution.

What's Changed

Other changes (CI, dependencies and documentation)

New Contributors

Full Changelog: v2.1.13...v2.1.14

2.1.13

20 Nov 05:32
6fe8720
Compare
Choose a tag to compare

Highlights

This seemingly small release brings a number of new features and important bugfixes:

  1. Adds support for the Junit 5 engine via the new zio-test-junit-engine module #9214.
  2. [ScalaJS] Adds support for accessing environment variables via zio.System in JS engines that support it (e.g., NodeJS) #9282.
  3. Fixes a bug to an issue some users faced with ZStream.mapZIOPar* methods since v2.1.12 #9312.

As always, this version is fully source and binary compatible with the rest of the v2.x series.

What's Changed

Other changes (CI, dependencies and documentation)

New Contributors

Full Changelog: v2.1.12...v2.1.13

2.1.12

07 Nov 05:23
f092e25
Compare
Choose a tag to compare

This release brings a couple bug fixes for STM, as well as a few optimizations and usability improvements.

What's Changed

Other changes (CI, dependencies and documentation)

2.1.11

10 Oct 13:06
6362961
Compare
Choose a tag to compare

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

  • Fix IndexOutOfBoundsException when using reverseIterator on UpdateOrderLinkedMap by @kyri-petrou in #9239

2.1.10

10 Oct 06:50
66fcbd1
Compare
Choose a tag to compare

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)

  • chore(deps): update dependency @types/react to v18.3.5 by @renovate in #9154
  • fix(deps): update dependency postcss to v8.4.42 by @renovate in #9156
  • Restyling welcome page by @SvMak in #9112
  • fix(deps): update dependency postcss to v8.4.43 by @renovate in #9158
  • fix(deps): update dependency postcss to v8.4.44 by @renovate in #9159
  • Add zio-apache-parquet to ecosystem community docs by @grouzen in #9157
  • fix(deps): update dependency postcss to v8.4.45 by @renovate in #9169
  • fix(deps): update dependency @zio.dev/zio-prelude to v1.0.0-rc31 by @renovate in #9171
  • Set JDK release version to 11 by @kyri-petrou in #9177
  • fix(deps): update dependency @zio.dev/zio-http to v3.0.0 by @renovate in #9190
  • Fix logo resolution by @SvMak in #9188
  • fix(deps): update dependency postcss to v8.4.47 by @renovate in #9196
  • fix(deps): update dependency tailwindcss to v3.4.11 by @renovate in #9192
  • fix(deps): update dependency @zio.dev/zio-query to v0.7.6 by @renovate in #9197
  • chore(deps): update dependency @types/react to v18.3.6 by @renovate in #9198
  • Documentation: Fix The Link to OpenTracing Documentation Page by @khajavi in #9161
  • chore(deps): update dependency @types/react to v18.3.7 by @renovate in #9199
  • fix(deps): update dependency @zio.dev/zio-http to v3.0.1 by @renovate in #9200
  • fix(deps): update dependency @zio.dev/zio-bson to v1.0.7 by @renovate in #9201
  • fix(deps): update dependency @zio.dev/zio-schema to v1.5.0 by @renovate in #9204
  • fix(deps): update dependency tailwindcss to v3.4.12 by @renovate in #9202
  • chore(deps): update dependency @types/react to v18.3.8 by @renovate in #9206
  • Remove mention of discontinued tools by @namingbe in #9213
  • Typos in zpipeline.md by @dubinsky in #9219
  • fix(deps): update dependency tailwindcss to v3.4.13 by @renovate in #9216
  • chore(deps): update dependency prettier-plugin-tailwindcss to v0.6.8 by @renovate in #9218
  • chore(deps): update dependency @types/react to v18.3.9 by @renovate in #9217
  • Doc: Update info about Java versions supported by @guizmaii in #9224
  • chore(deps): update dependency @types/react to v18.3.11 by @renovate in #9225
  • Doc: Needs to use serviceWithZIO not serviceWith by @fancellu in #9226
  • fix(deps): update dependency @zio.dev/zio-lambda to v1.0.5 by @renovate in #9230
  • Fix documentation for TestLens#right by @callado4 in #9232

2.1.9

29 Aug 02:59
dd98613
Compare
Choose a tag to compare

After receiving multiple reports of users failing to compile code using ZLayer macros with v2.1.8, we decided to temporarily revert #9077 until we get to bottom of what's been causing it.

What's Changed

Full Changelog: v2.1.8...v2.1.9

2.1.8

24 Aug 10:29
e5341e1
Compare
Choose a tag to compare

This release brings a re-implemented ZSTM runtime that significantly improves performance under contention, enables multi-threading for Scala Native 0.5.x, squashes some minor bugs, and makes a few things run a little bit faster. And it is fully binary and source-compatible with the rest of 2.x release!

Highlights

ZSTM performance improvements

The performance of ZSTM under heavy contention has regressed over time due to various bug fixes. In this release, we reimplemented the internal runtime of ZSTM in order to significantly improve its performance under heavy contention (up to 800% improved throughput in some benchmarks!) all while achieving similar or better performance under no contention. For more details check out #9081

Scala Native multi-threading support

In the previous release, we updated Scala Native to v0.5.x but as we mentioned in the release notes, the ZIO runtime was not yet multi-threading capable. In this release, we threw most of the existing Scala Native code (which was not thread-safe) and changed it to use (mostly) the same code as the JVM artifacts. Users that currently use ZIO with Scala Native 0.5.x must enable multi-threading for Scala Native in their builds by removing nativeConfig ~= { _.withMultithreading(false) }.

Warning

We're aware of an issue when using zio-test on MacOS ARM64 when the debug compilation mode is used (default). If you come across any issues, try setting the mode to releaseFast or releaseFull (see here for an example)

What's Changed

Other changes (CI, dependencies and documentation)

0