Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
If you use the `h1-client`, upgrading to this release is recommended.

- `h1-client-rustls` feature flag, for using the [`async-h1`](https://github.com/http-rs/async-h1) client with [`rustls`](https://github.com/ctz/rustls) as the TLS backend.
    - The TLS backend for `h1-client` is still `async-native-tls`.
- Per-request middleware, provided by `RequestBuilder::middleware(&mut self, impl Middleware)`.
- `AsRef<Headers>` and `AsMut<Headers>` for `surf::Request` and `surf::Response`.

- Relative redirects should now be handled by the `RedirectMiddleware`.
- The `h1-client` feature should now properly work with `http-client` 6.3.0+ without additional feature specification.

- The `http` docs now link to the live, up-to-date `http_types` docs.

- Various CI improvements.
  • Loading branch information
Fishrock123 committed Mar 2, 2021
1 parent d4943aa commit fb228d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview

## [Unreleased]

## [2.2.0] - 2021-03-02

If you use the `h1-client`, upgrading to this release is reccomended.

### Additions
- `h1-client-rustls` feature flag, for using the [`async-h1`](https://github.com/http-rs/async-h1) client with [`rustls`](https://github.com/ctz/rustls) as the TLS backend.
- The TLS backend for `h1-client` is still `async-native-tls`.
- Per-request middleware, provided by `RequestBuilder::middleware(&mut self, impl Middleware)`.
- `AsRef<Headers>` and `AsMut<Headers>` for `surf::Request` and `surf::Response`.

### Fixes
- Relative redirects should now be handled by the `RedirectMiddleware`.
- The `h1-client` feature should now properly work with `http-client` 6.3.0+ without additional feature specification.

### Docs
- The `http` docs now link to the live, up-to-date `http_types` docs.

### Internal
- Various CI improvements.

## [2.1.0] - 2020-10-23

This minor release contains follow-up fixes and improvements to Surf 2.0.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "surf"
version = "2.1.0"
version = "2.2.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/http-rs/surf"
documentation = "https://docs.rs/surf"
Expand Down

0 comments on commit fb228d8

Please sign in to comment.