- BREAKING: All HTTP responses are now returned as
{:ok, %Tesla.Env{}}
, including those with 4XX or 5XX status codes. Only network errors will return{:error, reason}
tuples.
- BREAKING: Use Tesla's telemetry middleware instead of a custom one. Telemetry events for requests can now be found under
[:tesla, :request]
withclient: "algolia-elixir"
. - Retries will now be performed for 5XX HTTP errors, in addition to network-level errors as before.
- Network-level errors are now returned directly as
{:error, reason}
rather than a generic message about being unable to connect.
This is the first release published under the algolia_ex
package name.
- Add support for push events request
- Add support for browse request
- Add
:telemetry
instrumentation to requests and searches - Use POST method for search and browse requests
- BREAKING: Use Tesla to make requests instead of Hackney directly. You may need to configure the default Tesla adapter to use something besides the default
:httpc
adapter. - BREAKING: Add
Algolia.new/1
to create a client, and require passing a client to all API functions. Different clients can use different API keys and application IDs, allowing you to access multiple Algolia applications in the same Elixir app. See the API documentation for more info.