Skip to content

2.0.0-alpha.6 #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2020
Merged

2.0.0-alpha.6 #241

merged 2 commits into from
Sep 27, 2020

Conversation

Fishrock123
Copy link
Member

@Fishrock123 Fishrock123 commented Sep 25, 2020

Awaiting #226 and #240:

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<dyn HttpClient>.
    • (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.

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<dyn HttpClient>`.
  - (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.
@Fishrock123 Fishrock123 merged commit 6b3ef8f into http-rs:main Sep 27, 2020
@Fishrock123 Fishrock123 deleted the alpha.6 branch September 27, 2020 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant