Skip to content

Commit

Permalink
Merge pull request #3 from tommilligan/kirinse-master
Browse files Browse the repository at this point in the history
upgrade reqwest 0.12, reqwest-middleware 0.3
  • Loading branch information
tommilligan authored Apr 15, 2024
2 parents bedb8fc + 3995dfb commit cb9b4d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Unreleased

# v0.2.0

This release updates outdated dependencies.

As these dependencies are visible in the public api of `reqwest-chain`, this is a breaking change.

## Changed

- Upgraded to `reqwest 0.12` and `reqwest-middleware 0.3` ([#2](https://github.com/tommilligan/reqwest-chain/pull/2)). Thanks to [@kirinse](https://github.com/kirinse) for the contribution!
- Peer dependency `task_local_extensions` changed to `http`

# v0.1.0

Initial implementation.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ readme = "README.md"
[dependencies]
anyhow = "1.0.66"
async-trait = "0.1.59"
reqwest = { version = "0.11.13", default_features = false }
reqwest-middleware = "0.2.0"
task-local-extensions = "0.1.3"
http = "1.0.0"
reqwest = { version = "0.12", default_features = false }
reqwest-middleware = "0.3"

[dev-dependencies]
tokio = { version = "1.23.0", features = ["rt", "macros"] }
wiremock = "0.5.15"
wiremock = "0.6"
2 changes: 1 addition & 1 deletion src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
use crate::chainable::{ChainMiddleware, Chainer};
use anyhow::anyhow;
use http::Extensions;
use reqwest::{Request, Response};
use reqwest_middleware::{Error, Middleware, Next, Result};
use task_local_extensions::Extensions;

#[async_trait::async_trait]
impl<T, S> Middleware for ChainMiddleware<T>
Expand Down

0 comments on commit cb9b4d9

Please sign in to comment.