From 0957dff7804a3420629795dfcb73898e3247645c Mon Sep 17 00:00:00 2001 From: Graeme Coupar Date: Sun, 17 Mar 2024 13:51:31 +0000 Subject: [PATCH] Release v0.8.0 --- CHANGELOG.md | 33 ++++++++++++++++++++++++++++++++- Cargo.toml | 2 +- examples-wasm/Cargo.toml | 2 +- examples/Cargo.toml | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff1991..d899dc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,38 @@ This project intends to inhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), but has not yet reached 1.0 so all APIs might be changed. -## Unreleased - xxxx-xx-xx +## v0.8.0 - 2024-03-17 + +### Breaking Changes + +- `async_tungstenite` is no longer a default feautre, you should explicitly + enable it if you need it. +- Updated to `tungstenite` 0.21 +- MSRV is now 1.69 (there was no official MSRV before) +- Subscription IDs sent to the server are now just monotonic numbers rather + than uuids. + +### Deprecations + +These will be removed in a future version, probably in v0.9.0 + +- `AsyncWebsocketClient` and all its supporting traits and structs are now + deprecated. +- The `async-tungstenite` feature flag is deprecated and will be removed in + favour of `tungstenite` eventually. + +### New Features + +- Added an entirely new client API as a replacement for the old API. +- Added a `subscribe` function to `next::ClientBuilder` to make + creating a single subscription on a given connection easier. + +### Changes + +- `graphql-ws-client` now depends only on `tungstenite` and not directly on + `async-tungstenite` (or `tokio-tungstenite`). This should allow it to work + with more versions of the async libraries (provided they support the same + `tungstenite` version). ## v0.8.0-rc.2 - 2024-02-13 diff --git a/Cargo.toml b/Cargo.toml index 4907983..b995710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "graphql-ws-client" -version = "0.8.0-rc.2" +version = "0.8.0" authors = ["Graeme Coupar "] edition = "2021" resolver = "2" diff --git a/examples-wasm/Cargo.toml b/examples-wasm/Cargo.toml index 4d8d565..a229a1e 100644 --- a/examples-wasm/Cargo.toml +++ b/examples-wasm/Cargo.toml @@ -22,7 +22,7 @@ console_log = "1" [dependencies.graphql-ws-client] path = "../" -version = "0.8.0-rc.2" +version = "0.8.0" default-features = false features = ["cynic", "ws_stream_wasm"] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index edb9b60..34a0395 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -19,7 +19,7 @@ tokio = { version = "1.15", features = ["rt-multi-thread", "macros"] } [dependencies.graphql-ws-client] path = "../" -version = "0.8.0-rc.2" +version = "0.8.0" default-features = false features = ["cynic", "async-tungstenite"]