diff --git a/.changeset/shy-geckos-switch.md b/.changeset/shy-geckos-switch.md deleted file mode 100644 index 32a86ef2c1..0000000000 --- a/.changeset/shy-geckos-switch.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@graphql-yoga/common': minor -'@graphql-yoga/node': patch ---- - -## Correct status code for multipart request errors - -Return correct 413 (Request Entity Too Large) HTTP status code if the given request body is larger then the specified one in `multipart` options. -Previously it was returning 400 or 500 which is an incorrect behavior misleading the client. - -## Possible to configure the HTTP status code and headers of the response - -Now we add a new `http` field to `GraphQLErrorExtensions` that you can set the status code and headers of the response; - -```ts -throw new GraphQLError('You are not authorized to access this field', { - extensions: { - http: { - status: 401, - headers: { - 'WWW-Authenticate': 'Bearer', - }, - }, - }, -}) -``` diff --git a/benchmark/hello-world/CHANGELOG.md b/benchmark/hello-world/CHANGELOG.md index f77cf60329..f9e062e01a 100644 --- a/benchmark/hello-world/CHANGELOG.md +++ b/benchmark/hello-world/CHANGELOG.md @@ -1,5 +1,12 @@ # hello-world-benchmark +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/benchmark/hello-world/package.json b/benchmark/hello-world/package.json index 6f33033425..80d5e8f1c7 100644 --- a/benchmark/hello-world/package.json +++ b/benchmark/hello-world/package.json @@ -1,6 +1,6 @@ { "name": "hello-world-benchmark", - "version": "0.10.0", + "version": "0.11.0", "private": true, "scripts": { "start": "node start-server.js", @@ -8,7 +8,7 @@ "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.5.0" } } diff --git a/examples/apollo-federation/gateway/CHANGELOG.md b/examples/apollo-federation/gateway/CHANGELOG.md index 04679ceebc..e7dfee385a 100644 --- a/examples/apollo-federation/gateway/CHANGELOG.md +++ b/examples/apollo-federation/gateway/CHANGELOG.md @@ -1,5 +1,12 @@ # apollo-federation-gateway-with-yoga +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/apollo-federation/gateway/package.json b/examples/apollo-federation/gateway/package.json index e92472ae43..b3f75f3d83 100644 --- a/examples/apollo-federation/gateway/package.json +++ b/examples/apollo-federation/gateway/package.json @@ -1,6 +1,6 @@ { "name": "apollo-federation-gateway-with-yoga", - "version": "0.10.0", + "version": "0.11.0", "private": true, "scripts": { "start": "node index.js", @@ -9,7 +9,7 @@ "dependencies": { "@apollo/gateway": "^0.45.1", "@envelop/apollo-federation": "^2.4.0", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "^15.5.3" } } diff --git a/examples/apollo-federation/service/CHANGELOG.md b/examples/apollo-federation/service/CHANGELOG.md index 0d65022ecb..fcc6f78842 100644 --- a/examples/apollo-federation/service/CHANGELOG.md +++ b/examples/apollo-federation/service/CHANGELOG.md @@ -1,5 +1,12 @@ # apollo-subgraph-with-yoga +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/apollo-federation/service/package.json b/examples/apollo-federation/service/package.json index 401edd214f..05819f9d5b 100644 --- a/examples/apollo-federation/service/package.json +++ b/examples/apollo-federation/service/package.json @@ -1,6 +1,6 @@ { "name": "apollo-subgraph-with-yoga", - "version": "0.10.0", + "version": "0.11.0", "private": true, "scripts": { "start": "node index.js", @@ -8,7 +8,7 @@ }, "dependencies": { "@apollo/subgraph": "^0.1.5", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "^16.2.0" } } diff --git a/examples/aws-lambda/lambda/CHANGELOG.md b/examples/aws-lambda/lambda/CHANGELOG.md index bae04a6234..8ab89e7b96 100644 --- a/examples/aws-lambda/lambda/CHANGELOG.md +++ b/examples/aws-lambda/lambda/CHANGELOG.md @@ -1,5 +1,12 @@ # graphql-lambda +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/aws-lambda/lambda/package.json b/examples/aws-lambda/lambda/package.json index 3ec3b2e1f4..d6c84dd318 100644 --- a/examples/aws-lambda/lambda/package.json +++ b/examples/aws-lambda/lambda/package.json @@ -1,7 +1,7 @@ { "name": "graphql-lambda", "private": true, - "version": "0.10.0", + "version": "0.11.0", "description": "", "main": "graphql.js", "scripts": { @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@vendia/serverless-express": "4.5.4", "graphql": "^16.3.0" } diff --git a/examples/cloudflare-advanced/CHANGELOG.md b/examples/cloudflare-advanced/CHANGELOG.md index f201302169..9f1f33b8a6 100644 --- a/examples/cloudflare-advanced/CHANGELOG.md +++ b/examples/cloudflare-advanced/CHANGELOG.md @@ -1,5 +1,12 @@ # cloudflare-advanced +## 0.5.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 0.4.0 ### Patch Changes diff --git a/examples/cloudflare-advanced/package.json b/examples/cloudflare-advanced/package.json index 18e31f3fe5..659df45cb7 100644 --- a/examples/cloudflare-advanced/package.json +++ b/examples/cloudflare-advanced/package.json @@ -1,13 +1,13 @@ { "name": "cloudflare-advanced", - "version": "0.4.0", + "version": "0.5.0", "private": true, "scripts": { "start": "wrangler dev", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/common": "2.9.0", + "@graphql-yoga/common": "2.10.0", "@cloudflare/workers-types": "^3.0.0", "graphql": "16.3.0" }, diff --git a/examples/cloudflare-modules/CHANGELOG.md b/examples/cloudflare-modules/CHANGELOG.md index 3405e2704c..76a7520c8a 100644 --- a/examples/cloudflare-modules/CHANGELOG.md +++ b/examples/cloudflare-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # cloudflare +## 0.2.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/cloudflare-modules/package.json b/examples/cloudflare-modules/package.json index 237dae34c3..381d3f4750 100644 --- a/examples/cloudflare-modules/package.json +++ b/examples/cloudflare-modules/package.json @@ -1,6 +1,6 @@ { "name": "cloudflare", - "version": "0.1.0", + "version": "0.2.0", "private": true, "type": "module", "module": "./dist/index.mjs", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/common": "2.9.0", + "@graphql-yoga/common": "2.10.0", "graphql": "16.5.0" }, "devDependencies": { diff --git a/examples/defer-stream/CHANGELOG.md b/examples/defer-stream/CHANGELOG.md index 053efb7cc6..5fe78b5967 100644 --- a/examples/defer-stream/CHANGELOG.md +++ b/examples/defer-stream/CHANGELOG.md @@ -1,5 +1,12 @@ # defer-stream-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/defer-stream/package.json b/examples/defer-stream/package.json index e66d14cc75..19f7e99831 100644 --- a/examples/defer-stream/package.json +++ b/examples/defer-stream/package.json @@ -1,13 +1,13 @@ { "name": "defer-stream-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.0.0-experimental-stream-defer.5" }, "devDependencies": { diff --git a/examples/error-handling/CHANGELOG.md b/examples/error-handling/CHANGELOG.md index 063b58a4b4..ad2bb19ac7 100644 --- a/examples/error-handling/CHANGELOG.md +++ b/examples/error-handling/CHANGELOG.md @@ -1,5 +1,12 @@ # error-masking-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/error-handling/package.json b/examples/error-handling/package.json index 9aeec8f711..1d62be76d6 100644 --- a/examples/error-handling/package.json +++ b/examples/error-handling/package.json @@ -1,13 +1,13 @@ { "name": "error-masking-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "cross-undici-fetch": "^0.4.2", "graphql": "^16.1.0" }, diff --git a/examples/express/CHANGELOG.md b/examples/express/CHANGELOG.md index 329790dcc6..44802886ba 100644 --- a/examples/express/CHANGELOG.md +++ b/examples/express/CHANGELOG.md @@ -1,5 +1,12 @@ # express-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/express/package.json b/examples/express/package.json index 689ea593f0..0f8c0d00ce 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -1,13 +1,13 @@ { "name": "express-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@types/express": "^4.17.13", "express": "^4.17.1", "supertest": "^6.1.6" diff --git a/examples/fastify-modules/CHANGELOG.md b/examples/fastify-modules/CHANGELOG.md index 0c7580d87a..39c6ec8f54 100644 --- a/examples/fastify-modules/CHANGELOG.md +++ b/examples/fastify-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # fastify-modules-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/fastify-modules/package.json b/examples/fastify-modules/package.json index 72aff48f39..2c66d9f72b 100644 --- a/examples/fastify-modules/package.json +++ b/examples/fastify-modules/package.json @@ -1,7 +1,7 @@ { "name": "fastify-modules-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node --transpile-only src/index.ts", "check": "tsc --pretty --noEmit" @@ -9,7 +9,7 @@ "dependencies": { "@envelop/graphql-modules": "3.4.0", "@graphql-tools/load-files": "6.6.0", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "fastify": "4.0.2", "graphql-modules": "2.0.0", "reflect-metadata": "0.1.13" diff --git a/examples/fastify/CHANGELOG.md b/examples/fastify/CHANGELOG.md index ef1f820859..47e7c29efd 100644 --- a/examples/fastify/CHANGELOG.md +++ b/examples/fastify/CHANGELOG.md @@ -1,5 +1,12 @@ # fastify-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/fastify/package.json b/examples/fastify/package.json index 1e3fbc7e10..4619181cfa 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -1,13 +1,13 @@ { "name": "fastify-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "fastify": "4.0.2", "pino-pretty": "8.0.0" }, diff --git a/examples/file-upload-nextjs-pothos/CHANGELOG.md b/examples/file-upload-nextjs-pothos/CHANGELOG.md index d5a1c22b41..99775577b4 100644 --- a/examples/file-upload-nextjs-pothos/CHANGELOG.md +++ b/examples/file-upload-nextjs-pothos/CHANGELOG.md @@ -1,5 +1,12 @@ # file-upload-nextjs-pothos +## 0.9.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.8.0 ### Patch Changes diff --git a/examples/file-upload-nextjs-pothos/package.json b/examples/file-upload-nextjs-pothos/package.json index 846877e97a..037f5e0dde 100644 --- a/examples/file-upload-nextjs-pothos/package.json +++ b/examples/file-upload-nextjs-pothos/package.json @@ -1,7 +1,7 @@ { "name": "file-upload-nextjs-pothos", "private": true, - "version": "0.8.0", + "version": "0.9.0", "scripts": { "dev": "next", "build": "next build", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@pothos/core": "3.5.0", "graphql": "16.3.0", "next": "12.1.4", diff --git a/examples/file-upload-nexus/CHANGELOG.md b/examples/file-upload-nexus/CHANGELOG.md index f3ab350724..2a0c15f5f0 100644 --- a/examples/file-upload-nexus/CHANGELOG.md +++ b/examples/file-upload-nexus/CHANGELOG.md @@ -1,5 +1,12 @@ # file-upload-nexus +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/file-upload-nexus/package.json b/examples/file-upload-nexus/package.json index 70437dafd0..dd113288af 100644 --- a/examples/file-upload-nexus/package.json +++ b/examples/file-upload-nexus/package.json @@ -1,13 +1,13 @@ { "name": "file-upload-nexus", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.1.0", "nexus": "^1.3.0" }, diff --git a/examples/file-upload/CHANGELOG.md b/examples/file-upload/CHANGELOG.md index 0d81688b2c..43e44cbd48 100644 --- a/examples/file-upload/CHANGELOG.md +++ b/examples/file-upload/CHANGELOG.md @@ -1,5 +1,12 @@ # file-upload +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/file-upload/package.json b/examples/file-upload/package.json index 38b8bc23d6..4c720a8064 100644 --- a/examples/file-upload/package.json +++ b/examples/file-upload/package.json @@ -1,13 +1,13 @@ { "name": "file-upload", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.1.0", "ts-node": "10.4.0" } diff --git a/examples/generic-auth/CHANGELOG.md b/examples/generic-auth/CHANGELOG.md index 1836d366da..e10bb2a1be 100644 --- a/examples/generic-auth/CHANGELOG.md +++ b/examples/generic-auth/CHANGELOG.md @@ -1,5 +1,12 @@ # example-generic-auth +## 1.7.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 1.6.0 ### Patch Changes diff --git a/examples/generic-auth/package.json b/examples/generic-auth/package.json index 42ae0f24da..912e29df52 100644 --- a/examples/generic-auth/package.json +++ b/examples/generic-auth/package.json @@ -1,6 +1,6 @@ { "name": "example-generic-auth", - "version": "1.6.0", + "version": "1.7.0", "private": true, "description": "", "scripts": { @@ -20,7 +20,7 @@ }, "dependencies": { "@envelop/generic-auth": "4.3.0", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.5.0" } } diff --git a/examples/graphql-config/CHANGELOG.md b/examples/graphql-config/CHANGELOG.md index 004e0419a5..258018ef37 100644 --- a/examples/graphql-config/CHANGELOG.md +++ b/examples/graphql-config/CHANGELOG.md @@ -1,5 +1,11 @@ # graphql-config-example +## 0.11.0 + +### Patch Changes + +- graphql-yoga@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/graphql-config/package.json b/examples/graphql-config/package.json index b717111aed..033d2aecdb 100644 --- a/examples/graphql-config/package.json +++ b/examples/graphql-config/package.json @@ -1,7 +1,7 @@ { "name": "graphql-config-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "generate-types": "graphql-codegen", "start": "yoga", @@ -13,7 +13,7 @@ "@graphql-codegen/typescript-resolvers": "^2.6.4", "@graphql-tools/schema": "^8.5.0", "graphql": "^16.1.0", - "graphql-yoga": "2.10.0" + "graphql-yoga": "2.11.0" }, "devDependencies": { "ts-node": "10.8.1", diff --git a/examples/graphql-ws/CHANGELOG.md b/examples/graphql-ws/CHANGELOG.md index 4953ebda5c..eeef8a34d7 100644 --- a/examples/graphql-ws/CHANGELOG.md +++ b/examples/graphql-ws/CHANGELOG.md @@ -1,5 +1,13 @@ # graphql-ws +## 0.8.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + - graphql-ws@0.8.0 + ## 0.7.0 ### Patch Changes diff --git a/examples/graphql-ws/package.json b/examples/graphql-ws/package.json index 0686bdb2ca..4b899d0252 100644 --- a/examples/graphql-ws/package.json +++ b/examples/graphql-ws/package.json @@ -1,15 +1,15 @@ { "name": "graphql-ws", "private": true, - "version": "0.7.0", + "version": "0.8.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.3.0", - "graphql-ws": "0.7.0", + "graphql-ws": "0.8.0", "ws": "8.5.0" }, "devDependencies": { diff --git a/examples/hackernews/CHANGELOG.md b/examples/hackernews/CHANGELOG.md index 4fab17c04a..87d0b138e8 100644 --- a/examples/hackernews/CHANGELOG.md +++ b/examples/hackernews/CHANGELOG.md @@ -1,5 +1,12 @@ # hackernews +## 1.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 1.10.0 ### Patch Changes diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 0a1b23e13e..0b8b1177c0 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -1,6 +1,6 @@ { "name": "hackernews", - "version": "1.10.0", + "version": "1.11.0", "private": true, "description": "", "scripts": { @@ -22,7 +22,7 @@ }, "dependencies": { "@graphql-tools/schema": "8.5.0", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.3.0" } } diff --git a/examples/hello-world/CHANGELOG.md b/examples/hello-world/CHANGELOG.md index ef63768676..4b77af3147 100644 --- a/examples/hello-world/CHANGELOG.md +++ b/examples/hello-world/CHANGELOG.md @@ -1,5 +1,12 @@ # hello-world +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index f13765fdcc..72aac3bf2c 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -1,13 +1,13 @@ { "name": "hello-world", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "node index.js", "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.1.0" } } diff --git a/examples/issue-template/CHANGELOG.md b/examples/issue-template/CHANGELOG.md index 032ea0a296..3c2b66cf35 100644 --- a/examples/issue-template/CHANGELOG.md +++ b/examples/issue-template/CHANGELOG.md @@ -1,5 +1,12 @@ # issue-template +## 1.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 1.10.0 ### Patch Changes diff --git a/examples/issue-template/package.json b/examples/issue-template/package.json index 095963782d..d95b002bb7 100644 --- a/examples/issue-template/package.json +++ b/examples/issue-template/package.json @@ -1,6 +1,6 @@ { "name": "issue-template", - "version": "1.10.0", + "version": "1.11.0", "private": true, "devDependencies": { "typescript": "4.7.4", @@ -8,7 +8,7 @@ "ts-node": "10.8.1" }, "dependencies": { - "@graphql-yoga/node": "^2.10.0", + "@graphql-yoga/node": "^2.11.0", "graphql": "^16.3.0" }, "scripts": { diff --git a/examples/koa/CHANGELOG.md b/examples/koa/CHANGELOG.md index 42ed0bee62..09b587d29e 100644 --- a/examples/koa/CHANGELOG.md +++ b/examples/koa/CHANGELOG.md @@ -1,5 +1,12 @@ # koa-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/koa/package.json b/examples/koa/package.json index cd685dfd81..8251426352 100644 --- a/examples/koa/package.json +++ b/examples/koa/package.json @@ -1,13 +1,13 @@ { "name": "koa-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@types/koa": "2.13.4", "koa": "2.13.4", "supertest": "^6.1.6" diff --git a/examples/live-query/CHANGELOG.md b/examples/live-query/CHANGELOG.md index 4aea7cc29c..ff361c56eb 100644 --- a/examples/live-query/CHANGELOG.md +++ b/examples/live-query/CHANGELOG.md @@ -1,5 +1,12 @@ # example-live-query +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/live-query/package.json b/examples/live-query/package.json index 224ab81347..6bfbf0208a 100644 --- a/examples/live-query/package.json +++ b/examples/live-query/package.json @@ -1,7 +1,7 @@ { "name": "example-live-query", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "start": "ts-node src/main.ts", "dev": "ts-node-dev src/main.ts", @@ -15,7 +15,7 @@ "dependencies": { "@envelop/live-query": "3.4.0", "@n1ru4l/in-memory-live-query-store": "0.9.0", - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "16.1.0" } } diff --git a/examples/nextjs-auth/CHANGELOG.md b/examples/nextjs-auth/CHANGELOG.md index c5d38526f3..7de929d302 100644 --- a/examples/nextjs-auth/CHANGELOG.md +++ b/examples/nextjs-auth/CHANGELOG.md @@ -1,5 +1,12 @@ # nextjs +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/nextjs-auth/package.json b/examples/nextjs-auth/package.json index 76a7f1c2f6..3d795e7d54 100644 --- a/examples/nextjs-auth/package.json +++ b/examples/nextjs-auth/package.json @@ -1,7 +1,7 @@ { "name": "nextjs-auth", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "dev": "next dev", "build": "next build", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@types/react": "17.0.39", "graphql": "^16.1.0", "next-auth": "4.3.1", diff --git a/examples/nextjs/CHANGELOG.md b/examples/nextjs/CHANGELOG.md index 3a3928b82a..023a876996 100644 --- a/examples/nextjs/CHANGELOG.md +++ b/examples/nextjs/CHANGELOG.md @@ -1,5 +1,12 @@ # nextjs +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 75b8fcd02b..47e0d2e0f1 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -1,7 +1,7 @@ { "name": "nextjs", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "dev": "next dev", "build": "next build", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "@types/react": "17.0.39", "graphql": "^16.1.0", "next": "12.0.7", diff --git a/examples/node-esm/CHANGELOG.md b/examples/node-esm/CHANGELOG.md index 9a3b89bc4e..e1ddb1dd61 100644 --- a/examples/node-esm/CHANGELOG.md +++ b/examples/node-esm/CHANGELOG.md @@ -1,5 +1,12 @@ # node-esm +## 0.10.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.9.0 ### Patch Changes diff --git a/examples/node-esm/package.json b/examples/node-esm/package.json index fca356b83a..6e048a432f 100644 --- a/examples/node-esm/package.json +++ b/examples/node-esm/package.json @@ -1,6 +1,6 @@ { "name": "node-esm", - "version": "0.9.0", + "version": "0.10.0", "private": true, "type": "module", "module": "index.mjs", @@ -10,7 +10,7 @@ "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "^16.3.0" } } diff --git a/examples/service-worker/CHANGELOG.md b/examples/service-worker/CHANGELOG.md index fee6ff5545..60e29c9c22 100644 --- a/examples/service-worker/CHANGELOG.md +++ b/examples/service-worker/CHANGELOG.md @@ -1,5 +1,12 @@ # service-worker +## 0.10.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 0.9.0 ### Patch Changes diff --git a/examples/service-worker/package.json b/examples/service-worker/package.json index b97c1c06b0..9de0b6298c 100644 --- a/examples/service-worker/package.json +++ b/examples/service-worker/package.json @@ -1,6 +1,6 @@ { "name": "service-worker", - "version": "0.9.0", + "version": "0.10.0", "private": true, "scripts": { "build": "wrangler publish --dry-run --outdir=dist", @@ -9,7 +9,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/common": "2.9.0", + "@graphql-yoga/common": "2.10.0", "graphql": "16.3.0" }, "devDependencies": { diff --git a/examples/subscriptions/CHANGELOG.md b/examples/subscriptions/CHANGELOG.md index 6a46393b7c..f0c13bded6 100644 --- a/examples/subscriptions/CHANGELOG.md +++ b/examples/subscriptions/CHANGELOG.md @@ -1,5 +1,12 @@ # subscriptions-example +## 0.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 0.10.0 ### Patch Changes diff --git a/examples/subscriptions/package.json b/examples/subscriptions/package.json index 48bc0f4f5e..6b2ee05302 100644 --- a/examples/subscriptions/package.json +++ b/examples/subscriptions/package.json @@ -1,14 +1,14 @@ { "name": "subscriptions-example", "private": true, - "version": "0.10.0", + "version": "0.11.0", "scripts": { "postinstall": "graphql-codegen --config codegen.yml", "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.10.0", + "@graphql-yoga/node": "2.11.0", "graphql": "^16.1.0" }, "devDependencies": { diff --git a/examples/sveltekit/CHANGELOG.md b/examples/sveltekit/CHANGELOG.md index 6d00639bad..b55c8a7ff7 100644 --- a/examples/sveltekit/CHANGELOG.md +++ b/examples/sveltekit/CHANGELOG.md @@ -1,5 +1,12 @@ # sveltekit +## 0.10.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 0.9.0 ### Patch Changes diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json index 689ce940fc..eb45805723 100644 --- a/examples/sveltekit/package.json +++ b/examples/sveltekit/package.json @@ -1,6 +1,6 @@ { "name": "sveltekit", - "version": "0.9.0", + "version": "0.10.0", "private": true, "scripts": { "prepare": "svelte-kit sync", @@ -35,7 +35,7 @@ }, "dependencies": { "@envelop/graphql-jit": "4.3.0", - "@graphql-yoga/common": "2.9.0", + "@graphql-yoga/common": "2.10.0", "graphql": "16.5.0" }, "type": "module" diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index bd8ca6ed27..8bb0f9aa0a 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,31 @@ # @graphql-yoga/common +## 2.10.0 + +### Minor Changes + +- 8947657: ## Correct status code for multipart request errors + + Return correct 413 (Request Entity Too Large) HTTP status code if the given request body is larger then the specified one in `multipart` options. + Previously it was returning 400 or 500 which is an incorrect behavior misleading the client. + + ## Possible to configure the HTTP status code and headers of the response + + Now we add a new `http` field to `GraphQLErrorExtensions` that you can set the status code and headers of the response; + + ```ts + throw new GraphQLError('You are not authorized to access this field', { + extensions: { + http: { + status: 401, + headers: { + 'WWW-Authenticate': 'Bearer', + }, + }, + }, + }) + ``` + ## 2.9.0 ### Minor Changes diff --git a/packages/common/package.json b/packages/common/package.json index e5f9c12502..931b17d560 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/common", - "version": "2.9.0", + "version": "2.10.0", "description": "", "repository": { "type": "git", diff --git a/packages/graphql-yoga/CHANGELOG.md b/packages/graphql-yoga/CHANGELOG.md index aeb89c887c..b37337db96 100644 --- a/packages/graphql-yoga/CHANGELOG.md +++ b/packages/graphql-yoga/CHANGELOG.md @@ -1,5 +1,12 @@ # graphql-yoga +## 2.11.0 + +### Patch Changes + +- Updated dependencies [8947657] + - @graphql-yoga/node@2.11.0 + ## 2.10.0 ### Minor Changes diff --git a/packages/graphql-yoga/package.json b/packages/graphql-yoga/package.json index 23e39d8fd9..9f2508e1e2 100644 --- a/packages/graphql-yoga/package.json +++ b/packages/graphql-yoga/package.json @@ -1,6 +1,6 @@ { "name": "graphql-yoga", - "version": "2.10.0", + "version": "2.11.0", "description": "", "repository": { "type": "git", @@ -54,7 +54,7 @@ "dependencies": { "@graphql-tools/code-file-loader": "^7.3.0", "@graphql-tools/mock": "^8.7.0", - "@graphql-yoga/node": "^2.10.0", + "@graphql-yoga/node": "^2.11.0", "graphql-config": "^4.1.0", "tslib": "^2.3.1", "yargs": "^17.3.0" diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 4bc026be89..bfdb007c37 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,5 +1,34 @@ # @graphql-yoga/node +## 2.11.0 + +### Patch Changes + +- 8947657: ## Correct status code for multipart request errors + + Return correct 413 (Request Entity Too Large) HTTP status code if the given request body is larger then the specified one in `multipart` options. + Previously it was returning 400 or 500 which is an incorrect behavior misleading the client. + + ## Possible to configure the HTTP status code and headers of the response + + Now we add a new `http` field to `GraphQLErrorExtensions` that you can set the status code and headers of the response; + + ```ts + throw new GraphQLError('You are not authorized to access this field', { + extensions: { + http: { + status: 401, + headers: { + 'WWW-Authenticate': 'Bearer', + }, + }, + }, + }) + ``` + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 2.10.0 ### Minor Changes diff --git a/packages/node/package.json b/packages/node/package.json index 57b56c4d59..a19ec65316 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/node", - "version": "2.10.0", + "version": "2.11.0", "description": "", "repository": { "type": "git", @@ -65,7 +65,7 @@ "dependencies": { "@envelop/core": "^2.4.0", "@graphql-tools/utils": "^8.8.0", - "@graphql-yoga/common": "^2.9.0", + "@graphql-yoga/common": "^2.10.0", "@graphql-yoga/subscription": "^2.1.0", "cross-undici-fetch": "^0.4.2", "tslib": "^2.3.1" diff --git a/packages/render-graphiql/CHANGELOG.md b/packages/render-graphiql/CHANGELOG.md index 567599831a..a6284a2c38 100644 --- a/packages/render-graphiql/CHANGELOG.md +++ b/packages/render-graphiql/CHANGELOG.md @@ -1,5 +1,12 @@ # @graphql-yoga/render-graphiql +## 2.11.0 + +### Minor Changes + +- Updated dependencies [8947657] + - @graphql-yoga/common@2.10.0 + ## 2.10.0 ### Minor Changes diff --git a/packages/render-graphiql/package.json b/packages/render-graphiql/package.json index 81a01bed76..6e9bbc8d53 100644 --- a/packages/render-graphiql/package.json +++ b/packages/render-graphiql/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/render-graphiql", - "version": "2.10.0", + "version": "2.11.0", "description": "", "repository": { "type": "git", @@ -64,7 +64,7 @@ "access": "public" }, "peerDependencies": { - "@graphql-yoga/common": "^2.9.0" + "@graphql-yoga/common": "^2.10.0" }, "type": "module" } diff --git a/website/package.json b/website/package.json index 17214be6a0..71f9fd920b 100644 --- a/website/package.json +++ b/website/package.json @@ -38,8 +38,8 @@ "@chakra-ui/utils": "^1.10.2", "@emotion/react": "^11.7.1", "@emotion/styled": "^11.6.0", - "@graphql-yoga/node": "2.10.0", - "@graphql-yoga/render-graphiql": "2.10.0", + "@graphql-yoga/node": "2.11.0", + "@graphql-yoga/render-graphiql": "2.11.0", "@guild-docs/client": "^3.0.2", "@guild-docs/server": "^4.0.0", "@mdx-js/react": "^2.1.1",