Skip to content

Commit

Permalink
Use shaded circe 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindberg committed Apr 28, 2020
1 parent 3ae125a commit e3a2bef
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.scalablytyped.converter
package internal
package importer

import io.circe.{Decoder, Encoder}
import io.circe013.{Decoder, Encoder}
import org.scalablytyped.converter.internal.scalajs.{Name, Versions}

case class ConversionOptions(
Expand All @@ -19,7 +19,7 @@ case class ConversionOptions(
)

object ConversionOptions {
import io.circe.generic.auto._
import io.circe013.generic.auto._
import jsonCodecs._

implicit val encodes: Encoder[ConversionOptions] = exportEncoder[ConversionOptions].instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.scalablytyped.converter.internal
package importer

import io.circe.Decoder
import io.circe.generic.semiauto.deriveDecoder
import io.circe013.Decoder
import io.circe013.generic.semiauto.deriveDecoder
import org.scalablytyped.converter.internal.scalajs.Dep

final case class FacadeJson(typings: Set[String], dependencies: Set[Dep.ScalaJs])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package org.scalablytyped.converter.internal
package importer

import org.scalablytyped.converter.internal.ts.TsIdentLibrary
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
import io.circe.syntax._
import io.circe013.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe013.{Decoder, Encoder}
import io.circe013.syntax._

object ScalaJsBundlerDepFile {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package org.scalablytyped.converter.internal
package importer.documentation

import com.olvind.logging.Logger
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
import io.circe013.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe013.{Decoder, Encoder}
import org.scalablytyped.converter.internal.importer.Source

import scala.concurrent.Future
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import java.io.File
import java.net.URI

import org.scalablytyped.converter.internal.ts._
import io.circe._
import io.circe013._

object jsonCodecs {
implicit def IArrayEncoder[T <: AnyRef: Encoder]: Encoder[IArray[T]] =
Expand All @@ -31,7 +31,7 @@ object jsonCodecs {
implicit val TsIdentLibraryMapEncoder: Encoder[Map[TsIdentLibrary, String]] =
Encoder[Map[String, String]].contramap[Map[TsIdentLibrary, String]](_.map { case (k, v) => k.value -> v })

import io.circe.generic.semiauto._
import io.circe013.generic.semiauto._

implicit val CompilerOptionsEncoder: Encoder[CompilerOptions] = deriveEncoder[CompilerOptions]
implicit val CompilerOptionsDecoder: Decoder[CompilerOptions] = deriveDecoder[CompilerOptions]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package org.scalablytyped.converter.internal
package importer

import org.scalablytyped.converter.internal.ts.TsIdentLibrary
import io.circe.Decoder.Result
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder, HCursor}
import io.circe013.Decoder.Result
import io.circe013.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe013.{Decoder, Encoder, HCursor}

case class Summary(
successes: Set[TsIdentLibrary],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.ning.http.client._
import com.ning.http.client.listenable.AbstractListenableFuture
import dispatch.{FunctionHandler, Http, StatusCode}
import gigahorse.Status
import io.circe.{Decoder, Encoder}
import io.circe013.{Decoder, Encoder}
import org.scalablytyped.converter.internal.scalajs.Dep
import org.scalablytyped.converter.internal.stringUtils.quote

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.scalablytyped.converter.internal.importer

import io.circe.parser._
import io.circe013.parser._
import org.scalablytyped.converter.internal.IArray
import org.scalablytyped.converter.internal.importer.jsonCodecs._
import org.scalablytyped.converter.internal.ts._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.scalablytyped.converter.internal.importer

import io.circe.parser._
import io.circe.syntax._
import io.circe013.parser._
import io.circe013.syntax._
import org.scalablytyped.converter.internal.importer.ScalaJsBundlerDepFile.NpmDependencies
import org.scalatest.funsuite.AnyFunSuite

Expand Down
2 changes: 1 addition & 1 deletion project/Deps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ object Deps {
val scopt = "com.github.scopt" %% "scopt" % "4.0.0-RC2"

val circe: Seq[ModuleID] =
Seq("core", "generic", "parser", "jackson29").map(s => "io.circe" %% s"circe-$s" % "0.11.1")
Seq("core", "generic", "parser", "jackson29").map(s => "io.circe013" %% s"circe-$s" % "0.13.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package internal
import java.nio.file.Path

import com.olvind.logging.Logger
import io.circe.{Decoder, Encoder}
import io.circe013.{Decoder, Encoder}
import org.scalablytyped.converter.internal.importer._
import org.scalablytyped.converter.internal.importer.build.{Compiler, PublishedSbtProject}
import org.scalablytyped.converter.internal.importer.documentation.Npmjs
Expand All @@ -27,7 +27,7 @@ object ImportTypings {
)

object Input {
import io.circe.generic.auto._
import io.circe013.generic.auto._
import jsonCodecs._

implicit val InputEncoder: Encoder[Input] = exportEncoder[Input].instance
Expand All @@ -37,7 +37,7 @@ object ImportTypings {
case class Output(deps: Set[Dep], allJars: Set[os.Path])

object Output {
import io.circe.generic.auto._
import io.circe013.generic.auto._
import jsonCodecs._
implicit val OutputEncoder: Encoder[Output] = exportEncoder[Output].instance
implicit val OutputDecoder: Decoder[Output] = exportDecoder[Output].instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.scalablytyped.converter.internal.scalajs

import io.circe.{Decoder, Encoder}
import io.circe013.{Decoder, Encoder}
import org.scalablytyped.converter.internal.stringUtils.quote

import scala.xml.Elem
Expand Down Expand Up @@ -61,6 +61,6 @@ object Dep {
case class ScalaFullVersion(org: String, artifact: String, version: String) extends Dep
case class ScalaJs(org: String, artifact: String, version: String) extends Dep

implicit val DepDecoder: Decoder[Dep] = io.circe.generic.semiauto.deriveDecoder[Dep]
implicit val DepEncoder: Encoder[Dep] = io.circe.generic.semiauto.deriveEncoder[Dep]
implicit val DepDecoder: Decoder[Dep] = io.circe013.generic.semiauto.deriveDecoder[Dep]
implicit val DepEncoder: Encoder[Dep] = io.circe013.generic.semiauto.deriveEncoder[Dep]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.scalablytyped.converter.internal
package scalajs
package flavours

import io.circe.Decoder
import io.circe013.Decoder
import org.scalablytyped.converter.internal.scalajs.QualifiedName.StdNames
import org.scalablytyped.converter.internal.scalajs.flavours.GenSlinkyComponents.names.{
AnyHtmlElement,
Expand Down Expand Up @@ -154,9 +154,9 @@ object SlinkyTagsLoader {
/* extract what we need from the slinky json files */
type AttrsByTag = Map[TagName.Concrete, (Tag, Set[String])]
object AttrsByTag {
private implicit val TagDecoder: Decoder[Tag] = io.circe.generic.semiauto.deriveDecoder[Tag]
private implicit val AttributeDecoder: Decoder[Attribute] = io.circe.generic.semiauto.deriveDecoder[Attribute]
private implicit val TagsModelDecoder: Decoder[TagsModel] = io.circe.generic.semiauto.deriveDecoder[TagsModel]
private implicit val TagDecoder: Decoder[Tag] = io.circe013.generic.semiauto.deriveDecoder[Tag]
private implicit val AttributeDecoder: Decoder[Attribute] = io.circe013.generic.semiauto.deriveDecoder[Attribute]
private implicit val TagsModelDecoder: Decoder[TagsModel] = io.circe013.generic.semiauto.deriveDecoder[TagsModel]

private def massage(model: TagsModel): AttrsByTag =
model.tags.map { tag =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import java.io.File
import java.nio.file.{Files, Path}

import cats.data.ValidatedNel
import io.circe._
import io.circe.syntax._
import io.circe013._
import io.circe013.syntax._

import scala.io.Source
import scala.util.control.NonFatal
Expand All @@ -18,7 +18,7 @@ object Json {
object CustomJacksonParser extends Parser {
import com.fasterxml.jackson.core.{JsonFactory, JsonParser}
import com.fasterxml.jackson.databind.ObjectMapper
import io.circe.jackson.CirceJsonModule
import io.circe013.jackson.CirceJsonModule

// val Features = Set[JsonReadFeature](
// JsonReadFeature.ALLOW_JAVA_COMMENTS,
Expand Down

0 comments on commit e3a2bef

Please sign in to comment.