diff --git a/.changeset/clean-rabbits-play.md b/.changeset/clean-rabbits-play.md deleted file mode 100644 index 17c74e20afd..00000000000 --- a/.changeset/clean-rabbits-play.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@apollo/server-gateway-interface': patch -'@apollo/server-integration-testsuite': patch -'@apollo/server-plugin-response-cache': patch -'@apollo/server': patch ---- - -Update @apollo/utils packages to v2 (dropping node 12 support) diff --git a/.changeset/famous-glasses-study.md b/.changeset/famous-glasses-study.md deleted file mode 100644 index 26e75fd2bad..00000000000 --- a/.changeset/famous-glasses-study.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@apollo/server-gateway-interface': patch ---- - -Remove unnecessary engines constraint on types-only package diff --git a/.changeset/good-pets-begin.md b/.changeset/good-pets-begin.md deleted file mode 100644 index 8b48764f2c0..00000000000 --- a/.changeset/good-pets-begin.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@apollo/server-integration-testsuite': minor -'@apollo/server': minor ---- - -If a POST body contains a non-string `operationName` or a non-object `variables` or `extensions`, fail with status code 400 instead of ignoring the field. - -In addition to being a reasonable idea, this provides more compliance with the "GraphQL over HTTP" spec. - -This is a backwards incompatible change, but we are still early in the Apollo Server 4 adoption cycle and this is in line with the change already made in Apollo Server 4 to reject requests providing `variables` or `extensions` as strings. If this causes major problems for users who have already upgraded to Apollo Server 4 in production, we can consider reverting or partially reverting this change. diff --git a/.changeset/honest-toys-fetch.md b/.changeset/honest-toys-fetch.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/honest-toys-fetch.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/rude-steaks-smell.md b/.changeset/rude-steaks-smell.md deleted file mode 100644 index 09cd5ddbc00..00000000000 --- a/.changeset/rude-steaks-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@apollo/server': minor ---- - -Don't automatically install the usage reporting plugin in servers that appear to be hosting a federated subgraph (based on the existence of a field `_Service.sdl: String`). This is generally a misconfiguration. If an API key and graph ref are provided to the subgraph, log a warning and do not enable the usage reporting plugin. If the usage reporting plugin is explicitly installed in a subgraph, log a warning but keep it enabled. diff --git a/.changeset/stale-ligers-impress.md b/.changeset/stale-ligers-impress.md deleted file mode 100644 index 4a3def4a2c3..00000000000 --- a/.changeset/stale-ligers-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@apollo/server': patch ---- - -startStandaloneServer: Restore body-parser request limit to 50mb (as it was in the `apollo-server` package in Apollo Server 3) diff --git a/.changeset/tame-pumpkins-ring.md b/.changeset/tame-pumpkins-ring.md deleted file mode 100644 index e13a7673878..00000000000 --- a/.changeset/tame-pumpkins-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@apollo/server-integration-testsuite': patch ---- - -Fix a few tests to support (but not require) TypeScript 4.9. diff --git a/.changeset/tidy-eggs-turn.md b/.changeset/tidy-eggs-turn.md deleted file mode 100644 index be7ccd50545..00000000000 --- a/.changeset/tidy-eggs-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@apollo/server-integration-testsuite': patch ---- - -The integration test suite now incorporates the `graphql-http` package's audit suite for the "GraphQL over HTTP" specification. diff --git a/.changeset/tiny-deers-compare.md b/.changeset/tiny-deers-compare.md deleted file mode 100644 index 9e8da165420..00000000000 --- a/.changeset/tiny-deers-compare.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@apollo/server-integration-testsuite': patch -'@apollo/server': patch ---- - -Apollo Server tries to detect if execution errors are variable coercion errors in order to give them a `code` extension of `BAD_USER_INPUT` rather than `INTERNAL_SERVER_ERROR`. Previously this would unconditionally set the `code`; now, it only sets the `code` if no `code` is already set, so that (for example) custom scalar `parseValue` methods can throw errors with specific `code`s. (Note that a separate graphql-js bug can lead to these extensions being lost; see https://github.com/graphql/graphql-js/pull/3785 for details.) diff --git a/package-lock.json b/package-lock.json index f9048bff9df..bcb73303f78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12982,7 +12982,7 @@ }, "packages/gateway-interface": { "name": "@apollo/server-gateway-interface", - "version": "1.0.5", + "version": "1.0.6", "license": "MIT", "dependencies": { "@apollo/usage-reporting-protobuf": "^4.0.0", @@ -13032,12 +13032,12 @@ }, "packages/integration-testsuite": { "name": "@apollo/server-integration-testsuite", - "version": "4.1.1", + "version": "4.2.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.2", "@apollo/client": "^3.6.9", - "@apollo/server": "4.1.1", + "@apollo/server": "4.2.0", "@apollo/server-plugin-landing-page-graphql-playground": "^4.0.0", "@apollo/usage-reporting-protobuf": "^4.0.0", "@apollo/utils.createhash": "^2.0.0", @@ -13090,7 +13090,7 @@ }, "packages/plugin-response-cache": { "name": "@apollo/server-plugin-response-cache", - "version": "4.0.1", + "version": "4.0.2", "license": "MIT", "dependencies": { "@apollo/utils.createhash": "^2.0.0", @@ -13134,11 +13134,11 @@ }, "packages/server": { "name": "@apollo/server", - "version": "4.1.1", + "version": "4.2.0", "license": "MIT", "dependencies": { "@apollo/cache-control-types": "^1.0.2", - "@apollo/server-gateway-interface": "^1.0.5", + "@apollo/server-gateway-interface": "^1.0.6", "@apollo/usage-reporting-protobuf": "^4.0.0", "@apollo/utils.createhash": "^2.0.0", "@apollo/utils.fetcher": "^2.0.0", @@ -13306,7 +13306,7 @@ "version": "file:packages/server", "requires": { "@apollo/cache-control-types": "^1.0.2", - "@apollo/server-gateway-interface": "^1.0.5", + "@apollo/server-gateway-interface": "^1.0.6", "@apollo/usage-reporting-protobuf": "^4.0.0", "@apollo/utils.createhash": "^2.0.0", "@apollo/utils.fetcher": "^2.0.0", @@ -13404,7 +13404,7 @@ "requires": { "@apollo/cache-control-types": "^1.0.2", "@apollo/client": "^3.6.9", - "@apollo/server": "4.1.1", + "@apollo/server": "4.2.0", "@apollo/server-plugin-landing-page-graphql-playground": "^4.0.0", "@apollo/usage-reporting-protobuf": "^4.0.0", "@apollo/utils.createhash": "^2.0.0", diff --git a/packages/gateway-interface/CHANGELOG.md b/packages/gateway-interface/CHANGELOG.md index 6751e8a21dc..9a8a7cc96a6 100644 --- a/packages/gateway-interface/CHANGELOG.md +++ b/packages/gateway-interface/CHANGELOG.md @@ -1,5 +1,13 @@ # @apollo/server-gateway-interface +## 1.0.6 + +### Patch Changes + +- [#7170](https://github.com/apollographql/apollo-server/pull/7170) [`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Update @apollo/utils packages to v2 (dropping node 12 support) + +- [#7173](https://github.com/apollographql/apollo-server/pull/7173) [`45856e1dd`](https://github.com/apollographql/apollo-server/commit/45856e1ddfd646c93682d3d8475bf77fbcc1c22c) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Remove unnecessary engines constraint on types-only package + ## 1.0.5 ### Patch Changes diff --git a/packages/gateway-interface/package.json b/packages/gateway-interface/package.json index 17570fcbfa3..7b4e6786af0 100644 --- a/packages/gateway-interface/package.json +++ b/packages/gateway-interface/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-gateway-interface", - "version": "1.0.5", + "version": "1.0.6", "description": "Interface used to connect Apollo Gateway to Apollo Server", "type": "module", "main": "", diff --git a/packages/integration-testsuite/CHANGELOG.md b/packages/integration-testsuite/CHANGELOG.md index cf121e255dd..99a87c4cd99 100644 --- a/packages/integration-testsuite/CHANGELOG.md +++ b/packages/integration-testsuite/CHANGELOG.md @@ -1,5 +1,28 @@ # @apollo/server-integration-testsuite +## 4.2.0 + +### Minor Changes + +- [#7171](https://github.com/apollographql/apollo-server/pull/7171) [`37b3b7fb5`](https://github.com/apollographql/apollo-server/commit/37b3b7fb57ea105f40776166c9532536fd3f053d) Thanks [@glasser](https://github.com/glasser)! - If a POST body contains a non-string `operationName` or a non-object `variables` or `extensions`, fail with status code 400 instead of ignoring the field. + + In addition to being a reasonable idea, this provides more compliance with the "GraphQL over HTTP" spec. + + This is a backwards incompatible change, but we are still early in the Apollo Server 4 adoption cycle and this is in line with the change already made in Apollo Server 4 to reject requests providing `variables` or `extensions` as strings. If this causes major problems for users who have already upgraded to Apollo Server 4 in production, we can consider reverting or partially reverting this change. + +### Patch Changes + +- [#7170](https://github.com/apollographql/apollo-server/pull/7170) [`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Update @apollo/utils packages to v2 (dropping node 12 support) + +- [#7179](https://github.com/apollographql/apollo-server/pull/7179) [`c8129c23f`](https://github.com/apollographql/apollo-server/commit/c8129c23fd300b8048821544512ccc7df8f12470) Thanks [@renovate](https://github.com/apps/renovate)! - Fix a few tests to support (but not require) TypeScript 4.9. + +- [#7171](https://github.com/apollographql/apollo-server/pull/7171) [`37b3b7fb5`](https://github.com/apollographql/apollo-server/commit/37b3b7fb57ea105f40776166c9532536fd3f053d) Thanks [@glasser](https://github.com/glasser)! - The integration test suite now incorporates the `graphql-http` package's audit suite for the "GraphQL over HTTP" specification. + +- [#7183](https://github.com/apollographql/apollo-server/pull/7183) [`46af8255c`](https://github.com/apollographql/apollo-server/commit/46af8255c9a23174f0c9a640f0c90666ed80470f) Thanks [@glasser](https://github.com/glasser)! - Apollo Server tries to detect if execution errors are variable coercion errors in order to give them a `code` extension of `BAD_USER_INPUT` rather than `INTERNAL_SERVER_ERROR`. Previously this would unconditionally set the `code`; now, it only sets the `code` if no `code` is already set, so that (for example) custom scalar `parseValue` methods can throw errors with specific `code`s. (Note that a separate graphql-js bug can lead to these extensions being lost; see https://github.com/graphql/graphql-js/pull/3785 for details.) + +- Updated dependencies [[`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30), [`37b3b7fb5`](https://github.com/apollographql/apollo-server/commit/37b3b7fb57ea105f40776166c9532536fd3f053d), [`b1548c1d6`](https://github.com/apollographql/apollo-server/commit/b1548c1d62c6dea656d360bf8f4176e23dd9ee48), [`7ff96f533`](https://github.com/apollographql/apollo-server/commit/7ff96f5331fbf14c0a25094007f6f05e799ee052), [`46af8255c`](https://github.com/apollographql/apollo-server/commit/46af8255c9a23174f0c9a640f0c90666ed80470f)]: + - @apollo/server@4.2.0 + ## 4.1.1 ### Patch Changes diff --git a/packages/integration-testsuite/package.json b/packages/integration-testsuite/package.json index 2cbd203b47f..9d2c7e48406 100644 --- a/packages/integration-testsuite/package.json +++ b/packages/integration-testsuite/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server-integration-testsuite", - "version": "4.1.1", + "version": "4.2.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.2", "@apollo/client": "^3.6.9", - "@apollo/server": "4.1.1", + "@apollo/server": "4.2.0", "@apollo/server-plugin-landing-page-graphql-playground": "^4.0.0", "@apollo/utils.keyvaluecache": "^2.0.0", "@apollo/utils.createhash": "^2.0.0", diff --git a/packages/plugin-response-cache/CHANGELOG.md b/packages/plugin-response-cache/CHANGELOG.md index be962d0dc40..7159001e15c 100644 --- a/packages/plugin-response-cache/CHANGELOG.md +++ b/packages/plugin-response-cache/CHANGELOG.md @@ -1,5 +1,11 @@ # @apollo/server-plugin-response-cache +## 4.0.2 + +### Patch Changes + +- [#7170](https://github.com/apollographql/apollo-server/pull/7170) [`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Update @apollo/utils packages to v2 (dropping node 12 support) + ## 4.0.1 ### Patch Changes diff --git a/packages/plugin-response-cache/package.json b/packages/plugin-response-cache/package.json index e630e976daa..79d6541f1ac 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": "4.0.1", + "version": "4.0.2", "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 af4a4dbf3b3..e3080e4b566 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,28 @@ # @apollo/server +## 4.2.0 + +### Minor Changes + +- [#7171](https://github.com/apollographql/apollo-server/pull/7171) [`37b3b7fb5`](https://github.com/apollographql/apollo-server/commit/37b3b7fb57ea105f40776166c9532536fd3f053d) Thanks [@glasser](https://github.com/glasser)! - If a POST body contains a non-string `operationName` or a non-object `variables` or `extensions`, fail with status code 400 instead of ignoring the field. + + In addition to being a reasonable idea, this provides more compliance with the "GraphQL over HTTP" spec. + + This is a backwards incompatible change, but we are still early in the Apollo Server 4 adoption cycle and this is in line with the change already made in Apollo Server 4 to reject requests providing `variables` or `extensions` as strings. If this causes major problems for users who have already upgraded to Apollo Server 4 in production, we can consider reverting or partially reverting this change. + +- [#7184](https://github.com/apollographql/apollo-server/pull/7184) [`b1548c1d6`](https://github.com/apollographql/apollo-server/commit/b1548c1d62c6dea656d360bf8f4176e23dd9ee48) Thanks [@glasser](https://github.com/glasser)! - Don't automatically install the usage reporting plugin in servers that appear to be hosting a federated subgraph (based on the existence of a field `_Service.sdl: String`). This is generally a misconfiguration. If an API key and graph ref are provided to the subgraph, log a warning and do not enable the usage reporting plugin. If the usage reporting plugin is explicitly installed in a subgraph, log a warning but keep it enabled. + +### Patch Changes + +- [#7170](https://github.com/apollographql/apollo-server/pull/7170) [`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Update @apollo/utils packages to v2 (dropping node 12 support) + +- [#7172](https://github.com/apollographql/apollo-server/pull/7172) [`7ff96f533`](https://github.com/apollographql/apollo-server/commit/7ff96f5331fbf14c0a25094007f6f05e799ee052) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - startStandaloneServer: Restore body-parser request limit to 50mb (as it was in the `apollo-server` package in Apollo Server 3) + +- [#7183](https://github.com/apollographql/apollo-server/pull/7183) [`46af8255c`](https://github.com/apollographql/apollo-server/commit/46af8255c9a23174f0c9a640f0c90666ed80470f) Thanks [@glasser](https://github.com/glasser)! - Apollo Server tries to detect if execution errors are variable coercion errors in order to give them a `code` extension of `BAD_USER_INPUT` rather than `INTERNAL_SERVER_ERROR`. Previously this would unconditionally set the `code`; now, it only sets the `code` if no `code` is already set, so that (for example) custom scalar `parseValue` methods can throw errors with specific `code`s. (Note that a separate graphql-js bug can lead to these extensions being lost; see https://github.com/graphql/graphql-js/pull/3785 for details.) + +- Updated dependencies [[`4ce738193`](https://github.com/apollographql/apollo-server/commit/4ce738193f8d073287c34f84c0346276ae2efc30), [`45856e1dd`](https://github.com/apollographql/apollo-server/commit/45856e1ddfd646c93682d3d8475bf77fbcc1c22c)]: + - @apollo/server-gateway-interface@1.0.6 + ## 4.1.1 ### Patch Changes diff --git a/packages/server/package.json b/packages/server/package.json index 9f244aa0d6d..1cd9782de17 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/server", - "version": "4.1.1", + "version": "4.2.0", "description": "Core engine for Apollo GraphQL server", "type": "module", "main": "dist/cjs/index.js", @@ -85,7 +85,7 @@ }, "dependencies": { "@apollo/cache-control-types": "^1.0.2", - "@apollo/server-gateway-interface": "^1.0.5", + "@apollo/server-gateway-interface": "^1.0.6", "@apollo/usage-reporting-protobuf": "^4.0.0", "@apollo/utils.createhash": "^2.0.0", "@apollo/utils.fetcher": "^2.0.0",