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

Change caliban-zio-http to depend on caliban-quick #2287

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

kyri-petrou
Copy link
Collaborator

As discussed on Discord with @ghostdogpr, the caliban-zio-http module has been deprecated for some time now but it's still used according to the monthly package downloads.

Since we don't want to be maintaining the zio-http <-> tapir interop and having to deal with any potential version conflicts, I think for the time being we can change caliban-zio-http to depend on caliban-quick (instead of tapir) and use it under the hood.

For most users, this requires very few API changes to essentially pass the interpreter and config directly to the method rather than using the HttpInterpreter / WebSocketInterpreter. The only "real" issue is with users that use RequestInterceptors. However, these interceptors are not really necessary for zio-http and can somewhat easily be re-written as Middleware.

@kyri-petrou kyri-petrou added the breaking change The PR contains binary incompatible changes label Jun 17, 2024
Copy link
Collaborator

@paulpdaniels paulpdaniels left a comment

Choose a reason for hiding this comment

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

Let’s just make sure to include something in the release notes about how to migrate from request interceptors

@kyri-petrou kyri-petrou merged commit cc6a280 into series/2.x Jun 18, 2024
11 checks passed
@kyri-petrou kyri-petrou deleted the use-quick-adapter-in-zio-http-module branch June 18, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The PR contains binary incompatible changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants