mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
docs: UPGRADE Note #dependency removed in 2.0 (#1398)
This adds a missing explanation to the UPGRADE document. Anyone searching for `dependency` should be able to find this section.
This commit is contained in:
parent
3fc35dac23
commit
b2390ec2b3
@ -113,6 +113,12 @@ Instead, you should be using the equivalent middleware, as explained in [this pa
|
||||
|
||||
For more details, see https://github.com/lostisland/faraday/pull/1306
|
||||
|
||||
### The `dependency` method in middlewares has been removed
|
||||
|
||||
In Faraday 1, a deferred require was used with the `dependency` method.
|
||||
|
||||
In Faraday 2, that method has been removed. In your middlware gems, use a regular `require` at the top of the file,
|
||||
|
||||
### Others
|
||||
|
||||
* Rename `Faraday::Request#method` to `#http_method`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user