Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Caliban to 2.6.0 #125

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Bump Caliban to 2.6.0 #125

merged 3 commits into from
Apr 26, 2024

Conversation

frekw
Copy link
Contributor

@frekw frekw commented Apr 24, 2024

No description provided.

build.sbt Outdated
"com.softwaremill.sttp.tapir" %% "tapir-json-zio" % "1.9.8"
"com.github.ghostdogpr" %% "caliban" % calibanVersion,
"com.github.ghostdogpr" %% "caliban-quick" % calibanVersion,
"com.softwaremill.sttp.tapir" %% "tapir-json-zio" % "1.9.8"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think caliban-quick depends on jsoniter so we can get rid of this too?

Copy link
Contributor Author

@frekw frekw Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build.sbt Outdated
"com.github.ghostdogpr" %% "caliban-quick" % calibanVersion,
"com.github.ghostdogpr" %% "caliban-zio-http" % calibanVersion,
"com.softwaremill.sttp.tapir" %% "tapir-json-zio" % "1.9.8"
"com.github.ghostdogpr" %% "caliban" % calibanVersion,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since caliban-quick depends on caliban, we can actually remove this too and only depend on caliban-quick

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure! I'm just usually wary to use transitive deps, but will do!

Copy link
Contributor Author

@frekw frekw Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method.ANY / "api" / "graphql" -> apiHandler,
Method.ANY / "ws" / "graphql" ->
ZHttpAdapter.makeWebSocketService(WebSocketInterpreter(interpreter))
Method.ANY / "api" / "graphql" -> handlers.api,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really clean now 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's really nice. The quick adapter has been working really well for us in prod so far too, so pretty confident to make this change in Shardcake as well! :)

@ghostdogpr ghostdogpr merged commit 3340e84 into devsisters:series/2.x Apr 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants