v0.6.0
Breaking Changes
- Migrate built-in HTTP from
hackneytoFinch - Replace the
:adapterwith the:clientoption Discovergy.Error: Replace the:envfield with:response
Upgrade instructions
Dependencies
Discovergy now ships with an HTTP client based on :finch instead of :hackney.
Add :finch to your list of dependencies in mix.exs:
def deps do
[
{:discovergy, "~> 0.6"},
{:finch, "~> 0.16"},
]
endHTTP client (optional)
-
Remove the
:adapterconfiguration fromDiscovergy.Client.new/1:{:ok, client} = Discovergy.Client.new( - adapter: {Tesla.Adapter.Gun, []} ) -
In
config/runtime.exsset the:discovergy, :clientoption and to your own module that implements theDiscovergy.HTTPClientbehaviour:+ config :discovergy, + client: MyGunAdapter
See the documentation for Discovergy.HTTPClient for more information.
Full Changelog: v0.5.0...v0.6.0