Skip to content

Commit

Permalink
docs: UPGRADE Note #dependency removed in 2.0
Browse files Browse the repository at this point in the history
This adds a missing explanation to the UPGRADE document. Anyone searching for `dependency` should be able to find this section.
  • Loading branch information
olleolleolle committed Feb 7, 2022
1 parent 3fc35da commit 0a85093
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UPGRADING.md
Expand Up @@ -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`.
Expand Down

0 comments on commit 0a85093

Please sign in to comment.