1.0.0: Broadcasting support (GraphQL-Ruby 1.11+)
Added
- Support for Subscriptions Broadcast feature in GraphQL-Ruby 1.11+. [@Envek] (#15)
Changed
- Subscription data storage format changed to support broadcasting feature (see #15)
Removed
-
Drop support for GraphQL-Ruby before 1.11
-
Drop support for AnyCable before 1.0
-
Drop
:action_cable_stream
option from context: it is not used in reality.See rmosolgo/graphql-ruby#3076 for details
Upgrading notes
-
Change method of plugging in of this gem from
use GraphQL::Subscriptions::AnyCableSubscriptions
touse GraphQL::AnyCable
:use GraphQL::AnyCable
If you need broadcasting, add
broadcast: true
option and ensure that Interpreter mode is enabled.use GraphQL::Execution::Interpreter use GraphQL::Analysis::AST use GraphQL::AnyCable, broadcast: true, default_broadcastable: true
-
Enable
handle_legacy_subscriptions
setting for seamless upgrade from previous versions:GRAPHQL_ANYCABLE_HANDLE_LEGACY_SUBSCRIPTIONS=true
Disable or remove this setting when you sure that all clients has re-subscribed (e.g. after
subscription_expiration_seconds
has passed after upgrade) as it imposes small performance penalty.