From 2786fdcfd1adceff8692909162dd7bd4328b5d96 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 20 Feb 2024 04:54:13 +0000 Subject: [PATCH 1/2] Update sangria to 4.1.0 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d3fe453..3b2de9a 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -7,7 +7,7 @@ object Dependencies { val http4s = "1.0.0-M30" } - val sangria = "org.sangria-graphql" %% "sangria" % "4.0.2" + val sangria = "org.sangria-graphql" %% "sangria" % "4.1.0" val sangriaCirce = "org.sangria-graphql" %% "sangria-circe" % "1.3.2" val logbackClassic = "ch.qos.logback" % "logback-classic" % "1.4.14" From a524b3f9e9ff4d2fe37a6e352a88767abd5acc14 Mon Sep 17 00:00:00 2001 From: Yann Simon Date: Mon, 6 May 2024 09:43:47 +0200 Subject: [PATCH 2/2] fix tests --- .../src/test/scala/sangria/federation/v1/FederationSpec.scala | 2 -- .../src/test/scala/sangria/federation/v2/FederationSpec.scala | 4 ---- 2 files changed, 6 deletions(-) diff --git a/core/src/test/scala/sangria/federation/v1/FederationSpec.scala b/core/src/test/scala/sangria/federation/v1/FederationSpec.scala index e1970ea..f572215 100644 --- a/core/src/test/scala/sangria/federation/v1/FederationSpec.scala +++ b/core/src/test/scala/sangria/federation/v1/FederationSpec.scala @@ -62,7 +62,6 @@ class FederationSpec extends AsyncFreeSpec { directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE """) - .extend(Document(Vector(_FieldSet.Type.toAst))) schema should beCompatibleWith(expectedSubGraphSchema) } @@ -134,7 +133,6 @@ class FederationSpec extends AsyncFreeSpec { directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE """) - .extend(Document(Vector(_FieldSet.Type.toAst))) schema should beCompatibleWith(expectedSubGraphSchema) } diff --git a/core/src/test/scala/sangria/federation/v2/FederationSpec.scala b/core/src/test/scala/sangria/federation/v2/FederationSpec.scala index 5b45855..130cba9 100644 --- a/core/src/test/scala/sangria/federation/v2/FederationSpec.scala +++ b/core/src/test/scala/sangria/federation/v2/FederationSpec.scala @@ -87,8 +87,6 @@ class FederationSpec extends AsyncFreeSpec { directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION """) - .extend(Document( - Vector(_FieldSet.Type.toAst, Link__Import.Type.toAst, Link__Purpose.Type.toAst))) withClue(SchemaRenderer.renderSchema(schema)) { schema should beCompatibleWith(expectedSubGraphSchema) @@ -184,8 +182,6 @@ class FederationSpec extends AsyncFreeSpec { directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION """) - .extend(Document( - Vector(_FieldSet.Type.toAst, Link__Import.Type.toAst, Link__Purpose.Type.toAst))) schema should beCompatibleWith(expectedSubGraphSchema) }