From 09f39e6bbb9736e1d9455299c583d4a0c6a7059e Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Sat, 9 Apr 2022 15:24:25 +0200 Subject: [PATCH] ZIO 2.0.0-RC5 (#238) --- project/BuildHelper.scala | 8 ++++---- .../src/test/scala/zio/schema/AccessorBuilderSpec.scala | 2 +- .../src/test/scala/zio/schema/DefaultValueSpec.scala | 2 +- tests/shared/src/test/scala/zio/schema/DiffSpec.scala | 2 +- .../src/test/scala/zio/schema/DynamicValueSpec.scala | 2 +- .../shared/src/test/scala/zio/schema/MigrationSpec.scala | 2 +- .../shared/src/test/scala/zio/schema/SchemaAstSpec.scala | 2 +- .../src/test/scala/zio/schema/SchemaMigrationSpec.scala | 2 +- tests/shared/src/test/scala/zio/schema/SchemaSpec.scala | 2 +- .../src/test/scala/zio/schema/ast/NodePathSpec.scala | 2 +- .../src/test/scala-2/zio/schema/DeriveSchemaSpec.scala | 2 +- .../src/test/scala/zio/schema/optics/LensSpec.scala | 2 +- .../shared/src/test/scala/zio/schema/DeriveGenSpec.scala | 2 +- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/project/BuildHelper.scala b/project/BuildHelper.scala index cf94a47eb..16cef87ce 100644 --- a/project/BuildHelper.scala +++ b/project/BuildHelper.scala @@ -26,10 +26,10 @@ object BuildHelper { val Scala213: String = versions("2.13") val ScalaDotty: String = "3.1.0" //versions.getOrElse("3.0", versions("3.1")) - val zioVersion = "2.0.0-RC4" - val zioJsonVersion = "0.3.0-RC5" - val zioPreludeVersion = "1.0.0-RC12" - val zioOpticsVersion = "0.2.0-RC3" + val zioVersion = "2.0.0-RC5" + val zioJsonVersion = "0.3.0-RC7" + val zioPreludeVersion = "1.0.0-RC13" + val zioOpticsVersion = "2.0.0-RC4" val silencerVersion = "1.7.8" private val testDeps = Seq( diff --git a/tests/shared/src/test/scala/zio/schema/AccessorBuilderSpec.scala b/tests/shared/src/test/scala/zio/schema/AccessorBuilderSpec.scala index f2453ba51..999cd097b 100644 --- a/tests/shared/src/test/scala/zio/schema/AccessorBuilderSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/AccessorBuilderSpec.scala @@ -10,7 +10,7 @@ object AccessorBuilderSpec extends ZIOSpecDefault { private val builder: TestAccessorBuilder = new TestAccessorBuilder - override def spec: ZSpec[Environment, Failure] = suite("AccessorBuilder")( + override def spec: ZSpec[Environment, Any] = suite("AccessorBuilder")( test("fail") { assert(Schema.fail("error").makeAccessors(builder).asInstanceOf[Unit])(isUnit) }, diff --git a/tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala b/tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala index 7d24ffaf4..bc5765850 100644 --- a/tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala @@ -32,7 +32,7 @@ object DefaultValueSpec extends ZIOSpecDefault { implicit lazy val schema: Schema[Status] = DeriveSchema.gen[Status] } - def spec: ZSpec[Environment, Failure] = suite("Default Value Spec")( + def spec: ZSpec[Environment, Any] = suite("Default Value Spec")( suite("Primitive")( test("UnitType default value") { assert(Primitive(StandardType.UnitType).defaultValue)(isRight(equalTo(()))) diff --git a/tests/shared/src/test/scala/zio/schema/DiffSpec.scala b/tests/shared/src/test/scala/zio/schema/DiffSpec.scala index d01aabf50..a36aa9589 100644 --- a/tests/shared/src/test/scala/zio/schema/DiffSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/DiffSpec.scala @@ -9,7 +9,7 @@ import zio.{ Chunk, URIO, ZIO } object DiffSpec extends ZIOSpecDefault with DefaultJavaTimeSchemas { - def spec: ZSpec[Environment, Failure] = suite("DiffSpec")( + def spec: ZSpec[Environment, Any] = suite("DiffSpec")( suite("identity law")( suite("standard types")( test("Int")(diffIdentityLaw[Int]), diff --git a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala b/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala index 0762fc089..f1b086abf 100644 --- a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala @@ -8,7 +8,7 @@ import zio.test.{ Sized, TestConfig, _ } object DynamicValueSpec extends ZIOSpecDefault { - def spec: ZSpec[Environment, Failure] = + def spec: ZSpec[Environment, Any] = suite("DynamicValueSpec")( suite("Primitives")(primitiveTests: _*), test("round-trips Records") { diff --git a/tests/shared/src/test/scala/zio/schema/MigrationSpec.scala b/tests/shared/src/test/scala/zio/schema/MigrationSpec.scala index f7e238c1a..8fbcc40bf 100644 --- a/tests/shared/src/test/scala/zio/schema/MigrationSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/MigrationSpec.scala @@ -10,7 +10,7 @@ import zio.test._ object MigrationSpec extends ZIOSpecDefault { - override def spec: ZSpec[Environment, Failure] = suite("Migration Spec")( + override def spec: ZSpec[Environment, Any] = suite("Migration Spec")( suite("Derivation")( suite("Value")( test("change type") { diff --git a/tests/shared/src/test/scala/zio/schema/SchemaAstSpec.scala b/tests/shared/src/test/scala/zio/schema/SchemaAstSpec.scala index 82f6ec6ea..24c6e2c54 100644 --- a/tests/shared/src/test/scala/zio/schema/SchemaAstSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/SchemaAstSpec.scala @@ -8,7 +8,7 @@ import zio.test._ object SchemaAstSpec extends ZIOSpecDefault { - def spec: ZSpec[Environment, Failure] = suite("SchemaAst")( + def spec: ZSpec[Environment, Any] = suite("SchemaAst")( suite("from schema")( test("primitive") { check(SchemaGen.anyPrimitive) { diff --git a/tests/shared/src/test/scala/zio/schema/SchemaMigrationSpec.scala b/tests/shared/src/test/scala/zio/schema/SchemaMigrationSpec.scala index 5210e41c7..d4d51a7be 100644 --- a/tests/shared/src/test/scala/zio/schema/SchemaMigrationSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/SchemaMigrationSpec.scala @@ -8,7 +8,7 @@ import zio.test._ object SchemaMigrationSpec extends ZIOSpecDefault { import SchemaAssertions._ - override def spec: ZSpec[TestEnvironment, Failure] = suite("Schema Migration Spec")( + override def spec: ZSpec[TestEnvironment, Any] = suite("Schema Migration Spec")( suite("case class")( suite("isomorphisms")(isomorphismTests: _*), test("delete field recursively") { diff --git a/tests/shared/src/test/scala/zio/schema/SchemaSpec.scala b/tests/shared/src/test/scala/zio/schema/SchemaSpec.scala index cd1c9a5d9..3ae829759 100644 --- a/tests/shared/src/test/scala/zio/schema/SchemaSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/SchemaSpec.scala @@ -9,7 +9,7 @@ import zio.test.{ ZSpec, _ } object SchemaSpec extends ZIOSpecDefault { - def spec: ZSpec[Environment, Failure] = suite("Schema Spec")( + def spec: ZSpec[Environment, Any] = suite("Schema Spec")( suite("Should have valid equals")( test("primitive") { assert(schemaUnit)(equalTo(schemaUnit)) diff --git a/tests/shared/src/test/scala/zio/schema/ast/NodePathSpec.scala b/tests/shared/src/test/scala/zio/schema/ast/NodePathSpec.scala index c3a914c9e..c66866c13 100644 --- a/tests/shared/src/test/scala/zio/schema/ast/NodePathSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/ast/NodePathSpec.scala @@ -4,7 +4,7 @@ import zio.test._ object NodePathSpec extends ZIOSpecDefault { - override def spec: ZSpec[Environment, Failure] = suite("NodePath")( + override def spec: ZSpec[Environment, Any] = suite("NodePath")( suite("relativeTo")( test("compute relative subpath") { val path = NodePath.root / "foo" / "bar" diff --git a/zio-schema-derivation/shared/src/test/scala-2/zio/schema/DeriveSchemaSpec.scala b/zio-schema-derivation/shared/src/test/scala-2/zio/schema/DeriveSchemaSpec.scala index 68140a67f..87e3f4da9 100644 --- a/zio-schema-derivation/shared/src/test/scala-2/zio/schema/DeriveSchemaSpec.scala +++ b/zio-schema-derivation/shared/src/test/scala-2/zio/schema/DeriveSchemaSpec.scala @@ -229,7 +229,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault { } - override def spec: ZSpec[Environment, Failure] = suite("DeriveSchemaSpec")( + override def spec: ZSpec[Environment, Any] = suite("DeriveSchemaSpec")( suite("Derivation")( test("correctly derives case class") { assert(Schema[User].toString)(not(containsString("null")) && not(equalTo("$Lazy$"))) diff --git a/zio-schema-optics/shared/src/test/scala/zio/schema/optics/LensSpec.scala b/zio-schema-optics/shared/src/test/scala/zio/schema/optics/LensSpec.scala index 00b166143..e453cfaab 100644 --- a/zio-schema-optics/shared/src/test/scala/zio/schema/optics/LensSpec.scala +++ b/zio-schema-optics/shared/src/test/scala/zio/schema/optics/LensSpec.scala @@ -8,7 +8,7 @@ import zio.test._ object LensSpec extends ZIOSpecDefault { - def spec: ZSpec[Environment, Failure] = suite("LensSpec")( + def spec: ZSpec[Environment, Any] = suite("LensSpec")( suite("constructors")( test("first")(lensLaws(Gen.int.zip(Gen.int), Gen.int)(Lens.first)), test("second")(lensLaws(Gen.int.zip(Gen.int), Gen.int)(Lens.second)), diff --git a/zio-schema-zio-test/shared/src/test/scala/zio/schema/DeriveGenSpec.scala b/zio-schema-zio-test/shared/src/test/scala/zio/schema/DeriveGenSpec.scala index c6730706c..5e9ea4312 100644 --- a/zio-schema-zio-test/shared/src/test/scala/zio/schema/DeriveGenSpec.scala +++ b/zio-schema-zio-test/shared/src/test/scala/zio/schema/DeriveGenSpec.scala @@ -6,7 +6,7 @@ import zio.test.Assertion._ import zio.test._ object DeriveGenSpec extends ZIOSpecDefault { - override def spec: ZSpec[Environment, Failure] = suite("DeriveGenSpec")( + override def spec: ZSpec[Environment, Any] = suite("DeriveGenSpec")( test("correctly derives Primitives") { for { unit <- generateValue(DeriveGen.gen(unitSchema))