Repository navigation
v0.24.0
0.24.0 - 2022-11-20
New Features
extras-type-info
- [
extras-type-info] Addextras-type-infomodule to replaceextras-reflectswith Scala 3 support (#264)sealed trait Aaa object Aaa { final case class Bbb(n: Int) extends Aaa case object Ccc extends Aaa def bbb(n: Int): Aaa = Bbb(n) def ccc: Aaa = Ccc } final case class Something[A](a: A) Aaa.bbb(123).nestedClassName // Aaa.Bbb Aaa.ccc.nestedTypeName // Aaa.Ccc
extras-hedgehog-circe
- [
extras-hedgehog-circe] Addround-triptest support for circe (#263)object SomethingSpec extends Properties { override def tests: List[Test] = List( property("round-trip test Codec[Something]", roundTripTestCodecSomething) ) def roundTripTestCodecSomething: Property = for { something <- genSomething.log("something") } yield { RoundTripTester(something) .indent(2) .test() } def genSomething: Gen[Something] = for { id <- Gen.int(Range.linear(1, 100)) name <- Gen.string(Gen.unicode, Range.linear(3, 20)) } yield Something(id, name) final case class Something(id: Int, name: String) object Something { implicit val somethingShow: Show[Something] = something => s"Something(id = ${something.id.toString}, name = ${something.name})" implicit val somethingCodec: Codec[Something] = io.circe.generic.semiauto.deriveCodec } }
- [
extras-hedgehog-circe] Useextras-type-infoto support Scala 3 (#270)- Scala 2 version uses
extras-type-infoas well, butextras-type-infointernally usesWeakTypeTagfromscala.reflect.runtime.universeinscala-reflect, an additional reflection API library, to get the type info. - Scala 3 version of
extras-type-infousesscala.reflect.ClassTag,scala.compiletimeandscala.quotedto get the type info.
- Scala 2 version uses
What's Changed
- Update: docs with the change in the new version by @kevin-lee in #259
- Update: docs with the new features of Render by @kevin-lee in #260
- Update: README.md and intro.md by @kevin-lee in #261
- Clean up build.sbt by @kevin-lee in #262
- Close #263 - [extras-hedgehog-circe] Add round-trip test support for circe by @kevin-lee in #265
- Update:
.scalafmt.conf-trailingCommas:keep=>multipleand reformat the code by @kevin-lee in #267 - Add
.git-blame-ignore-revsby @kevin-lee in #268 - Close #264 - Add
extras-type-infomodule to replaceextras-reflectswith Scala 3 support by @kevin-lee in #266 - Fix #264 - extras.typeinfo.syntax.tags => extras.typeinfo.syntax.types (tags was the wrong name) by @kevin-lee in #269
- Close #270 - [
extras-hedgehog-circe] Useextras-type-infoto support Scala 3 by @kevin-lee in #271 - extras v0.24.0 by @kevin-lee in #272
Full Changelog: v0.23.0...v0.24.0