elastic / elasticsearch-ruby

Ruby integrations for Elasticsearch

Home Page:https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unlock/upgrade faraday dependency

kares opened this issue · comments

atm, both elasticsearch-transport (7.17.1) as well as the new elastic-transport (8.0.1) lock
the faraday gem to ~> 1

effectively meaning 1.x is always used on all versions of Ruby.

faraday 2.x requires 2.6 as minimum which might be hard to support unless required Ruby >= 2.6 for the gem.

NOTE: we do not need 2.x but thought this might be worth tracking to get a notification when Faraday is updated (we will have to adjust some test code)

Hi @kares! Upgrading to Faraday 2.x is on the to-do list. It's going to be tracked for 8.x in elastic-transport. I think the main breaking change is with the adapters, but I'll look into it once I start that work. I'll try to keep backwards compatibility as much as possible and I'll ping you once there's any progress.

Thanks Fernando, I see there's elastic/elastic-transport-ruby#21
So I am fine closing this one instead of the other issue ... which is closer to the source 😉

@kares with elastic-transport-ruby 8.1.0, the Faraday dependency was unlocked and now Faraday 2 can be used. I tested a lot with elasticsearch-ruby and enterprise-search-ruby and it looks like everything is ok. Since elasticsearch depends on 'elastic-transport', '~> 8', it would be upgraded to 8.1.0 on update and Faraday 2 could be used. Let me know if you test this and if you have any issues. Thanks!