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:
Olle Jonsson 2022-02-07 11:41:52 +01:00 committed by GitHub
parent 3fc35dac23
commit b2390ec2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.