View Source Changelog
v0.6.0 (2023-08-26)
Breaking Changes
- Migrate built-in HTTP from
hackney
toFinch
- 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)
Remove the
:adapter
configuration fromDiscovergy.Client.new/1
:{:ok, client} = Discovergy.Client.new( - adapter: {Tesla.Adapter.Gun, []} )
In
config/runtime.exs
set the:discovergy, :client
option and to your own module that implements theDiscovergy.HTTPClient
behaviour:+ config :discovergy, + client: MyGunAdapter
See the documentation for Discovergy.HTTPClient
for more information.
v0.5.0 (2021-10-27)
- Do not reuse consumer token when logging in
v0.4.0 (2020-07-13)
- Make
hackney
an optional dependency
v0.3.0 (2020-07-11)
- Reuse consumer when logging in
v0.2.0 (2020-07-07)
- Create a common struct for request & access tokens (
Discovergy.OAuth.Token
) - Update docs and add usage examples
v0.1.0 (2020-07-07)
- Initial Release