You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix errors handling in GraphQL subscriptions (#1371)
- fix errors mapping in `#[graphql_subscription]` macro expansion in `juniper_codegen` crate
- fix memory leak caused by incorrect errors handling in GraphQL subscriptions machinery
- fix `ValuesStream` to return batch of `ExecutionError`s instead of a single one in `juniper_crate`
- add `ConnectionConfig::panic_handler` field and `ConnectionConfig::with_panic_handler()` method allowing to specify `PanicHandler` for panics happened during execution of operations in `juniper_graphql_ws` crate
Additionally:
- merge `graphql_transport_ws::NextPayload` and `graphql_ws::DataPayload` into a single struct in `juniper_graphql_ws` crate
- reduce excessive `Box`ing of `Stream`s in `juniper_graphql_ws` crate
Co-authored-by: Kai Ren <tyranron@gmail.com>
Copy file name to clipboardExpand all lines: juniper_graphql_ws/CHANGELOG.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,22 @@ All user visible changes to `juniper_graphql_ws` crate will be documented in thi
16
16
- Made [WebSocket] connection closed once `ConnectionConfig::keep_alive::timeout` is reached in [`graphql-transport-ws` GraphQL over WebSocket Protocol][proto-6.0.7]. ([#1367])
17
17
> **COMPATIBILITY**: Previously, a [WebSocket] connection was kept alive, even when clients do not respond to server's `Pong` messages at all. To preserve the previous behavior, the `ConnectionConfig::keep_alive::timeout` should be set to `Duration:::ZERO`.
18
18
19
+
### Added
20
+
21
+
-`ConnectionConfig::panic_handler` field and `ConnectionConfig::with_panic_handler()` method allowing to specify `PanicHandler` for panics happened during execution of [GraphQL] operations. ([#1371])
22
+
23
+
### Changed
24
+
25
+
- Merged `graphql_transport_ws::NextPayload` and `graphql_ws::DataPayload` into a single struct. ([#1371])
26
+
19
27
### Fixed
20
28
21
-
- Inability to re-subscribe with the same operation `id` after subscription was completed by server. ([#1368])
29
+
- Inability to re-subscribe with the same operation `id` after subscription was completed by server. ([#1368])
0 commit comments