diff --git a/build.sbt b/build.sbt index 67be987f40..3974a10414 100644 --- a/build.sbt +++ b/build.sbt @@ -774,7 +774,10 @@ lazy val enableMimaSettingsJVM = Def.settings( mimaFailOnProblem := enforceMimaCompatibility, mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet, - mimaBinaryIssueFilters ++= Seq() + mimaBinaryIssueFilters ++= Seq( + ProblemFilters.exclude[MissingClassProblem]("caliban.Rendering"), + ProblemFilters.exclude[MissingClassProblem]("caliban.Rendering$") + ) ) lazy val enableMimaSettingsJS = diff --git a/core/src/main/scala/caliban/Rendering.scala b/core/src/main/scala/caliban/Rendering.scala deleted file mode 100644 index 741d7e9aab..0000000000 --- a/core/src/main/scala/caliban/Rendering.scala +++ /dev/null @@ -1,38 +0,0 @@ -package caliban - -import caliban.introspection.adt._ -import caliban.introspection.adt.__TypeKind._ -import caliban.parsing.adt.Directive -import caliban.rendering.DocumentRenderer - -@deprecated("Prefer the methods in caliban.rendering.DocumentRenderer instead.", "2.3.1") -object Rendering { - - /** - * Returns a string that renders the provided types into the GraphQL format. - */ - @deprecated("Prefer DocumentRenderer.render() to render a Document.", "2.3.1") - def renderTypes(types: List[__Type]): String = - DocumentRenderer.typesRenderer.render(types.sorted(typeOrdering)) - - @deprecated("Prefer DocumentRenderer.directivesRenderer.render instead", "2.3.1") - def renderSchemaDirectives(directives: List[Directive]): String = - DocumentRenderer.directivesRenderer.render(directives) - - @deprecated("Prefer DocumentRenderer.directiveDefinitionsRenderer.render instead", "2.3.1") - def renderDirectives(directives: List[__Directive]): String = - DocumentRenderer.directiveDefinitionsRenderer.render(directives.map(_.toDirectiveDefinition)) - - @deprecated("Prefer DocumentRenderer.isBuiltinScalar instead", "2.3.1") - private[caliban] def isBuiltinScalar(name: String): Boolean = - DocumentRenderer.isBuiltinScalar(name) - - @deprecated("Prefer DocumentRenderer.descriptionRenderer instead", "2.3.1") - private[caliban] def renderDescription(description: Option[String], newline: Boolean = true): String = - if (newline) DocumentRenderer.descriptionRenderer.render(description) - else DocumentRenderer.descriptionRenderer.renderCompact(description) - - @deprecated("Prefer DocumentRenderer.renderTypeName instead", "2.3.1") - private[caliban] def renderTypeName(fieldType: __Type): String = - DocumentRenderer.renderTypeName(fieldType) -}