diff --git a/CHANGELOG.md b/CHANGELOG.md index ef05370..1cec5a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ all APIs might be changed. ## Unreleased - xxxx-xx-xx +## v0.6.0 - 2023-07-13 + +### Breaking Changes + +- `async_tungstenite` dependency has been updated to 0.23, pulling in a tungstenite security fix + ## v0.5.0 - 2023-07-13 ### Breaking Changes @@ -54,12 +60,12 @@ all APIs might be changed. ### Breaking Changes -- Clients are now created through builder types rather than directly. See the +- Clients are now created through builder types rather than directly. See the `AsyncWebsocketClientBuilder` type (or it's `CynicClientBuilder` alias) - `cynic` support is now behind the `client-cynic` feature. - It's now recommended to use a custom impl of `futures::task::Spawn` for tokio rather than the `async_executors` crate, as `async_executors` is not - compatible with `#[tokio::main]`. An example impl is provided for `tokio` in + compatible with `#[tokio::main]`. An example impl is provided for `tokio` in the examples folder. ### New Features @@ -70,7 +76,7 @@ all APIs might be changed. a `Stream` but also exposes a `stop_operation` function that can be used to tell the server to end the stream. - `cynic` no longer requires the use of `async_executors` - it now only - requires an `impl futures::task::Spawn`. An example is included for tokio. + requires an `impl futures::task::Spawn`. An example is included for tokio. Old code using the `AsyncStd` executor should continue to work but tokio users are encouraged to provide their own using the example. diff --git a/Cargo.toml b/Cargo.toml index e8568f2..5a803bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ thiserror = "1.0" uuid = { version = "1.0", features = ["v4"] } cynic = { version = "3", optional = true } -async-tungstenite = { version = "0.22", optional = true } +async-tungstenite = { version = "0.23", optional = true } graphql_client = { version = "0.13.0", optional = true } ws_stream_wasm = { version = "0.7", optional = true } @@ -44,7 +44,7 @@ pharos = { version = "0.5.2", optional = true } assert_matches = "1.5" async-graphql = "5.0.10" async-graphql-axum = "5" -async-tungstenite = { version = "0.22", features = ["tokio-runtime"] } +async-tungstenite = { version = "0.23", features = ["tokio-runtime"] } axum = "0.6" cynic = { version = "3" } futures-util = "0.3" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index d1f030b..0e66d74 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -8,11 +8,11 @@ edition = "2018" [dependencies] async-std = { version = "1.9", features = ["attributes"] } -async_executors = { version = "0.5", features = ["async_std"] } +async_executors = { version = "0.7", features = ["async_std"] } cynic = { version = "3" } futures = { version = "0.3"} -async-tungstenite = { version = "0.22", features = ["async-std-runtime", "tokio-runtime"] } +async-tungstenite = { version = "0.23", features = ["async-std-runtime", "tokio-runtime"] } tokio = { version = "1.15", features = ["rt-multi-thread", "macros"] } [dependencies.graphql-ws-client] diff --git a/tests/cynic-tests.rs b/tests/cynic-tests.rs index dd50c57..c188043 100644 --- a/tests/cynic-tests.rs +++ b/tests/cynic-tests.rs @@ -53,7 +53,7 @@ struct BooksChangedSubscription { } #[tokio::test] -async fn main() { +async fn main_test() { use async_tungstenite::tungstenite::{client::IntoClientRequest, http::HeaderValue}; use futures::StreamExt; use graphql_ws_client::CynicClientBuilder;