Skip to content

v0.6.0

Choose a tag to compare

@adriankumpf adriankumpf released this 26 Aug 17:20
· 39 commits to master since this release
v0.6.0
275d9aa

Breaking Changes

  • Migrate built-in HTTP from hackney to Finch
  • Replace the:adapter with the :client option
  • Discovergy.Error: Replace the :env field 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"},
  ]
end

HTTP client (optional)

  1. Remove the :adapter configuration from Discovergy.Client.new/1:

    {:ok, client} = Discovergy.Client.new(
    -  adapter: {Tesla.Adapter.Gun, []}
    )
  2. In config/runtime.exs set the :discovergy, :client option and to your own module that implements the Discovergy.HTTPClient behaviour:

    + config :discovergy,
    +   client: MyGunAdapter

See the documentation for Discovergy.HTTPClient for more information.

Full Changelog: v0.5.0...v0.6.0