From 3a1c91d55a3d85a625ce74ae5ab4a7d200de7d2a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Dec 2021 11:38:07 +0100 Subject: [PATCH] chore(release): update monorepo packages versions (#221) Co-authored-by: github-actions[bot] --- .changeset/khaki-hairs-protect.md | 11 ----------- examples/context/package.json | 2 +- examples/csp/package.json | 2 +- examples/error-handling/package.json | 2 +- examples/express/package.json | 2 +- examples/fastify/package.json | 2 +- examples/file-upload/package.json | 2 +- examples/graphql-jit/package.json | 2 +- examples/graphql-modules/package.json | 2 +- examples/graphql-ws/package.json | 2 +- examples/http/package.json | 2 +- examples/koa/package.json | 2 +- examples/live-queries/package.json | 2 +- examples/persisted-queries/package.json | 2 +- packages/core/CHANGELOG.md | 12 ++++++++++++ packages/core/package.json | 2 +- 16 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 .changeset/khaki-hairs-protect.md diff --git a/.changeset/khaki-hairs-protect.md b/.changeset/khaki-hairs-protect.md deleted file mode 100644 index c52d83e4..00000000 --- a/.changeset/khaki-hairs-protect.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"graphql-helix": minor ---- - -Adjust the handling of the `accept` header. - -- Clients accepting the `application/graphql+json` header (via the `accept` header) will receive responses that use `Content-Type: application/graphql+json` over `application/json` ([which is only for supporting legacy clients](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#content-types)). - Clients that do not specify any `accept` headers will still receive `content-type: application/json`. This is not considered a breaking change as clients accepting the `application/graphql+json` header should also be able to process it. - Note: When using the `application/graphql+json` content-type header you need to configure your HTTP server/framework to parse this content-type as JSON. -- GET `text/event-stream` requests will now ALWAYS return a `PushResponse` instead of a `MultipartResponse`. Previously helix would send a `MultipartResponse` if the accept header was not a strict equal to `accept: text/event-stream`. -- POST requests that try to execute Subscription operations will now receive an error and 405 status code. This is not considered a breaking change as SSE is not doable over POST by the specification and was never officially supported. diff --git a/examples/context/package.json b/examples/context/package.json index c232daf4..a8050021 100644 --- a/examples/context/package.json +++ b/examples/context/package.json @@ -15,6 +15,6 @@ "express": "4.17.1", "express-session": "1.17.2", "graphql": "16.0.0-experimental-stream-defer.5", - "graphql-helix": "^1.10.3" + "graphql-helix": "^1.11.0" } } diff --git a/examples/csp/package.json b/examples/csp/package.json index 90aa2767..8911a90f 100644 --- a/examples/csp/package.json +++ b/examples/csp/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "helmet": "4.6.0" } diff --git a/examples/error-handling/package.json b/examples/error-handling/package.json index 259c509b..66a4dfe2 100644 --- a/examples/error-handling/package.json +++ b/examples/error-handling/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/examples/express/package.json b/examples/express/package.json index 959312a5..1f531811 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/examples/fastify/package.json b/examples/fastify/package.json index c20b9e15..7c2dcebd 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "fastify": "3.21.6", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/examples/file-upload/package.json b/examples/file-upload/package.json index 27a6adaf..e2c28e97 100644 --- a/examples/file-upload/package.json +++ b/examples/file-upload/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "graphql-upload": "^11.0.0" } diff --git a/examples/graphql-jit/package.json b/examples/graphql-jit/package.json index 5befd4f3..96f6c055 100644 --- a/examples/graphql-jit/package.json +++ b/examples/graphql-jit/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "graphql-jit": "0.5.2", "tiny-lru": "7.0.6" diff --git a/examples/graphql-modules/package.json b/examples/graphql-modules/package.json index ae5b94c1..19163c5e 100644 --- a/examples/graphql-modules/package.json +++ b/examples/graphql-modules/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "graphql-modules": "1.4.4" } diff --git a/examples/graphql-ws/package.json b/examples/graphql-ws/package.json index e53eaeaa..2ea5c2b6 100644 --- a/examples/graphql-ws/package.json +++ b/examples/graphql-ws/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "graphql-ws": "5.5.0", "ws": "8.2.2" diff --git a/examples/http/package.json b/examples/http/package.json index deeb53a4..8a4d9adc 100644 --- a/examples/http/package.json +++ b/examples/http/package.json @@ -10,7 +10,7 @@ "typescript": "4.4.4" }, "dependencies": { - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/examples/koa/package.json b/examples/koa/package.json index 6ca4e8cd..1d1dbd99 100644 --- a/examples/koa/package.json +++ b/examples/koa/package.json @@ -12,7 +12,7 @@ "typescript": "4.4.4" }, "dependencies": { - "graphql-helix": "1.10.3", + "graphql-helix": "1.11.0", "graphql": "16.0.0-experimental-stream-defer.5", "koa": "2.13.1", "koa-bodyparser": "4.3.0" diff --git a/examples/live-queries/package.json b/examples/live-queries/package.json index aa9d9e68..01dd4ad9 100644 --- a/examples/live-queries/package.json +++ b/examples/live-queries/package.json @@ -14,7 +14,7 @@ "@n1ru4l/in-memory-live-query-store": "0.7.1", "@n1ru4l/graphql-live-query": "0.8.1", "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/examples/persisted-queries/package.json b/examples/persisted-queries/package.json index 6ae8c273..01c5b809 100644 --- a/examples/persisted-queries/package.json +++ b/examples/persisted-queries/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "express": "4.17.1", - "graphql-helix": "^1.10.3", + "graphql-helix": "^1.11.0", "graphql": "16.0.0-experimental-stream-defer.5" } } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ad61afb8..3159c5dc 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,17 @@ # graphql-helix +## 1.11.0 + +### Minor Changes + +- f07a403: Adjust the handling of the `accept` header. + + - Clients accepting the `application/graphql+json` header (via the `accept` header) will receive responses that use `Content-Type: application/graphql+json` over `application/json` ([which is only for supporting legacy clients](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#content-types)). + Clients that do not specify any `accept` headers will still receive `content-type: application/json`. This is not considered a breaking change as clients accepting the `application/graphql+json` header should also be able to process it. + Note: When using the `application/graphql+json` content-type header you need to configure your HTTP server/framework to parse this content-type as JSON. + - GET `text/event-stream` requests will now ALWAYS return a `PushResponse` instead of a `MultipartResponse`. Previously helix would send a `MultipartResponse` if the accept header was not a strict equal to `accept: text/event-stream`. + - POST requests that try to execute Subscription operations will now receive an error and 405 status code. This is not considered a breaking change as SSE is not doable over POST by the specification and was never officially supported. + ## 1.10.3 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index ac173b56..948442d5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "graphql-helix", - "version": "1.10.3", + "version": "1.11.0", "description": "A highly evolved GraphQL HTTP Server 🧬", "keywords": [ "graphql",