From 562a68a739d53914b016a587639736c205e7b93d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:34:29 +0000 Subject: [PATCH 1/2] Version Packages --- .changeset/fruity-ways-tell.md | 54 -------------------- .changeset/pre.json | 15 ------ package-lock.json | 8 +-- packages/integration-testsuite/CHANGELOG.md | 7 +++ packages/integration-testsuite/package.json | 4 +- packages/plugin-response-cache/CHANGELOG.md | 2 + packages/plugin-response-cache/package.json | 2 +- packages/server/CHANGELOG.md | 55 +++++++++++++++++++++ packages/server/package.json | 2 +- 9 files changed, 72 insertions(+), 77 deletions(-) delete mode 100644 .changeset/fruity-ways-tell.md delete mode 100644 .changeset/pre.json diff --git a/.changeset/fruity-ways-tell.md b/.changeset/fruity-ways-tell.md deleted file mode 100644 index aa36805d139..00000000000 --- a/.changeset/fruity-ways-tell.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -'@apollo/server': minor ---- - -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'; -``` diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 4d9fe3155a5..00000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "mode": "exit", - "tag": "rc", - "initialVersions": { - "@apollo/cache-control-types": "1.0.3", - "@apollo/server-gateway-interface": "2.0.0", - "@apollo/server-integration-testsuite": "5.0.0", - "@apollo/server-plugin-response-cache": "5.0.0", - "@apollo/server": "5.0.0", - "@apollo/usage-reporting-protobuf": "4.1.1" - }, - "changesets": [ - "fruity-ways-tell" - ] -} diff --git a/package-lock.json b/package-lock.json index 287e5bb188e..700347499ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14829,12 +14829,12 @@ }, "packages/integration-testsuite": { "name": "@apollo/server-integration-testsuite", - "version": "5.1.0-rc.0", + "version": "5.1.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.3", "@apollo/client": "^3.6.9", - "@apollo/server": "5.1.0-rc.0", + "@apollo/server": "5.1.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.1-rc.0", + "version": "5.0.1", "license": "MIT", "dependencies": { "@apollo/utils.createhash": "^3.0.0", @@ -14912,7 +14912,7 @@ }, "packages/server": { "name": "@apollo/server", - "version": "5.1.0-rc.0", + "version": "5.1.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 20dda8f6345..519389f6125 100644 --- a/packages/integration-testsuite/CHANGELOG.md +++ b/packages/integration-testsuite/CHANGELOG.md @@ -1,5 +1,12 @@ # @apollo/server-integration-testsuite +## 5.1.0 + +### Patch Changes + +- Updated dependencies [[`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0)]: + - @apollo/server@5.1.0 + ## 5.1.0-rc.0 ### Patch Changes diff --git a/packages/integration-testsuite/package.json b/packages/integration-testsuite/package.json index bd9c4ca38e4..62c034f0c8a 100644 --- a/packages/integration-testsuite/package.json +++ b/packages/integration-testsuite/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-integration-testsuite", - "version": "5.1.0-rc.0", + "version": "5.1.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.1.0-rc.0", + "@apollo/server": "5.1.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 5bb2f84b140..6aff59914fb 100644 --- a/packages/plugin-response-cache/CHANGELOG.md +++ b/packages/plugin-response-cache/CHANGELOG.md @@ -1,5 +1,7 @@ # @apollo/server-plugin-response-cache +## 5.0.1 + ## 5.0.1-rc.0 ### Patch Changes diff --git a/packages/plugin-response-cache/package.json b/packages/plugin-response-cache/package.json index 81f53fe42b4..ad8d0218637 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.1-rc.0", + "version": "5.0.1", "description": "Apollo Server full query response cache", "type": "module", "main": "dist/cjs/index.js", diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 9fa6943259e..3c504f37f37 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,60 @@ # @apollo/server +## 5.1.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.1.0-rc.0 ### Minor Changes diff --git a/packages/server/package.json b/packages/server/package.json index c98c1823732..92083ad447f 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server", - "version": "5.1.0-rc.0", + "version": "5.1.0", "description": "Core engine for Apollo GraphQL server", "type": "module", "main": "dist/cjs/index.js", From 47c4dda201b93ae59fb3ee4b6a04ee016cbadbe3 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Tue, 28 Oct 2025 09:36:56 -0600 Subject: [PATCH 2/2] Revert plugin-response-cache changes --- package-lock.json | 4 ++-- packages/plugin-response-cache/CHANGELOG.md | 9 --------- packages/plugin-response-cache/package.json | 4 ++-- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 700347499ce..99e1b1f2003 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14876,7 +14876,7 @@ }, "packages/plugin-response-cache": { "name": "@apollo/server-plugin-response-cache", - "version": "5.0.1", + "version": "5.0.0", "license": "MIT", "dependencies": { "@apollo/utils.createhash": "^3.0.0", @@ -14886,7 +14886,7 @@ "node": ">=20" }, "peerDependencies": { - "@apollo/server": "^5.0.0 || ^5.1.0-rc", + "@apollo/server": "^5.0.0", "graphql": "^16.11.0" } }, diff --git a/packages/plugin-response-cache/CHANGELOG.md b/packages/plugin-response-cache/CHANGELOG.md index 6aff59914fb..391c4492367 100644 --- a/packages/plugin-response-cache/CHANGELOG.md +++ b/packages/plugin-response-cache/CHANGELOG.md @@ -1,14 +1,5 @@ # @apollo/server-plugin-response-cache -## 5.0.1 - -## 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 ad8d0218637..d4dbb174008 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.1", + "version": "5.0.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 || ^5.1.0-rc", + "@apollo/server": "^5.0.0", "graphql": "^16.11.0" } }