diff --git a/.changeset/pre.json b/.changeset/pre.json index 9c282b16a04..fea3198c390 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -9,5 +9,7 @@ "@apollo/server": "5.0.0", "@apollo/usage-reporting-protobuf": "4.1.1" }, - "changesets": [] + "changesets": [ + "fruity-ways-tell" + ] } diff --git a/package-lock.json b/package-lock.json index 5b05aad937b..287e5bb188e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14829,12 +14829,12 @@ }, "packages/integration-testsuite": { "name": "@apollo/server-integration-testsuite", - "version": "5.0.0", + "version": "5.1.0-rc.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "5.0.0", + "@apollo/server": "5.1.0-rc.0", "@apollo/usage-reporting-protobuf": "^4.1.1", "@apollo/utils.createhash": "^3.0.0", "@apollo/utils.keyvaluecache": "^4.0.0", @@ -14876,7 +14876,7 @@ }, "packages/plugin-response-cache": { "name": "@apollo/server-plugin-response-cache", - "version": "5.0.0", + "version": "5.0.1-rc.0", "license": "MIT", "dependencies": { "@apollo/utils.createhash": "^3.0.0", @@ -14886,7 +14886,7 @@ "node": ">=20" }, "peerDependencies": { - "@apollo/server": "^5.0.0", + "@apollo/server": "^5.0.0 || ^5.1.0-rc", "graphql": "^16.11.0" } }, @@ -14912,7 +14912,7 @@ }, "packages/server": { "name": "@apollo/server", - "version": "5.0.0", + "version": "5.1.0-rc.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.3", diff --git a/packages/integration-testsuite/CHANGELOG.md b/packages/integration-testsuite/CHANGELOG.md index 5852bd1a5ec..20dda8f6345 100644 --- a/packages/integration-testsuite/CHANGELOG.md +++ b/packages/integration-testsuite/CHANGELOG.md @@ -1,5 +1,12 @@ # @apollo/server-integration-testsuite +## 5.1.0-rc.0 + +### Patch Changes + +- Updated dependencies [[`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0)]: + - @apollo/server@5.1.0-rc.0 + ## 5.0.0 ### Major Changes diff --git a/packages/integration-testsuite/package.json b/packages/integration-testsuite/package.json index 3a0b62a039a..bd9c4ca38e4 100644 --- a/packages/integration-testsuite/package.json +++ b/packages/integration-testsuite/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-integration-testsuite", - "version": "5.0.0", + "version": "5.1.0-rc.0", "description": "Test suite for Apollo Server integrations", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -39,7 +39,7 @@ "dependencies": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "5.0.0", + "@apollo/server": "5.1.0-rc.0", "@apollo/usage-reporting-protobuf": "^4.1.1", "@apollo/utils.createhash": "^3.0.0", "@apollo/utils.keyvaluecache": "^4.0.0", diff --git a/packages/plugin-response-cache/CHANGELOG.md b/packages/plugin-response-cache/CHANGELOG.md index 391c4492367..5bb2f84b140 100644 --- a/packages/plugin-response-cache/CHANGELOG.md +++ b/packages/plugin-response-cache/CHANGELOG.md @@ -1,5 +1,12 @@ # @apollo/server-plugin-response-cache +## 5.0.1-rc.0 + +### Patch Changes + +- Updated dependencies [[`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0)]: + - @apollo/server@5.1.0-rc.0 + ## 5.0.0 ### Major Changes diff --git a/packages/plugin-response-cache/package.json b/packages/plugin-response-cache/package.json index d4dbb174008..81f53fe42b4 100644 --- a/packages/plugin-response-cache/package.json +++ b/packages/plugin-response-cache/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-plugin-response-cache", - "version": "5.0.0", + "version": "5.0.1-rc.0", "description": "Apollo Server full query response cache", "type": "module", "main": "dist/cjs/index.js", @@ -36,7 +36,7 @@ "@apollo/utils.keyvaluecache": "^4.0.0" }, "peerDependencies": { - "@apollo/server": "^5.0.0", + "@apollo/server": "^5.0.0 || ^5.1.0-rc", "graphql": "^16.11.0" } } diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index b7f65bfac76..9fa6943259e 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,60 @@ # @apollo/server +## 5.1.0-rc.0 + +### Minor Changes + +- [#8148](https://github.com/apollographql/apollo-server/pull/8148) [`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Apollo Server now supports the incremental delivery protocol (`@defer` and `@stream`) that ships with `graphql@17.0.0-alpha.9`. To use the current protocol, clients must send the `Accept` header with a value of `multipart/mixed; incrementalSpec=v0.2`. + + Upgrading to 5.1 will depend on what version of `graphql` you have installed and whether you already support the incremental delivery protocol. + + ## I use `graphql@16` without incremental delivery + + Continue using `graphql` v16 with no additional changes. Incremental delivery won't be available. + + ## I use `graphql@16` but would like to add support for incremental delivery + + Install `graphql@17.0.0-alpha.9` and follow the ["Incremental delivery" guide](https://www.apollographql.com/docs/apollo-server/workflow/requests#incremental-delivery-experimental) to add the `@defer` and `@stream` directives to your schema. Clients should send the `Accept` header with a value of `multipart/mixed; incrementalSpec=v0.2` to get multipart responses. + + ## I use `graphql@17.0.0-alpha.2` and use incremental delivery + + You must upgrade to `graphql@17.0.0-alpha.9` to continue using incremental delivery. If you'd like to continue providing support for the legacy incremental protocol, install the [`@yaacovcr/transform`](https://github.com/yaacovCR/transform) package. Apollo Server will attempt to load this module when the client specifies an `Accept` header with a value of `multipart/mixed; deferSpec=20220824`. If this package is not installed, an error is returned by the server. + + Because Apollo Server now supports multiple versions of the incremental delivery types, the existing incremental delivery types have been renamed with an `Alpha2` suffix. If you import these types in your code, you will need to add the `Alpha2` suffix. + + ```diff + import type { + - GraphQLExperimentalFormattedInitialIncrementalExecutionResult, + + GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha2, + + - GraphQLExperimentalFormattedSubsequentIncrementalExecutionResult, + + GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha2, + + - GraphQLExperimentalFormattedIncrementalResult, + + GraphQLExperimentalFormattedIncrementalResultAlpha2, + + - GraphQLExperimentalFormattedIncrementalDeferResult, + + GraphQLExperimentalFormattedIncrementalDeferResultAlpha2, + + - GraphQLExperimentalFormattedIncrementalStreamResult, + + GraphQLExperimentalFormattedIncrementalStreamResultAlpha2, + } from '@apollo/server'; + ``` + + Incremental delivery types for the `graphql@17.0.0-alpha.9` version are now available using the `Alpha9` suffix: + + ```ts + import type { + GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha9, + GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha9, + GraphQLExperimentalFormattedIncrementalResultAlpha9, + GraphQLExperimentalFormattedIncrementalDeferResultAlpha9, + GraphQLExperimentalFormattedIncrementalStreamResultAlpha9, + GraphQLExperimentalFormattedCompletedResultAlpha9, + GraphQLExperimentalPendingResultAlpha9, + } from '@apollo/server'; + ``` + ## 5.0.0 ### BREAKING CHANGES diff --git a/packages/server/package.json b/packages/server/package.json index b2897bf675d..c98c1823732 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server", - "version": "5.0.0", + "version": "5.1.0-rc.0", "description": "Core engine for Apollo GraphQL server", "type": "module", "main": "dist/cjs/index.js",