Skip to content

Commit 6e17a9e

Browse files
Phill101Nikita Filimonov
and
Nikita Filimonov
authored
bump play-json-jsoniter to 1.1.1 (#441)
Co-authored-by: Nikita Filimonov <nfilimonov@evolution.com>
1 parent 5070bca commit 6e17a9e

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

modules/play-json/src/main/scala/com/evolutiongaming/skafka/producer/JsonProducer.scala

+7-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.evolutiongaming.skafka.producer
22

33
import cats.Applicative
44
import com.evolutiongaming.catshelper.FromTry
5-
import com.evolutiongaming.jsonitertool.PlayJsonJsoniter
5+
import com.evolution.playjson.jsoniter.PlayJsonJsoniter
66
import com.evolutiongaming.skafka.{ToBytes, Topic}
77
import play.api.libs.json.{JsValue, Json}
88

@@ -14,15 +14,16 @@ trait JsonProducer[F[_]] {
1414

1515
object JsonProducer {
1616

17-
def empty[F[_] : Applicative : FromTry]: JsonProducer[F] = apply(Producer.Send.empty[F])
17+
def empty[F[_]: Applicative: FromTry]: JsonProducer[F] = apply(Producer.Send.empty[F])
1818

19-
implicit def jsValueToBytes[F[_] : FromTry]: ToBytes[F, JsValue] = {
20-
(value: JsValue, _: Topic) => FromTry[F].apply {
19+
implicit def jsValueToBytes[F[_]: FromTry]: ToBytes[F, JsValue] = { (value: JsValue, _: Topic) =>
20+
FromTry[F].apply {
2121
Try(PlayJsonJsoniter.serialize(value)).orElse {
2222
Try(Json.toBytes(value))
2323
}
2424
}
2525
}
2626

27-
def apply[F[_] : FromTry](send: Producer.Send[F]): JsonProducer[F] = (record: ProducerRecord[String, JsValue]) => send(record)
28-
}
27+
def apply[F[_]: FromTry](send: Producer.Send[F]): JsonProducer[F] = (record: ProducerRecord[String, JsValue]) =>
28+
send(record)
29+
}

project/Dependencies.scala

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ import sbt._
22

33
object Dependencies {
44

5-
val `executor-tools` = "com.evolutiongaming" %% "executor-tools" % "1.0.2"
6-
val `config-tools` = "com.evolutiongaming" %% "config-tools" % "1.0.4"
7-
val `future-helper` = "com.evolutiongaming" %% "future-helper" % "1.0.6"
8-
val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "2.11.0"
9-
val `testcontainers-kafka` = "com.dimafeng" %% "testcontainers-scala-kafka" % "0.40.17"
10-
val `play-json-jsoniter` = "com.evolutiongaming" %% "play-json-jsoniter" % "0.10.0"
11-
val `scala-java8-compat` = "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
12-
val `collection-compat` = "org.scala-lang.modules" %% "scala-collection-compat" % "2.8.1"
13-
val scalatest = "org.scalatest" %% "scalatest" % "3.2.13"
14-
val `kind-projector` = "org.typelevel" % "kind-projector" % "0.13.2"
15-
val discipline = "org.typelevel" %% "discipline-scalatest" % "2.2.0"
5+
val `executor-tools` = "com.evolutiongaming" %% "executor-tools" % "1.0.2"
6+
val `config-tools` = "com.evolutiongaming" %% "config-tools" % "1.0.4"
7+
val `future-helper` = "com.evolutiongaming" %% "future-helper" % "1.0.6"
8+
val `cats-helper` = "com.evolutiongaming" %% "cats-helper" % "2.11.0"
9+
val `testcontainers-kafka` = "com.dimafeng" %% "testcontainers-scala-kafka" % "0.40.17"
10+
val `play-json-jsoniter` = "com.evolution" %% "play-json-jsoniter" % "1.1.1"
11+
val `scala-java8-compat` = "org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
12+
val `collection-compat` = "org.scala-lang.modules" %% "scala-collection-compat" % "2.8.1"
13+
val scalatest = "org.scalatest" %% "scalatest" % "3.2.13"
14+
val `kind-projector` = "org.typelevel" % "kind-projector" % "0.13.2"
15+
val discipline = "org.typelevel" %% "discipline-scalatest" % "2.2.0"
1616

1717
object Kafka {
1818
private val version = "3.4.0"
@@ -34,13 +34,13 @@ object Dependencies {
3434

3535
object Cats {
3636
private val version = "2.8.0"
37-
val core = "org.typelevel" %% "cats-core" % version
38-
val laws = "org.typelevel" %% "cats-laws" % version
37+
val core = "org.typelevel" %% "cats-core" % version
38+
val laws = "org.typelevel" %% "cats-laws" % version
3939
}
4040

4141
object CatsEffect {
4242
private val version = "2.5.5"
43-
val effect = "org.typelevel" %% "cats-effect" % version
43+
val effect = "org.typelevel" %% "cats-effect" % version
4444
}
4545

4646
object Smetrics {

version.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "11.16.4-SNAPSHOT"
1+
ThisBuild / version := "11.17.0"

0 commit comments

Comments
 (0)