Releases: obmarg/graphql-ws-client
Releases Β· obmarg/graphql-ws-client
v0.8.0-rc.1
Breaking Changes
- The
next
api is now available at the top level rather than thenext
module. async_tungstenite
is no longer a default feautre, you should explicitly
enable it if you need it- Updated to
async_tungstenite
0.25 - Renamed
Client::streaming_operation
to subscribe innext
api. - MSRV is now 1.69 (there was no official MSRV before)
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.
New Features
- Added a
subscribe
function tonext::ClientBuilder
to make
creating a single subscription on a given connection easier.
v0.8.0-alpha.2
Breaking Changes
Error::Close
now has a code as well as a reason.
New Features
- Added a
next
module with a significant re-work of the API
v0.8.0-alpha.1
This is the first in a series of alphas for v0.8.0, most of which will have breaking changes.
Feel free to test with this version, but you probably want to hold off upgrading till I'm closer to done.
Breaking Changes
- Subscription IDs sent to the server are now just monotonic numbers rather
than uuids. SubscriptionStream
no longer takesGraphqlClient
as a generic parameter- Removed the
GraphqlClient
trait and all its uses - Changed the
StreamingOperation
trait:- Removed the
GenericResponse
associated type decode_response
now always takes aserde_json::value
- I expect most
implementations of this will now just be a call toserde_json::from_value
- Removed the
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
Breaking Changes
- Clients are now created through builder types rather than directly. See the
AsyncWebsocketClientBuilder
type (or it'sCynicClientBuilder
alias) cynic
support is now behind theclient-cynic
feature.- It's now recommended to use a custom impl of
futures::task::Spawn
for tokio
rather than theasync_executors
crate, asasync_executors
is not
compatible with#[tokio::main]
. An example impl is provided fortokio
in
the examples folder.
New Features
graphql_client
is now supported, behind theclient-graphql-client
feature.graphql-ws-client
now has an examplestreaming_operation
now returns aSubscriptionStream
type. This is still
aStream
but also exposes astop_operation
function that can be used to
tell the server to end the stream.cynic
no longer requires the use ofasync_executors
- it now only
requires animpl futures::task::Spawn
. An example is included for tokio.
Old code using theAsyncStd
executor should continue to work but tokio
users are encouraged to provide their own using the example.
Bug Fixes
graphql-ws-client
has better support for running inside#[tokio::main]
- Cynic will now use the
log
crate rather than printing to stdout.