Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sikanhe/algolia-elixir
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: slab/algolia-elixir
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 2, 2022

  1. Copy the full SHA
    bbc507a View commit details

Commits on Jul 16, 2022

  1. Relax Jason and hackney versions

    Alex Martsinovich committed Jul 16, 2022
    Copy the full SHA
    a1bb2b3 View commit details
  2. Use default hackney ssl options

    Alex Martsinovich committed Jul 16, 2022
    Copy the full SHA
    c47c7dd View commit details

Commits on Jul 17, 2022

  1. Merge pull request #2 from slab/am/fix_ssl_vulnerability

    Use default hackney ssl options
    Alex Martsinovich authored Jul 17, 2022
    Copy the full SHA
    d11c274 View commit details

Commits on Oct 13, 2022

  1. Copy the full SHA
    91180f2 View commit details

Commits on Jun 16, 2023

  1. Add browse API method (#4)

    mjm authored Jun 16, 2023
    Copy the full SHA
    fa0e8fc View commit details

Commits on Aug 21, 2023

  1. Fix browse URL (#5)

    mjm authored Aug 21, 2023
    Copy the full SHA
    337a356 View commit details

Commits on Jan 29, 2024

  1. Update README.md (#6)

    mjm authored Jan 29, 2024
    Copy the full SHA
    ec6fbeb View commit details
  2. Copy the full SHA
    65710fc View commit details

Commits on Jan 30, 2024

  1. Copy the full SHA
    59a7ca1 View commit details

Commits on Feb 14, 2024

  1. Copy the full SHA
    81e834b View commit details
  2. Copy the full SHA
    d9eba69 View commit details

Commits on Feb 20, 2024

  1. Add tests for middleware (#11)

    mjm authored Feb 20, 2024
    Copy the full SHA
    2ba3913 View commit details

Commits on Feb 21, 2024

  1. Update dependencies (#12)

    mjm authored Feb 21, 2024
    Copy the full SHA
    aae29a2 View commit details

Commits on Feb 28, 2024

  1. Copy the full SHA
    78e7d9e View commit details
  2. Copy the full SHA
    f7d4167 View commit details
  3. Update changelog (#15)

    mjm authored Feb 28, 2024
    Copy the full SHA
    dc329ab View commit details

Commits on Mar 1, 2024

  1. Copy the full SHA
    3dcfa2c View commit details

Commits on Aug 2, 2024

  1. Copy the full SHA
    7158175 View commit details

Commits on Aug 8, 2024

  1. Copy the full SHA
    7636125 View commit details

Commits on Sep 3, 2024

  1. Merge pull request #19 from slab/push-mnwyqtswtvmx

    Expand retry behavior to include some HTTP errors
    mjm authored Sep 3, 2024
    Copy the full SHA
    aa5a105 View commit details

Commits on Sep 13, 2024

  1. prepare 0.10 release

    mjm committed Sep 13, 2024
    Copy the full SHA
    4983a6e View commit details

Commits on Sep 16, 2024

  1. Merge pull request #20 from slab/push-okysrvumolon

    prepare 0.10 release
    mjm authored Sep 16, 2024
    Copy the full SHA
    bd2d18d View commit details

Commits on Sep 17, 2024

  1. remove response middleware

    mjm committed Sep 17, 2024
    Copy the full SHA
    d58780e View commit details
  2. Merge pull request #21 from slab/push-zqorvlrotksx

    remove response middleware
    mjm authored Sep 17, 2024
    Copy the full SHA
    cc9c55e View commit details

Commits on Sep 20, 2024

  1. prepare 0.11 release

    mjm committed Sep 20, 2024
    Copy the full SHA
    a2f65c8 View commit details
  2. Merge pull request #22 from slab/push-ntvxywrtymqr

    prepare 0.11 release
    mjm authored Sep 20, 2024
    Copy the full SHA
    42d5821 View commit details
Showing with 1,510 additions and 538 deletions.
  1. +22 −0 CHANGELOG.md
  2. +113 −130 README.md
  3. +2 −0 config/config.exs
  4. +772 −203 lib/algolia.ex
  5. +29 −0 lib/algolia/middleware/base_url.ex
  6. +26 −0 lib/algolia/middleware/retry.ex
  7. +4 −5 lib/algolia/paths.ex
  8. +11 −6 mix.exs
  9. +25 −15 mix.lock
  10. +117 −0 test/algolia/middleware/base_url_test.exs
  11. +100 −0 test/algolia/middleware/retry_test.exs
  12. +288 −179 test/algolia_test.exs
  13. +1 −0 test/test_helper.exs
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## v0.11.0 (2024-09-20)

* **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.

## v0.10.0 (2024-09-13)

* **BREAKING**: Use Tesla's telemetry middleware instead of a custom one. Telemetry events for requests can now be found under `[:tesla, :request]` with `client: "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.

## v0.9.0 (2024-02-28)

This is the first release published under the `algolia_ex` package name.

* Add support for [push events](https://www.algolia.com/doc/rest-api/insights/#send-events) request
* Add support for [browse](https://www.algolia.com/doc/rest-api/search/#browse-index-post) 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.

## v0.8.0 (2018-11-17)

* Allow extra HTTP headers to be passed along Algolia requests
Loading