From b3df8a70a17c87093c0b33ea3fde16e22a511928 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Tue, 6 Jun 2023 16:51:46 +0000 Subject: [PATCH] Use jawn parser on all platforms --- build.sbt | 2 +- modules/circe/src/main/scala/JsonCodecs.scala | 2 +- modules/tests/shared/src/test/scala/codec/JsonCodecTest.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index c563d46b5..c35077388 100644 --- a/build.sbt +++ b/build.sbt @@ -159,7 +159,7 @@ lazy val circe = crossProject(JVMPlatform, JSPlatform, NativePlatform) name := "skunk-circe", libraryDependencies ++= Seq( "io.circe" %%% "circe-core" % "0.14.5", - "io.circe" %%% "circe-parser" % "0.14.5" + "io.circe" %%% "circe-jawn" % "0.14.5" ) ) diff --git a/modules/circe/src/main/scala/JsonCodecs.scala b/modules/circe/src/main/scala/JsonCodecs.scala index 6d3341b68..007269dd1 100644 --- a/modules/circe/src/main/scala/JsonCodecs.scala +++ b/modules/circe/src/main/scala/JsonCodecs.scala @@ -7,7 +7,7 @@ package circe.codec import cats.syntax.all._ import io.circe.{ Json, Encoder => CEncoder, Decoder => CDecoder } -import io.circe.parser.parse +import io.circe.jawn.parse import skunk.data.Type trait JsonCodecs { diff --git a/modules/tests/shared/src/test/scala/codec/JsonCodecTest.scala b/modules/tests/shared/src/test/scala/codec/JsonCodecTest.scala index 265383760..8a91f6217 100644 --- a/modules/tests/shared/src/test/scala/codec/JsonCodecTest.scala +++ b/modules/tests/shared/src/test/scala/codec/JsonCodecTest.scala @@ -5,7 +5,7 @@ package tests package codec import io.circe.Json -import io.circe.parser.parse +import io.circe.jawn.parse import skunk._ import skunk.circe.codec.all._