Skip to content

Commit 5bbb8f9

Browse files
authored
Merge branch 'ghostdogpr:series/2.x' into series/2.x_validate_graphql_schema
2 parents ef02202 + e3ec8dd commit 5bbb8f9

File tree

4 files changed

+11
-31
lines changed

4 files changed

+11
-31
lines changed

adapters/quick/src/main/scala/caliban/QuickAdapter.scala

-9
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ final class QuickAdapter[R] private (requestHandler: QuickRequestHandler[R]) {
5454
Routes.fromIterable(apiRoutes ::: graphiqlRoute ::: uploadRoute ::: wsRoute)
5555
}
5656

57-
@deprecated("Use `routes` instead", "2.6.1")
58-
def toApp(
59-
apiPath: String,
60-
graphiqlPath: Option[String] = None,
61-
uploadPath: Option[String] = None,
62-
webSocketPath: Option[String] = None
63-
): HttpApp[R] =
64-
HttpApp(routes(apiPath, graphiqlPath, uploadPath, webSocketPath))
65-
6657
/**
6758
* Runs the server using the default zio-http server configuration on the specified port.
6859
* This is meant as a convenience method for getting started quickly

adapters/quick/src/main/scala/caliban/QuickRequestHandler.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ final private class QuickRequestHandler[R](
236236
.mapConcatChunk(Chunk.fromArray)
237237
}
238238

239-
private def encodeTextEventStream(resp: GraphQLResponse[Any])(implicit trace: Trace): UStream[ServerSentEvent] =
239+
private def encodeTextEventStream(
240+
resp: GraphQLResponse[Any]
241+
)(implicit trace: Trace): UStream[ServerSentEvent[String]] =
240242
ServerSentEvents.transformResponse(
241243
resp,
242244
v => ServerSentEvent(writeToString(v), Some("next")),

adapters/quick/src/main/scala/caliban/quick/package.scala

-16
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,6 @@ package object quick {
6262
)
6363
)
6464

65-
@deprecated("use `routes` instead", "2.6.1")
66-
def toApp(
67-
apiPath: String,
68-
graphiqlPath: Option[String] = None,
69-
uploadPath: Option[String] = None,
70-
webSocketPath: Option[String] = None
71-
)(implicit trace: Trace): IO[CalibanError.ValidationError, HttpApp[R]] =
72-
gql.interpreter.map(
73-
QuickAdapter(_).toApp(
74-
apiPath = apiPath,
75-
graphiqlPath = graphiqlPath,
76-
uploadPath = uploadPath,
77-
webSocketPath = webSocketPath
78-
)
79-
)
80-
8165
/**
8266
* Creates a zio-http handler for the GraphQL API
8367
*

build.sbt

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ val catsEffect3Version = "3.5.4"
1212
val catsMtlVersion = "1.3.0"
1313
val circeVersion = "0.14.10"
1414
val fs2Version = "3.11.0"
15-
val http4sVersion = "0.23.27"
15+
val http4sVersion = "0.23.28"
1616
val javaTimeVersion = "2.5.0"
1717
val jsoniterVersion = "2.30.9"
1818
val laminextVersion = "0.17.0"
@@ -31,7 +31,7 @@ val zioInteropReactiveVersion = "2.0.2"
3131
val zioConfigVersion = "4.0.2"
3232
val zqueryVersion = "0.7.5"
3333
val zioJsonVersion = "0.7.3"
34-
val zioHttpVersion = "3.0.0-RC9"
34+
val zioHttpVersion = "3.0.0"
3535
val zioOpenTelemetryVersion = "3.0.0-RC21"
3636

3737
Global / onChangedBuildSource := ReloadOnSourceChanges
@@ -211,7 +211,7 @@ lazy val tools = project
211211
.settings(
212212
libraryDependencies ++= Seq(
213213
"org.scalameta" % "scalafmt-interfaces" % scalafmtVersion,
214-
"io.get-coursier" % "interface" % "1.0.19",
214+
"io.get-coursier" % "interface" % "1.0.20",
215215
"com.softwaremill.sttp.client3" %% "zio" % sttpVersion,
216216
"dev.zio" %% "zio-test" % zioVersion % Test,
217217
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
@@ -237,7 +237,7 @@ lazy val tracing = project
237237
"dev.zio" %% "zio-opentelemetry" % zioOpenTelemetryVersion,
238238
"dev.zio" %% "zio-test" % zioVersion % Test,
239239
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
240-
"io.opentelemetry" % "opentelemetry-sdk-testing" % "1.42.0" % Test
240+
"io.opentelemetry" % "opentelemetry-sdk-testing" % "1.42.1" % Test
241241
)
242242
)
243243
.dependsOn(core, tools)
@@ -749,7 +749,10 @@ lazy val enableMimaSettingsJVM =
749749
Def.settings(
750750
mimaFailOnProblem := enforceMimaCompatibility,
751751
mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet,
752-
mimaBinaryIssueFilters := Seq()
752+
mimaBinaryIssueFilters := Seq(
753+
ProblemFilters.exclude[DirectMissingMethodProblem]("caliban.quick.*"),
754+
ProblemFilters.exclude[DirectMissingMethodProblem]("caliban.QuickAdapter.*")
755+
)
753756
)
754757

755758
lazy val enableMimaSettingsJS =

0 commit comments

Comments
 (0)