diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d30be7..5f25fcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,38 @@ +## 8.1.1 + +Backports the following updates from 8.2: + +- Refactors `apply_headers` in base and manticore implementation: When passing in an object to the initializer, `apply_headers` would mutate this object and in certain conditions, this would raise `RuntimeError` in JRuby 9.3 and `ConcurrencyError` in JRuby 9.4. This update clones the options object instead. +- Fixes [issue #44](https://github.com/elastic/elastic-transport-ruby/issues/44), raising `Elastic::Transport::Transport::Error` instead of `Faraday::ConnectionFailed` (or any other Faraday error class) when a host is unreachable. +- Fixes parsing ipv4 addresses like `inet[/127.0.0.1:9200]` in sniffer, [issue #48](https://github.com/elastic/elastic-transport-ruby/issues/48). [Pull Request](https://github.com/elastic/elastic-transport-ruby/pull/49) by [@robbat2](https://github.com/robbat2), thank you! + +## 8.1.0 + +Adds support for Faraday version 2. From [Faraday's Upgrading guide](https://github.com/lostisland/faraday/blob/main/UPGRADING.md#faraday-20), the main change is the adapters have moved: + +> With this release, we've officially moved all adapters, except for the net_http one, out of Faraday. What that means, is that they won't be available out-of-the-box anymore, and you'll instead need to add them to your Gemfile. +> If you just use the default net_http adapter, then you don't need to do anything! +> Otherwise, add the corresponding adapter gem to your Gemfile (e.g. faraday-net_http_persistent). Then, simply require them after you require faraday. + +We're now supporting Faraday v2 and Faraday v1. The adapters were removed as development dependency in the gemspec and added to the Gemfile. A new file `Gemfile-faraday1.gemfile` was added to run tests with version `1.x` of Faraday too. + +These are the gems required for the different adapters with Faraday 2, instead of the libraries on which they were based: +``` +# HTTPCLient +'faraday-httpclient' + +# NetHTTPPersistent +'faraday-net_http_persistent' + +# Patron +'faraday-patron' + +# Typhoeus +'faraday-typhoeus' +``` + +If you're using Faraday 1, you shouldn't have to change anything, but please [submit an issue](https://github.com/elastic/elastic-transport-ruby/issues) if you encounter any issues. + ## 8.0.1 - Minor code cleanup diff --git a/lib/elastic/transport/version.rb b/lib/elastic/transport/version.rb index 32e28e6..9fda4b9 100644 --- a/lib/elastic/transport/version.rb +++ b/lib/elastic/transport/version.rb @@ -17,6 +17,6 @@ module Elastic module Transport - VERSION = '8.0.1'.freeze + VERSION = '8.1.1'.freeze end end