Skip to content

Conversation

@howleysv
Copy link
Contributor

Finch made a breaking change to the function signature for Finch.stream/5 here which was shipped in version 0.20.0. This PR does conditional compilation of the response handler so that dialyzer is happy no matter which version of finch you're using.

@yordis yordis merged commit ce5ea80 into elixir-tesla:master Nov 26, 2025
6 checks passed
send(owner, {ref, :eof})
end

if Application.spec(:finch, :vsn) >= ~c"0.20.0" do
Copy link
Member

Choose a reason for hiding this comment

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

I'm late, but:

iex(2)> ~c"0.3.0" >= ~c"0.20.0"
true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh nice catch, and TIL about the Version module in the stdlib that seems ideal for this. I'll whip up a fix

Copy link
Member

Choose a reason for hiding this comment

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

Thank you! 💜

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

3 participants