Skip to content

Commit

Permalink
Update zio, zio-streams, zio-test, ... to 2.1.14 (#1422)
Browse files Browse the repository at this point in the history
## About this PR
📦 Updates 
* [dev.zio:zio](https://github.com/zio/zio)
* [dev.zio:zio-streams](https://github.com/zio/zio)
* [dev.zio:zio-test](https://github.com/zio/zio)
* [dev.zio:zio-test-sbt](https://github.com/zio/zio)

 from `2.1.12` to `2.1.14`

📜 [GitHub Release
Notes](https://github.com/zio/zio/releases/tag/v2.1.14) - [Version
Diff](zio/zio@v2.1.12...v2.1.14)

## Usage
✅ **Please merge!**

I'll automatically update this PR to resolve conflicts as long as you
don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you
have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a
[`.scala-steward.conf`](https://github.com/scala-steward-org/scala-steward/blob/e55a877397969e431e5107098941e0c7ed13ea26/docs/repo-specific-configuration.md)
file.

_Have a fantastic day writing Scala!_

<details>
<summary>⚙ Adjust future updates</summary>

Add this to your `.scala-steward.conf` file to ignore future updates of
this dependency:
```
updates.ignore = [ { groupId = "dev.zio" } ]
```
Or, add this to slow down future updates of this dependency:
```
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "dev.zio" }
}]
```
</details>

<sup>
labels: library-update, early-semver-patch, semver-spec-patch,
commit-count:1
</sup>

<!-- scala-steward = {
  "Update" : {
    "ForGroupId" : {
      "forArtifactIds" : [
        {
          "ForArtifactId" : {
            "crossDependency" : [
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio",
                  "maybeCrossName" : "zio_2.13"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio",
                  "maybeCrossName" : "zio_3"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              }
            ],
            "newerVersions" : [
              "2.1.14"
            ],
            "newerGroupId" : null,
            "newerArtifactId" : null
          }
        },
        {
          "ForArtifactId" : {
            "crossDependency" : [
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-streams",
                  "maybeCrossName" : "zio-streams_2.13"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-streams",
                  "maybeCrossName" : "zio-streams_3"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              }
            ],
            "newerVersions" : [
              "2.1.14"
            ],
            "newerGroupId" : null,
            "newerArtifactId" : null
          }
        },
        {
          "ForArtifactId" : {
            "crossDependency" : [
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test",
                  "maybeCrossName" : "zio-test_2.13"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test",
                  "maybeCrossName" : "zio-test_2.13"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : "test"
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test",
                  "maybeCrossName" : "zio-test_3"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : null
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test",
                  "maybeCrossName" : "zio-test_3"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : "test"
              }
            ],
            "newerVersions" : [
              "2.1.14"
            ],
            "newerGroupId" : null,
            "newerArtifactId" : null
          }
        },
        {
          "ForArtifactId" : {
            "crossDependency" : [
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test-sbt",
                  "maybeCrossName" : "zio-test-sbt_2.13"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : "test"
              },
              {
                "groupId" : "dev.zio",
                "artifactId" : {
                  "name" : "zio-test-sbt",
                  "maybeCrossName" : "zio-test-sbt_3"
                },
                "version" : "2.1.12",
                "sbtVersion" : null,
                "scalaVersion" : null,
                "configurations" : "test"
              }
            ],
            "newerVersions" : [
              "2.1.14"
            ],
            "newerGroupId" : null,
            "newerArtifactId" : null
          }
        }
      ]
    }
  },
  "Labels" : [
    "library-update",
    "early-semver-patch",
    "semver-spec-patch",
    "commit-count:1"
  ]
} -->

---------

Co-authored-by: zio-scala-steward[bot] <145262613+zio-scala-steward[bot]@users.noreply.github.com>
Co-authored-by: Erik van Oosten <e.vanoosten@grons.nl>
Co-authored-by: Steven Vroonland <svroonland@gmail.com>
Co-authored-by: svroonland <svroonland@users.noreply.github.com>
  • Loading branch information
4 people authored Dec 22, 2024
1 parent 3e54282 commit 4fdcc15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lazy val _scala3 = "3.3.4"
inThisBuild(
List(
name := "ZIO Kafka",
zioVersion := "2.1.12",
zioVersion := "2.1.14",
scalaVersion := _scala213,
// zio-sbt defines these 'scala213' and 'scala3' settings, but we need to define them here to override the defaults and better control them
scala213 := _scala213,
Expand Down
22 changes: 11 additions & 11 deletions zio-kafka-test/src/test/scala/zio/kafka/ProducerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
record1 <- ZIO.scoped {
withConsumer(Topics(Set(topic1)), settings).flatMap { consumer =>
for {
messages <- consumer.take.flatMap(_.done).mapError(_.getOrElse(new NoSuchElementException))
messages <- consumer.take.flatMap(_.exit).mapError(_.getOrElse(new NoSuchElementException))
record = messages
.filter(rec => rec.record.key == key1 && rec.record.value == value1)
} yield record
Expand All @@ -201,7 +201,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
record2 <- ZIO.scoped {
withConsumer(Topics(Set(topic2)), settings).flatMap { consumer =>
for {
messages <- consumer.take.flatMap(_.done).mapError(_.getOrElse(new NoSuchElementException))
messages <- consumer.take.flatMap(_.exit).mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == key2 && rec.record.value == value2)
} yield record
}
Expand Down Expand Up @@ -244,7 +244,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
settings <- consumerSettings(client, Some(group))
recordsConsumed <- ZIO.scoped {
withConsumer(Topics(Set(standardTopic)), settings).flatMap { consumer =>
consumer.take.flatMap(_.done).mapError(_.getOrElse(new NoSuchElementException))
consumer.take.flatMap(_.exit).mapError(_.getOrElse(new NoSuchElementException))
}
}
} yield assertTrue(
Expand Down Expand Up @@ -294,7 +294,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == "bob")
} yield record
Expand Down Expand Up @@ -334,7 +334,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == "bob")
} yield record
Expand Down Expand Up @@ -369,7 +369,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
} yield messages
}
Expand Down Expand Up @@ -422,7 +422,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == "no one")
} yield record
Expand Down Expand Up @@ -463,7 +463,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == "no one")
} yield record
Expand Down Expand Up @@ -509,7 +509,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
withConsumerInt(Topics(Set(topic)), settings).flatMap { consumer =>
for {
messages <- consumer.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
record = messages.filter(rec => rec.record.key == "no one")
} yield record
Expand Down Expand Up @@ -540,7 +540,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
.flatMap { q =>
val readAliceAccount = for {
messages <- q.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
} yield messages.head
for {
Expand Down Expand Up @@ -587,7 +587,7 @@ object ProducerSpec extends ZIOSpecDefaultSlf4j with KafkaRandom {
.flatMap { q =>
val readAliceAccount = for {
messages <- q.take
.flatMap(_.done)
.flatMap(_.exit)
.mapError(_.getOrElse(new NoSuchElementException))
} yield messages.head
for {
Expand Down

0 comments on commit 4fdcc15

Please sign in to comment.