From 6b3ef8f14296a555c45d80d2200ad1c149a19adf Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Fri, 25 Sep 2020 14:56:14 -0700 Subject: [PATCH] 2.0.0-alpha.6 This is an alpha release in preparation of 2.0.0, so you can start using Surf with stable futures. The aim is for this to be the last 2.0 alpha release. As of this release, `surf::get()`, `surf::post()`, etc, now use a globally shared client internally, allowing for easier access to optimizations such as connection pooling. - Removed `native-client` feature flag in favor of direct `curl-client` default. - `wasm-client` feature is no longer automatic and must be set via cargo features. - All client feature flags are now mutually exclusive. `curl-client` is the default. - `surf::method_name` "one-off" methods now use a shared client internally if the client is `curl-client`. (Default) - `Client::with_http_client()` is now generic for any `HttpClient` rather than taking an `Arc`. - (The http client is still stored internally as a dynamic pointer.) - `HttpClient` has been upgraded to 6.0, removing `Clone` from the built in client backends. - Surf can once again build with `--no-default-features` (and no client). - Doc updates - `wasm-client` now has proper headless browser CI testing. --- CHANGELOG.md | 24 ++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5362689..e8583a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview ## [Unreleased] +## [2.0.0-alpha.6] - 2020-09-27 + +This is an alpha release in preparation of 2.0.0, so you can start using Surf with stable futures. The aim is for this to be the last 2.0 alpha release. + +As of this release, `surf::get()`, `surf::post()`, etc, now use a globally shared client internally, allowing for easier access to optimizations such as connection pooling. + +### Removals +- Removed `native-client` feature flag in favor of direct `curl-client` default. + +### Changes +- `wasm-client` feature is no longer automatic and must be set via cargo features. +- All client feature flags are now mutually exclusive. `curl-client` is the default. +- `surf::method_name` "one-off" methods now use a shared client internally if the client is `curl-client`. (Default) +- `Client::with_http_client()` is now generic for any `HttpClient` rather than taking an `Arc`. + - (The http client is still stored internally as a dynamic pointer.) +- `HttpClient` has been upgraded to 6.0, removing `Clone` from the built in client backends. + +### Fixes +- Surf can once again build with `--no-default-features` (and no client). +- Doc updates + +### Internal +- `wasm-client` now has proper headless browser CI testing. + ## [2.0.0-alpha.5] - 2020-09-07 This is an alpha release in preparation of 2.0.0, so you can start using Surf with stable futures. There may be significant breaking changes before the final 2.0 release. Until thin, we recommend pinning to the particular alpha: diff --git a/Cargo.toml b/Cargo.toml index ae8d0e9..87b6ede 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "surf" -version = "2.0.0-alpha.5" +version = "2.0.0-alpha.6" license = "MIT OR Apache-2.0" repository = "https://github.com/http-rs/surf" documentation = "https://docs.rs/surf"