diff --git a/.changeset/cuddly-lemons-dance.md b/.changeset/cuddly-lemons-dance.md deleted file mode 100644 index 482da74c89e..00000000000 --- a/.changeset/cuddly-lemons-dance.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@apollo/server': minor ---- - -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/ diff --git a/.changeset/tough-buttons-sniff.md b/.changeset/tough-buttons-sniff.md deleted file mode 100644 index 868013d8d48..00000000000 --- a/.changeset/tough-buttons-sniff.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@apollo/server-integration-testsuite': patch -'@apollo/server': patch ---- - -Update graphql-http dependency diff --git a/package-lock.json b/package-lock.json index 982f0438f1d..e9bdb8af3b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14254,12 +14254,12 @@ }, "packages/integration-testsuite": { "name": "@apollo/server-integration-testsuite", - "version": "4.8.1", + "version": "4.9.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "4.8.1", + "@apollo/server": "4.9.0", "@apollo/usage-reporting-protobuf": "^4.1.1", "@apollo/utils.createhash": "^2.0.0", "@apollo/utils.keyvaluecache": "^2.1.0", @@ -14344,7 +14344,7 @@ }, "packages/server": { "name": "@apollo/server", - "version": "4.8.1", + "version": "4.9.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.3", @@ -14637,7 +14637,7 @@ "requires": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "4.8.1", + "@apollo/server": "4.9.0", "@apollo/usage-reporting-protobuf": "^4.1.1", "@apollo/utils.createhash": "^2.0.0", "@apollo/utils.keyvaluecache": "^2.1.0", diff --git a/packages/integration-testsuite/CHANGELOG.md b/packages/integration-testsuite/CHANGELOG.md index ef1732f04e4..8db9543136f 100644 --- a/packages/integration-testsuite/CHANGELOG.md +++ b/packages/integration-testsuite/CHANGELOG.md @@ -1,5 +1,14 @@ # @apollo/server-integration-testsuite +## 4.9.0 + +### Patch Changes + +- [#7659](https://github.com/apollographql/apollo-server/pull/7659) [`4784f46fb`](https://github.com/apollographql/apollo-server/commit/4784f46fb580cdcd4359a86180def7d221856480) Thanks [@renovate](https://github.com/apps/renovate)! - Update graphql-http dependency + +- Updated dependencies [[`4ff81ca50`](https://github.com/apollographql/apollo-server/commit/4ff81ca508d46eaafa4aa7c265cf2ba2c4421524), [`4784f46fb`](https://github.com/apollographql/apollo-server/commit/4784f46fb580cdcd4359a86180def7d221856480)]: + - @apollo/server@4.9.0 + ## 4.8.1 ### Patch Changes diff --git a/packages/integration-testsuite/package.json b/packages/integration-testsuite/package.json index c021a046f07..f7c3f9dede1 100644 --- a/packages/integration-testsuite/package.json +++ b/packages/integration-testsuite/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-integration-testsuite", - "version": "4.8.1", + "version": "4.9.0", "description": "Test suite for Apollo Server integrations", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -28,7 +28,7 @@ "dependencies": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "4.8.1", + "@apollo/server": "4.9.0", "@apollo/utils.keyvaluecache": "^2.1.0", "@apollo/utils.createhash": "^2.0.0", "@apollo/usage-reporting-protobuf": "^4.1.1", diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 3f0bedd098c..4b0e7636365 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,32 @@ # @apollo/server +## 4.9.0 + +### Minor Changes + +- [#7617](https://github.com/apollographql/apollo-server/pull/7617) [`4ff81ca50`](https://github.com/apollographql/apollo-server/commit/4ff81ca508d46eaafa4aa7c265cf2ba2c4421524) 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](https://github.com/apollographql/apollo-server/pull/7659) [`4784f46fb`](https://github.com/apollographql/apollo-server/commit/4784f46fb580cdcd4359a86180def7d221856480) Thanks [@renovate](https://github.com/apps/renovate)! - Update graphql-http dependency + ## 4.8.1 ### Patch Changes diff --git a/packages/server/package.json b/packages/server/package.json index 0d3bb76882f..1dbcbde8330 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server", - "version": "4.8.1", + "version": "4.9.0", "description": "Core engine for Apollo GraphQL server", "type": "module", "main": "dist/cjs/index.js",