Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: zio/zio

v1.0.0-RC13

22 Sep 09:22

Choose a tag to compare

Notable changes

ZIO

ZStream

ZIO Test

ZSchedule

ZManaged

v1.0.0-RC12-1

03 Sep 04:34

Choose a tag to compare

Same as v1.0.0-RC12, fixing the missing ZIO Test for Scala 2.12.

v1.0.0-RC12

02 Sep 13:43

Choose a tag to compare

Notable changes

ZIO

Stream

In this release, the internal representation of ZStream has been vastly simplified to an effectful, scoped iterator. This representation, besides being simpler to write combinators and constructors for, should result in improved performance and less GC pressure. Please report any issues you notice!

  • Add ZSink#zipPar (#1344) by @simpadjo
  • Add ZSink#collectAllN and variants for grouping elements into n-sized lists, sets, maps (#1362) by @PawelGizka
  • Add ZStream#interleave, ZStream#interleaveWith and ZStream#combine for merging of streams (#1355) by @adamgfraser
  • Add ZStreamChunk#collect (#1379) by @shankarshastri
  • Add ZStream#broadcast, ZStream#groupBy, ZStream#partition, ZStream#timeout and other variants (#1387) by @mschuwalow
  • Add ZStream#catchAll, ZStream#mapError, ZStream#provide and variants (#1427) by @iravid
  • Refactor of ZStream internals by @iravid and @vasilmkd
  • Add ZSink#splitLines (#1384) by @iravid
  • Add ZStream#zipWithLatest, ZStream#fixed, ZStream#schedule and variants (#1482) by @regiskuckaertz

ZIO Test

STM

Cause

v1.0.0-RC11-1

05 Aug 05:22

Choose a tag to compare

Same as v1.0.0-RC11 + publishes missing ZIO Test for ScalaJS

v1.0.0-RC11

04 Aug 18:07
42be113

Choose a tag to compare

ZIO Test

Early beta version of dependency-free test library for (pure FP) effectful programs. Critical constructs include:

  • Spec - A value-level representation for a specification
  • ZSpec - An alias for a Spec whose tests are ZIO effects
  • Predicate - Composable predicates with detailed error messages
  • zio.test.{ assert, assertM, check, checkAll, checkSome, suite, test, testM } - The building blocks for constructing specs
  • RunnableSpec - Specs will extend this (or DefaultRunnableSpec)
  • TestRunner - Every runnable spec points to a spec runner
  • TestAspect - Features that can be added to specs, such as timeouts, retries, etc.
  • Gen - Generators for property-testing based on ZIO Stream

ZIO Test has excellent support for environmental effects; specs that use the ZIO environmental effects (Console, Clock, etc.) will automatically (in DefaultRunnableSpec) be provided with a newly-created mock environment, meaning they will execute fast and deterministically. Users can supply their own mock environments when extending RunnableSpec.

ZIO Test Example:

class MySpec extends DefaultRunnableSpec {
  import Predicate._
  import zio.random._
  import zio.test.TestAspect.{ flaky, timeout }

  suite("An example suite") {
    test("addition") {
      assert(2 + 2, equals(4))
    },
    testM("random.nextDouble") { 
      assertM(nextDouble, isGreaterThanEqual(0.0) && isLessThanEqual(1.0)) 
    },
    (flaky >>> timeout(10.seconds)) {
      testM("flaky random.nextDouble") {
        assertM(nextDouble, isGreaterThan(0.5))
      }
    }
  }
}

Other notable changes

ZIO

ZManaged

ZSchedule

ZStream and ZSink

Promise

Semaphore

v1.0.0-RC10-1

12 Jul 13:43
97794d9

Choose a tag to compare

v1.0.0-RC10-1 Pre-release
Pre-release

Re-release RC10 due to scaladoc failure

v1.0.0-RC10

11 Jul 18:13
399c24f

Choose a tag to compare

v1.0.0-RC10 Pre-release
Pre-release

A new release of ZIO! Now available for Scala 2.13.0

PRs merged in this release:

  • Release zio for scala 2.13 (#1104)
  • Limit the maximum amount of ancestors in a ZIO Trace (#1158)
  • Ensure that two chunks can be compared for equality and hash code #1159 (#1163)
  • Bracket example to doc (#962)
  • Introduce real companion object for Schedule - Fix #1111 (#1140)
  • Move Queue specific methods to its own companion object (#1111) (#1142)
  • clarify that callback must be called at most once for async effects (#1153)
  • Introduce Stream companion object (#1111) (#1147)
  • Introduce real companion object for Sink (#1144)
  • Added zio-slick to the ecosystem page (#1152)
  • Fix CI release failure "SCM URL missing" (#1145)

1.0.0-RC10

11 Jul 16:23
399c24f

Choose a tag to compare

1.0.0-RC10 Pre-release
Pre-release

A new release of ZIO! Now available for Scala 2.13.0

PRs merged in this release:

  • Release zio for scala 2.13 (#1104)
  • Limit the maximum amount of ancestors in a ZIO Trace (#1158)
  • Ensure that two chunks can be compared for equality and hash code #1159 (#1163)
  • Bracket example to doc (#962)
  • Introduce real companion object for Schedule - Fix #1111 (#1140)
  • Move Queue specific methods to its own companion object (#1111) (#1142)
  • clarify that callback must be called at most once for async effects (#1153)
  • Introduce Stream companion object (#1111) (#1147)
  • Introduce real companion object for Sink (#1144)
  • Added zio-slick to the ecosystem page (#1152)
  • Fix CI release failure "SCM URL missing" (#1145)

v1.0.0-RC9-4

07 Jul 23:23
a2d65a4

Choose a tag to compare

v1.0.0-RC9-4 Pre-release
Pre-release

retry release with build.sbt fix

v1.0.0-RC9-3

07 Jul 22:54

Choose a tag to compare

v1.0.0-RC9-3 Pre-release
Pre-release