# Changelog

### 0.11.0
- opentelemetry updated to version 0.17. **Careful!!!** The opentelemetry version in your project should match the one in this library
- various dependency updates
- removed log dependency, use tracing everywhere

### 0.10.0
- dashmap dependency updated (https://github.com/primait/bridge.rs/pull/64)

### 0.9.2
- test fix

### 0.9.1
- lint fix

### 0.9.0
- Rust 1.56 & Edition 2021
- Update tracing-opentelemetry to 0.16
- Other deps updated
- Documentation now shows required features

### 0.8.0
- added new function `with_auth0` in bridge builder. This enables jwt authentication to called endpoint.

### 0.7.3
- deprecated the `new` and `with_user_agent` methods in favor of a builder
- opentelemetry updated to version 0.16. **Careful!!!** The opentelemetry version in your project should match the one in this library
- several dependencies updated
- docker file based on Rust 1.54

### 0.7.2
#### features
- fixes the double header issue (#17)
- adds support for the ```gzip``` feature, which decompress the response content based on the content-type header
- proper handling of graphql errors with a new `ParsedGraphqlResponse` type
- adds ability to specify a request timeout

### 0.7.1
#### breaking change

- opentelemetry updated to version 0.13. **Careful!!!** The opentelemetry version in your project should match the one in this library
- several dependencies updated
- docker file based on Rust 1.51

### 0.7.0

#### breaking change
- opentelemetry updated to version 0.12. **Careful!!!** The opentelemetry version in your project should match the one in this library
- several dependencies updated    

#### bugfix
- tokio and tokio-test are now dev-dependencies

### 0.6.0
#### breaking change
- bump tokio to 1.0, which brings rustc minimum version to 1.45

### 0.5.1
#### features
- relaxed the uuid requirement

### 0.5.0
#### breaking change
- opentelemetry updated to version 0.11. **Careful!!!** The opentelemetry version in your project should match the one in this library
- tracing-opentelemetry updated to version 0.10. **Careful!!!** The tracing-opentelemetry version in your project should match the one in this library

### 0.4.1
#### features
- adds the ability to set user-agent header

### 0.4.0
#### breaking change
- opentelemetry updated to version 0.10.0. **Careful!!!** The opentelemetry version in your project should match the one in this library

### 0.3.0
#### features
- adds support for raw body response ([PR #21](https://github.com/primait/bridge.rs/pull/21))

#### breaking change
- removed the bridge.request api (deprecated) in favor of `Request::get` or `RestRequest::new` and `GraphQLRequest::new` functions.

### 0.2.4
#### bugfix
- fixes the test suite. No impact on the api.

### 0.2.3
#### bugfix
- double content-type header for graphql request

### 0.2.2
#### bugfix
- better handling of headers

### 0.2.1
#### features
- adds back the `with_query_pair` and `with_query_pairs` api

### 0.2.0
#### features
- adds the ability to use a binary as the body of a request. The api has changed:

**before**
```rust
let body: Option<String> = None;
bridge.request(RequestType::rest(body, Method::GET)).send();
```

**now**

```rust
RestRequest::new(&bridge).send();
// OR
Request::rest(&bridge).send()
```

The old API is still available but deprecated. It will be removed soon.
