Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @apollo/[email protected] ### Minor Changes - [#7617](#7617) [`4ff81ca50`](4ff81ca) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Introduce new `ApolloServerPluginSubscriptionCallback` plugin. This plugin implements the [subscription callback protocol](https://github.com/apollographql/router/blob/dev/dev-docs/callback_protocol.md) which is used by Apollo Router. This feature implements subscriptions over HTTP via a callback URL which Apollo Router registers with Apollo Server. This feature is currently in preview and is subject to change. You can enable callback subscriptions like so: ```ts import { ApolloServerPluginSubscriptionCallback } from '@apollo/server/plugin/subscriptionCallback'; import { ApolloServer } from '@apollo/server'; const server = new ApolloServer({ // ... plugins: [ApolloServerPluginSubscriptionCallback()], }); ``` Note that there is currently no tracing or metrics mechanism in place for callback subscriptions. Additionally, this plugin "intercepts" callback subscription requests and bypasses some of Apollo Server's internals. The result of this is that certain plugin hooks (notably `executionDidStart` and `willResolveField`) will not be called when handling callback subscription requests or when sending subscription events. For more information on the subscription callback protocol, visit the docs: <https://www.apollographql.com/docs/router/executing-operations/subscription-callback-protocol/> ### Patch Changes - [#7659](#7659) [`4784f46fb`](4784f46) Thanks [@renovate](https://github.com/apps/renovate)! - Update graphql-http dependency ## @apollo/[email protected] ### Patch Changes - [#7659](#7659) [`4784f46fb`](4784f46) Thanks [@renovate](https://github.com/apps/renovate)! - Update graphql-http dependency - Updated dependencies \[[`4ff81ca50`](4ff81ca), [`4784f46fb`](4784f46)]: - @apollo/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information