diff --git a/.changeset/pre.json b/.changeset/pre.json index 30eed87d5a..7ae3280a52 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -52,7 +52,28 @@ "@graphql-yoga/plugin-response-cache": "0.0.0", "@graphql-yoga/render-graphiql": "2.13.10", "@graphql-yoga/subscription": "2.2.3", - "website": "0.0.0" + "website": "0.0.0", + "example-deno": "0.0.0" }, - "changesets": [] + "changesets": [ + "bright-wasps-boil", + "chilly-rats-marry", + "chilly-windows-happen", + "curvy-oranges-heal", + "fifty-elephants-provide", + "grumpy-kangaroos-tell", + "happy-dolls-shout", + "healthy-waves-sing", + "hungry-knives-raise", + "long-ears-brake", + "more-accept-headers", + "nine-brooms-cough", + "pretty-cycles-wait", + "seven-tomatoes-invent", + "silent-ants-vanish", + "slow-wasps-hide", + "sour-apricots-move", + "tall-paws-do", + "twenty-poets-prove" + ] } diff --git a/benchmark/hello-world/CHANGELOG.md b/benchmark/hello-world/CHANGELOG.md index 364620781e..8027897b63 100644 --- a/benchmark/hello-world/CHANGELOG.md +++ b/benchmark/hello-world/CHANGELOG.md @@ -1,5 +1,12 @@ # hello-world-benchmark +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.13.11 ### Patch Changes diff --git a/benchmark/hello-world/package.json b/benchmark/hello-world/package.json index 67a49a1a1b..795ae7a350 100644 --- a/benchmark/hello-world/package.json +++ b/benchmark/hello-world/package.json @@ -1,6 +1,6 @@ { "name": "hello-world-benchmark", - "version": "0.13.11", + "version": "1.0.0-next.0", "private": true, "scripts": { "start": "node start-server.js", @@ -8,7 +8,7 @@ "check": "exit 0" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/apollo-federation/gateway/CHANGELOG.md b/examples/apollo-federation/gateway/CHANGELOG.md index 9e6ca35613..777c5221ea 100644 --- a/examples/apollo-federation/gateway/CHANGELOG.md +++ b/examples/apollo-federation/gateway/CHANGELOG.md @@ -1,5 +1,12 @@ # apollo-federation-gateway-with-yoga +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.13.11 ### Patch Changes diff --git a/examples/apollo-federation/gateway/package.json b/examples/apollo-federation/gateway/package.json index 1dab9ba863..6542189bf3 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.13.11", + "version": "1.0.0-next.0", "private": true, "scripts": { "start": "node index.js", @@ -9,7 +9,7 @@ "dependencies": { "@apollo/gateway": "^0.52.0", "@envelop/apollo-federation": "^2.5.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "^16.5.0" } } diff --git a/examples/apollo-federation/service/CHANGELOG.md b/examples/apollo-federation/service/CHANGELOG.md index b4990122f4..504b83b9f0 100644 --- a/examples/apollo-federation/service/CHANGELOG.md +++ b/examples/apollo-federation/service/CHANGELOG.md @@ -1,5 +1,12 @@ # apollo-subgraph-with-yoga +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.13.11 ### Patch Changes diff --git a/examples/apollo-federation/service/package.json b/examples/apollo-federation/service/package.json index c39e75cc3b..069a1d4e66 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.13.11", + "version": "1.0.0-next.0", "private": true, "scripts": { "start": "node index.js", @@ -8,7 +8,7 @@ }, "dependencies": { "@apollo/subgraph": "^0.5.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "^16.2.0" } } diff --git a/examples/aws-lambda/lambda/CHANGELOG.md b/examples/aws-lambda/lambda/CHANGELOG.md index 5e48661cac..20daa848a1 100644 --- a/examples/aws-lambda/lambda/CHANGELOG.md +++ b/examples/aws-lambda/lambda/CHANGELOG.md @@ -1,5 +1,12 @@ # graphql-lambda +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.13.11 ### Patch Changes diff --git a/examples/aws-lambda/lambda/package.json b/examples/aws-lambda/lambda/package.json index bc3eb1e61c..8b981e55d7 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.13.11", + "version": "1.0.0-next.0", "description": "", "main": "graphql.js", "scripts": { @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@vendia/serverless-express": "4.10.1", "graphql": "^16.3.0" } diff --git a/examples/azure-function/package.json b/examples/azure-function/package.json index 61bb732389..643684a43b 100644 --- a/examples/azure-function/package.json +++ b/examples/azure-function/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11" + "graphql-yoga": "3.0.0-next.0" }, "devDependencies": { "@azure/functions": "3.2.0", diff --git a/examples/bun/package.json b/examples/bun/package.json index f184a4a611..944d5acb82 100644 --- a/examples/bun/package.json +++ b/examples/bun/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "bun-types": "^0.1.5", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/cloudflare-advanced/CHANGELOG.md b/examples/cloudflare-advanced/CHANGELOG.md index 5c0a71a632..259b26d045 100644 --- a/examples/cloudflare-advanced/CHANGELOG.md +++ b/examples/cloudflare-advanced/CHANGELOG.md @@ -1,5 +1,12 @@ # cloudflare-advanced +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.7.10 ### Patch Changes diff --git a/examples/cloudflare-advanced/package.json b/examples/cloudflare-advanced/package.json index f104f47825..0dd476be56 100644 --- a/examples/cloudflare-advanced/package.json +++ b/examples/cloudflare-advanced/package.json @@ -1,13 +1,13 @@ { "name": "cloudflare-advanced", - "version": "0.7.10", + "version": "1.0.0-next.0", "private": true, "scripts": { "start": "wrangler dev", "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@cloudflare/workers-types": "^3.0.0", "graphql": "16.6.0" }, diff --git a/examples/cloudflare-modules/CHANGELOG.md b/examples/cloudflare-modules/CHANGELOG.md index 501a4e7a50..9135706f8d 100644 --- a/examples/cloudflare-modules/CHANGELOG.md +++ b/examples/cloudflare-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # cloudflare +## 1.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 0.4.10 ### Patch Changes diff --git a/examples/cloudflare-modules/package.json b/examples/cloudflare-modules/package.json index 5f8d0dfd39..c5518017d6 100644 --- a/examples/cloudflare-modules/package.json +++ b/examples/cloudflare-modules/package.json @@ -1,6 +1,6 @@ { "name": "cloudflare", - "version": "0.4.10", + "version": "1.0.0-next.0", "private": true, "type": "module", "module": "./dist/index.mjs", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" }, "devDependencies": { diff --git a/examples/defer-stream/package.json b/examples/defer-stream/package.json index 5374e56d4f..689c8cbc71 100644 --- a/examples/defer-stream/package.json +++ b/examples/defer-stream/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.0.0-experimental-stream-defer.5" }, "devDependencies": { diff --git a/examples/error-handling/package.json b/examples/error-handling/package.json index 7df4863912..2fc6337b30 100644 --- a/examples/error-handling/package.json +++ b/examples/error-handling/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@whatwg-node/fetch": "0.4.4", "graphql": "^16.1.0" }, diff --git a/examples/express/package.json b/examples/express/package.json index c774d888d5..d30530f496 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@types/express": "^4.17.13", "express": "^4.17.1", "supertest": "^6.1.6" diff --git a/examples/fastify-modules/package.json b/examples/fastify-modules/package.json index 9423dacf58..c600dd42a1 100644 --- a/examples/fastify-modules/package.json +++ b/examples/fastify-modules/package.json @@ -9,7 +9,7 @@ "dependencies": { "@envelop/graphql-modules": "3.6.0", "@graphql-tools/load-files": "6.6.1", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "fastify": "4.6.0", "graphql-modules": "2.1.0", "reflect-metadata": "0.1.13" diff --git a/examples/fastify/package.json b/examples/fastify/package.json index cb457a2865..734cc263d9 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "fastify": "4.6.0", "pino-pretty": "9.1.0" }, diff --git a/examples/file-upload-nextjs-pothos/package.json b/examples/file-upload-nextjs-pothos/package.json index f5cc4e27f3..afd4f4ed01 100644 --- a/examples/file-upload-nextjs-pothos/package.json +++ b/examples/file-upload-nextjs-pothos/package.json @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@pothos/core": "3.21.0", "graphql": "16.6.0", "next": "12.3.1", diff --git a/examples/file-upload-nexus/package.json b/examples/file-upload-nexus/package.json index fa39c57be1..788202543e 100644 --- a/examples/file-upload-nexus/package.json +++ b/examples/file-upload-nexus/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0", "nexus": "^1.3.0" }, diff --git a/examples/file-upload/package.json b/examples/file-upload/package.json index 7106763684..5637a8f311 100644 --- a/examples/file-upload/package.json +++ b/examples/file-upload/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0", "ts-node": "10.9.1" } diff --git a/examples/generic-auth/package.json b/examples/generic-auth/package.json index cbc9e31ca6..cb8338c91d 100644 --- a/examples/generic-auth/package.json +++ b/examples/generic-auth/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@envelop/generic-auth": "4.5.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/graphql-armor/package.json b/examples/graphql-armor/package.json index d2a6766d50..7bfc6fed7f 100644 --- a/examples/graphql-armor/package.json +++ b/examples/graphql-armor/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@escape.tech/graphql-armor": "1.2.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/graphql-config/package.json b/examples/graphql-config/package.json index 61d318ace7..365759303e 100644 --- a/examples/graphql-config/package.json +++ b/examples/graphql-config/package.json @@ -13,7 +13,7 @@ "@graphql-codegen/typescript-resolvers": "^2.6.4", "@graphql-tools/schema": "^9.0.0", "graphql": "^16.1.0", - "graphql-yoga": "2.13.11" + "graphql-yoga": "3.0.0-next.0" }, "devDependencies": { "ts-node": "10.9.1", diff --git a/examples/graphql-ws/package.json b/examples/graphql-ws/package.json index 473f8d72ec..e0176b1313 100644 --- a/examples/graphql-ws/package.json +++ b/examples/graphql-ws/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0", "graphql-ws": "5.11.1", "ws": "8.8.1" diff --git a/examples/hackernews/CHANGELOG.md b/examples/hackernews/CHANGELOG.md index 0cfd08faae..5da9d24505 100644 --- a/examples/hackernews/CHANGELOG.md +++ b/examples/hackernews/CHANGELOG.md @@ -1,5 +1,12 @@ # hackernews +## 2.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 1.13.11 ### Patch Changes diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 8d373b5d65..480503b3a8 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -1,6 +1,6 @@ { "name": "hackernews", - "version": "1.13.11", + "version": "2.0.0-next.0", "private": true, "description": "", "scripts": { @@ -21,7 +21,7 @@ "prisma": "3.15.2" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@graphql-tools/schema": "9.0.4", "graphql": "16.6.0" } diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index ea5e5e5235..ac48d887df 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -7,7 +7,7 @@ "check": "exit 0" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/issue-template/package.json b/examples/issue-template/package.json index f7d1a2e919..adc944bdd9 100644 --- a/examples/issue-template/package.json +++ b/examples/issue-template/package.json @@ -8,7 +8,7 @@ "ts-node": "10.9.1" }, "dependencies": { - "graphql-yoga": "^2.13.11", + "graphql-yoga": "^3.0.0-next.0", "graphql": "^16.3.0" }, "scripts": { diff --git a/examples/koa/package.json b/examples/koa/package.json index b2846c6b39..e4949cc7be 100644 --- a/examples/koa/package.json +++ b/examples/koa/package.json @@ -7,7 +7,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@types/koa": "2.13.5", "koa": "2.13.4", "supertest": "^6.1.6" diff --git a/examples/live-query/package.json b/examples/live-query/package.json index be105efeda..a728d66617 100644 --- a/examples/live-query/package.json +++ b/examples/live-query/package.json @@ -15,7 +15,7 @@ "dependencies": { "@envelop/live-query": "4.2.0", "@n1ru4l/in-memory-live-query-store": "0.10.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" } } diff --git a/examples/nextjs-auth/package.json b/examples/nextjs-auth/package.json index 6767084d2b..8598ca3954 100644 --- a/examples/nextjs-auth/package.json +++ b/examples/nextjs-auth/package.json @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "^16.1.0", "next-auth": "4.10.3", "next": "12.3.1", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index beeba1f926..b1edc6e76a 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -11,7 +11,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "@types/react": "17.0.50", "graphql": "^16.1.0", "next": "12.3.1", diff --git a/examples/node-esm/package.json b/examples/node-esm/package.json index fa88760b77..da2dfd29c9 100644 --- a/examples/node-esm/package.json +++ b/examples/node-esm/package.json @@ -10,7 +10,7 @@ "check": "exit 0" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "^16.3.0" } } diff --git a/examples/redis-pub-sub/package.json b/examples/redis-pub-sub/package.json index d5630e1a52..f8c999c5e0 100644 --- a/examples/redis-pub-sub/package.json +++ b/examples/redis-pub-sub/package.json @@ -19,8 +19,8 @@ "typescript": "4.8.3" }, "dependencies": { - "graphql-yoga": "2.13.11", - "@graphql-yoga/redis-event-target": "0.1.3", + "graphql-yoga": "3.0.0-next.0", + "@graphql-yoga/redis-event-target": "1.0.0-next.0", "graphql": "16.6.0", "ioredis": "5.2.3" }, diff --git a/examples/service-worker/package.json b/examples/service-worker/package.json index e83dab0ba9..fab017c905 100644 --- a/examples/service-worker/package.json +++ b/examples/service-worker/package.json @@ -9,7 +9,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" }, "devDependencies": { diff --git a/examples/subscriptions/package.json b/examples/subscriptions/package.json index 795283b3f6..3e2c2ae6c4 100644 --- a/examples/subscriptions/package.json +++ b/examples/subscriptions/package.json @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "^16.1.0" }, "devDependencies": { diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json index 893b1c62a9..8e9ea84b2c 100644 --- a/examples/sveltekit/package.json +++ b/examples/sveltekit/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "@envelop/graphql-jit": "4.6.0", - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "graphql": "16.6.0" }, "type": "module" diff --git a/packages/client/apollo-link/CHANGELOG.md b/packages/client/apollo-link/CHANGELOG.md new file mode 100644 index 0000000000..82a9d9f936 --- /dev/null +++ b/packages/client/apollo-link/CHANGELOG.md @@ -0,0 +1,7 @@ +# @graphql-yoga/apollo-link + +## 1.0.0-next.0 + +### Major Changes + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`87d1070a`](https://github.com/dotansimha/graphql-yoga/commit/87d1070a01e48f45d6afd7ee6b88faf8e5612297) Thanks [@saihaj](https://github.com/saihaj)! - New Apollo Link diff --git a/packages/client/apollo-link/package.json b/packages/client/apollo-link/package.json index 2db0b55d6e..14aaf03616 100644 --- a/packages/client/apollo-link/package.json +++ b/packages/client/apollo-link/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/apollo-link", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "", "repository": { "type": "git", diff --git a/packages/client/urql-exchange/CHANGELOG.md b/packages/client/urql-exchange/CHANGELOG.md new file mode 100644 index 0000000000..668c6e377f --- /dev/null +++ b/packages/client/urql-exchange/CHANGELOG.md @@ -0,0 +1,7 @@ +# @graphql-yoga/urql-exchange + +## 1.0.0-next.0 + +### Major Changes + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`87d1070a`](https://github.com/dotansimha/graphql-yoga/commit/87d1070a01e48f45d6afd7ee6b88faf8e5612297) Thanks [@saihaj](https://github.com/saihaj)! - New URQL Exchange diff --git a/packages/client/urql-exchange/package.json b/packages/client/urql-exchange/package.json index 522217ed8d..b9571dd28d 100644 --- a/packages/client/urql-exchange/package.json +++ b/packages/client/urql-exchange/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/urql-exchange", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index ef07b0d7a3..7e12b6a91a 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,30 @@ # @graphql-yoga/common +## 3.0.0-next.0 + +### Major Changes + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7) Thanks [@saihaj](https://github.com/saihaj)! - _Drop Node 12 Support_ + + GraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least. + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef) Thanks [@saihaj](https://github.com/saihaj)! - See the migration guide for more information; + + [Migration from Yoga V2](https://www.graphql-yoga.com/v3/migration/migration-from-yoga-v2) + +### Minor Changes + +- [#1359](https://github.com/dotansimha/graphql-yoga/pull/1359) [`5629a5cb`](https://github.com/dotansimha/graphql-yoga/commit/5629a5cb675291a0a152ca203611d88d1f45b1bf) Thanks [@ardatan](https://github.com/ardatan)! - New `setResult` helper is available in `onRequestParseDone` hook to set `ExecutionResult` before any GraphQL specific process. + + You can check `@graphql-yoga/plugin-response-cache`'s implementation to see how it can be useful. + + Also now `onResultProcess` and `useResultProcessor` hooks use generics to get more type-safety. + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 2.12.10 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index 5adf60c5dc..f81d67cdb6 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/common", - "version": "2.12.10", + "version": "3.0.0-next.0", "description": "", "repository": { "type": "git", @@ -64,7 +64,7 @@ "access": "public" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "tslib": "^2.3.1" }, "devDependencies": { diff --git a/packages/event-target/redis-event-target/CHANGELOG.md b/packages/event-target/redis-event-target/CHANGELOG.md index 71e20e7788..f316afe0df 100644 --- a/packages/event-target/redis-event-target/CHANGELOG.md +++ b/packages/event-target/redis-event-target/CHANGELOG.md @@ -1,5 +1,19 @@ # @graphql-yoga/redis-event-target +## 1.0.0-next.0 + +### Major Changes + +- [#1761](https://github.com/dotansimha/graphql-yoga/pull/1761) [`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8) Thanks [@ardatan](https://github.com/ardatan)! - **BREAKING**: + + - Drop `TypedEvent` in favor of [`CustomEvent`](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent) + - Use `@whatwg-node/events` as a ponyfill instead of `@whatwg-node/fetch` + +### Patch Changes + +- Updated dependencies [[`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8)]: + - @graphql-yoga/typed-event-target@1.0.0-next.0 + ## 0.1.3 ### Patch Changes diff --git a/packages/event-target/redis-event-target/package.json b/packages/event-target/redis-event-target/package.json index 29e955c212..1926295ae3 100644 --- a/packages/event-target/redis-event-target/package.json +++ b/packages/event-target/redis-event-target/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/redis-event-target", - "version": "0.1.3", + "version": "1.0.0-next.0", "description": "", "repository": { "type": "git", @@ -20,7 +20,7 @@ "license": "MIT", "dependencies": { "@whatwg-node/events": "0.0.2", - "@graphql-yoga/typed-event-target": "^0.1.1" + "@graphql-yoga/typed-event-target": "^1.0.0-next.0" }, "peerDependencies": { "ioredis": "^5.0.6" diff --git a/packages/event-target/typed-event-target/CHANGELOG.md b/packages/event-target/typed-event-target/CHANGELOG.md index 6589fdd2fd..8c49771df3 100644 --- a/packages/event-target/typed-event-target/CHANGELOG.md +++ b/packages/event-target/typed-event-target/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-yoga/typed-event-target +## 1.0.0-next.0 + +### Major Changes + +- [#1761](https://github.com/dotansimha/graphql-yoga/pull/1761) [`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8) Thanks [@ardatan](https://github.com/ardatan)! - **BREAKING**: + + - Drop `TypedEvent` in favor of [`CustomEvent`](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent) + - Use `@whatwg-node/events` as a ponyfill instead of `@whatwg-node/fetch` + ## 0.1.1 ### Patch Changes diff --git a/packages/event-target/typed-event-target/package.json b/packages/event-target/typed-event-target/package.json index a25347d068..f0520ebcb1 100644 --- a/packages/event-target/typed-event-target/package.json +++ b/packages/event-target/typed-event-target/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/typed-event-target", - "version": "0.1.1", + "version": "1.0.0-next.0", "description": "", "repository": { "type": "git", diff --git a/packages/graphql-yoga/CHANGELOG.md b/packages/graphql-yoga/CHANGELOG.md index e774907b4d..2295df4015 100644 --- a/packages/graphql-yoga/CHANGELOG.md +++ b/packages/graphql-yoga/CHANGELOG.md @@ -1,5 +1,75 @@ # graphql-yoga +## 3.0.0-next.0 + +### Major Changes + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7) Thanks [@saihaj](https://github.com/saihaj)! - _Drop Node 12 Support_ + + GraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least. + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef) Thanks [@saihaj](https://github.com/saihaj)! - See the migration guide for more information; + + [Migration from Yoga V2](https://www.graphql-yoga.com/v3/migration/migration-from-yoga-v2) + +- [#1753](https://github.com/dotansimha/graphql-yoga/pull/1753) [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089) Thanks [@ardatan](https://github.com/ardatan)! - `schema` no longer accepts an object of `typeDefs` and `resolvers` but instead you can use `createSchema` to create a GraphQL schema. + +- [#1516](https://github.com/dotansimha/graphql-yoga/pull/1516) [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4) Thanks [@ardatan](https://github.com/ardatan)! - Now it is possible to decide the returned `Content-Type` by specifying the `Accept` header. So if `Accept` header has `text/event-stream` without `application/json`, Yoga respects that returns `text/event-stream` instead of `application/json`. + +- [#1473](https://github.com/dotansimha/graphql-yoga/pull/1473) [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5) Thanks [@ardatan](https://github.com/ardatan)! - **BREAKING**: Remove `GraphQLYogaError` in favor of `GraphQLError` + [Check the documentation to see how to use `GraphQLError`](https://www.graphql-yoga.com/v3/guides/error-masking) + +### Minor Changes + +- [#1610](https://github.com/dotansimha/graphql-yoga/pull/1610) [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1) Thanks [@ardatan](https://github.com/ardatan)! - Pass the parsed request as-is and validate the final GraphQLParams in useCheckGraphQLParams + +- [#1497](https://github.com/dotansimha/graphql-yoga/pull/1497) [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d) Thanks [@ardatan](https://github.com/ardatan)! - Support a schema factory function that runs per request or a promise to be resolved before the first request. + + ```ts + createYoga({ + schema(request: Request) { + return getSchemaForToken(request.headers.get('x-my-token')) + }, + }) + ``` + + ```ts + async function buildSchemaAsync() { + const typeDefs = await fs.promises.readFile('./schema.graphql', 'utf8') + const resolvers = await import('./resolvers.js') + return makeExecutableSchema({ typeDefs, resolvers }) + } + + createYoga({ + schema: buildSchemaAsync(), + }) + ``` + +- [#1662](https://github.com/dotansimha/graphql-yoga/pull/1662) [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8) Thanks [@ardatan](https://github.com/ardatan)! - - Batching RFC support with `batchingLimit` option to enable batching with an exact limit of requests per batch. + - New `onParams` hook that takes a single `GraphQLParams` object + - Changes in `onRequestParse` and `onRequestParseDone` hook + - - Now `onRequestParseDone` receives the exact object that is passed by the request parser so it can be `GraphQLParams` or an array of `GraphQLParams` so use `onParams` if you need to manipulate batched execution params individually. + +### Patch Changes + +- [#1609](https://github.com/dotansimha/graphql-yoga/pull/1609) [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b) Thanks [@enisdenjo](https://github.com/enisdenjo)! - `usePreventMutationViaGET` doesn't do assertion if it is not `YogaContext`, so it is possible to use Yoga's Envelop instance with other server implementations like `graphql-ws`. + +- [#1567](https://github.com/dotansimha/graphql-yoga/pull/1567) [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Handle invalid POST body gracefully; - Reject `null` - Reject non-object body - Reject invalid JSON body + +- [#1609](https://github.com/dotansimha/graphql-yoga/pull/1609) [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Expose readonly `graphqlEndpoint` in `YogaServerInstance` + + ```ts + const yoga = createYoga({ + /*...*/ + }) + console.log(yoga.graphqlEndpoint) // /graphql by default + ``` + +- [#1616](https://github.com/dotansimha/graphql-yoga/pull/1616) [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152) Thanks [@ardatan](https://github.com/ardatan)! - Support `application/graphql-response+json` as `Accept`ed content type for the response + +- Updated dependencies [[`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8)]: + - @graphql-yoga/subscription@3.0.0-next.0 + ## 2.13.11 ### Patch Changes diff --git a/packages/graphql-yoga/package.json b/packages/graphql-yoga/package.json index e491646804..c9d17e6501 100644 --- a/packages/graphql-yoga/package.json +++ b/packages/graphql-yoga/package.json @@ -1,6 +1,6 @@ { "name": "graphql-yoga", - "version": "2.13.11", + "version": "3.0.0-next.0", "description": "", "repository": { "type": "git", @@ -60,7 +60,7 @@ "@envelop/validation-cache": "^4.6.0", "@graphql-typed-document-node/core": "^3.1.1", "@graphql-tools/schema": "^9.0.0", - "@graphql-yoga/subscription": "^2.2.2", + "@graphql-yoga/subscription": "^3.0.0-next.0", "@whatwg-node/fetch": "0.4.4", "@whatwg-node/server": "0.4.5", "dset": "^3.1.1", diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 7a6ee9c73c..ac196fd31e 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,5 +1,22 @@ # @graphql-yoga/node +## 3.0.0-next.0 + +### Major Changes + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7) Thanks [@saihaj](https://github.com/saihaj)! - _Drop Node 12 Support_ + + GraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least. + +- [#1660](https://github.com/dotansimha/graphql-yoga/pull/1660) [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef) Thanks [@saihaj](https://github.com/saihaj)! - See the migration guide for more information; + + [Migration from Yoga V2](https://www.graphql-yoga.com/v3/migration/migration-from-yoga-v2) + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 2.13.11 ### Patch Changes diff --git a/packages/node/package.json b/packages/node/package.json index 58efa4746a..7b5ec46330 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/node", - "version": "2.13.11", + "version": "3.0.0-next.0", "description": "", "repository": { "type": "git", @@ -63,7 +63,7 @@ "access": "public" }, "dependencies": { - "graphql-yoga": "2.13.11", + "graphql-yoga": "3.0.0-next.0", "tslib": "^2.3.1" }, "devDependencies": { diff --git a/packages/plugins/apollo-inline-trace/CHANGELOG.md b/packages/plugins/apollo-inline-trace/CHANGELOG.md new file mode 100644 index 0000000000..144fa2e7d5 --- /dev/null +++ b/packages/plugins/apollo-inline-trace/CHANGELOG.md @@ -0,0 +1,14 @@ +# @graphql-yoga/plugin-apollo-inline-trace + +## 1.0.0-next.0 + +### Major Changes + +- [#1621](https://github.com/dotansimha/graphql-yoga/pull/1621) [`66b87b02`](https://github.com/dotansimha/graphql-yoga/commit/66b87b020db8b563a4ff7a68b67ee73b9efef8df) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Implementation of Apollo's federated inline tracing + + [Learn more how to enable inline tracing in the docs](https://www.the-guild.dev/graphql/yoga-server/v3/features/apollo-federation#federated-tracing) + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 diff --git a/packages/plugins/apollo-inline-trace/package.json b/packages/plugins/apollo-inline-trace/package.json index fd94a7db4c..3c7e87b26a 100644 --- a/packages/plugins/apollo-inline-trace/package.json +++ b/packages/plugins/apollo-inline-trace/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/plugin-apollo-inline-trace", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "Apollo's federated tracing plugin for GraphQL Yoga.", "repository": { "type": "git", @@ -41,7 +41,7 @@ "access": "public" }, "peerDependencies": { - "graphql-yoga": "^2.13.11" + "graphql-yoga": "^3.0.0-next.0" }, "dependencies": { "@whatwg-node/fetch": "0.4.4", diff --git a/packages/plugins/apq/CHANGELOG.md b/packages/plugins/apq/CHANGELOG.md new file mode 100644 index 0000000000..420d5e5fed --- /dev/null +++ b/packages/plugins/apq/CHANGELOG.md @@ -0,0 +1,16 @@ +# @graphql-yoga/plugin-apq + +## 1.0.0-next.0 + +### Major Changes + +- [#1137](https://github.com/dotansimha/graphql-yoga/pull/1137) [`3eebe6f2`](https://github.com/dotansimha/graphql-yoga/commit/3eebe6f226e7eed847625b916918f06cb1dd2511) Thanks [@ardatan](https://github.com/ardatan)! - New Persisted Operations Plugin; + https://www.graphql-yoga.com/v3/features/persisted-operations + + New Automatic Persisted Queries Plugin; + https://www.graphql-yoga.com/v3/features/automatic-persisted-queries + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 diff --git a/packages/plugins/apq/package.json b/packages/plugins/apq/package.json index 47500f8142..d377e9e513 100644 --- a/packages/plugins/apq/package.json +++ b/packages/plugins/apq/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/plugin-apq", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "APQ plugin for GraphQL Yoga.", "repository": { "type": "git", @@ -44,7 +44,7 @@ "tiny-lru": "^9.0.0" }, "peerDependencies": { - "graphql-yoga": "^2.13.11" + "graphql-yoga": "^3.0.0-next.0" }, "type": "module" } diff --git a/packages/plugins/persisted-operations/CHANGELOG.md b/packages/plugins/persisted-operations/CHANGELOG.md new file mode 100644 index 0000000000..d6afa7861d --- /dev/null +++ b/packages/plugins/persisted-operations/CHANGELOG.md @@ -0,0 +1,16 @@ +# @graphql-yoga/plugin-persisted-operations + +## 1.0.0-next.0 + +### Major Changes + +- [#1137](https://github.com/dotansimha/graphql-yoga/pull/1137) [`3eebe6f2`](https://github.com/dotansimha/graphql-yoga/commit/3eebe6f226e7eed847625b916918f06cb1dd2511) Thanks [@ardatan](https://github.com/ardatan)! - New Persisted Operations Plugin; + https://www.graphql-yoga.com/v3/features/persisted-operations + + New Automatic Persisted Queries Plugin; + https://www.graphql-yoga.com/v3/features/automatic-persisted-queries + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 diff --git a/packages/plugins/persisted-operations/package.json b/packages/plugins/persisted-operations/package.json index ea400d5328..35ccc09e6d 100644 --- a/packages/plugins/persisted-operations/package.json +++ b/packages/plugins/persisted-operations/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/plugin-persisted-operations", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "Persisted Operations plugin for GraphQL Yoga.", "repository": { "type": "git", @@ -40,7 +40,7 @@ "access": "public" }, "peerDependencies": { - "graphql-yoga": "^2.13.11" + "graphql-yoga": "^3.0.0-next.0" }, "devDependencies": { "@types/lru-cache": "7.10.9" diff --git a/packages/plugins/response-cache/CHANGELOG.md b/packages/plugins/response-cache/CHANGELOG.md new file mode 100644 index 0000000000..322904f12b --- /dev/null +++ b/packages/plugins/response-cache/CHANGELOG.md @@ -0,0 +1,25 @@ +# @graphql-yoga/plugin-response-cache + +## 1.0.0-next.0 + +### Major Changes + +- [#1359](https://github.com/dotansimha/graphql-yoga/pull/1359) [`5629a5cb`](https://github.com/dotansimha/graphql-yoga/commit/5629a5cb675291a0a152ca203611d88d1f45b1bf) Thanks [@ardatan](https://github.com/ardatan)! - _New Response Cache Plugin!!!_ + + On top of [`@envelop/response-cache`](https://www.envelop.dev/plugins/use-response-cache), this new plugin allows you to skip execution phase even before all the GraphQL execution phases immediately after the GraphQL request parameters is parsed by Yoga. + + Also it doesn't need to have `documentString` stored in somewhere in order to get it back during the execution to generate the cache key. + + All the features of the same except for the following: + + - `session` factory function takes `GraphQLParams` and `Request` objects instead of GraphQL context as arguments. + + - `type SessionIdFactory = (params: GraphQLParams, request: Request) => Maybe` + + - `enabled` function takes `GraphQLParams` and `Request` objects instead of GraphQL context as arguments. + - `type EnabledFn = (params: GraphQLParams, request: Request) => boolean` + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 diff --git a/packages/plugins/response-cache/package.json b/packages/plugins/response-cache/package.json index 650d0be28b..6fe8fde071 100644 --- a/packages/plugins/response-cache/package.json +++ b/packages/plugins/response-cache/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/plugin-response-cache", - "version": "0.0.0", + "version": "1.0.0-next.0", "description": "", "repository": { "type": "git", @@ -53,7 +53,7 @@ }, "peerDependencies": { "graphql": "^15.2.0 || ^16.0.0", - "graphql-yoga": "^2.13.11" + "graphql-yoga": "^3.0.0-next.0" }, "type": "module" } diff --git a/packages/render-graphiql/CHANGELOG.md b/packages/render-graphiql/CHANGELOG.md index 7c6b519a0f..31c411ffaa 100644 --- a/packages/render-graphiql/CHANGELOG.md +++ b/packages/render-graphiql/CHANGELOG.md @@ -1,5 +1,12 @@ # @graphql-yoga/render-graphiql +## 3.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`2e0c4824`](https://github.com/dotansimha/graphql-yoga/commit/2e0c482418af2281c9cf0c34dd16f207d850cdb7), [`f46addd7`](https://github.com/dotansimha/graphql-yoga/commit/f46addd767f38bc3a48d796b0f2cb02c5f5668ef), [`f4b23387`](https://github.com/dotansimha/graphql-yoga/commit/f4b233876c2db52886eb5211b029377450fdb7f1), [`eeaced00`](https://github.com/dotansimha/graphql-yoga/commit/eeaced008fdd1b209d6db81f3351803f2a0a1089), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`e7a47b56`](https://github.com/dotansimha/graphql-yoga/commit/e7a47b56fbdf3abbb8f0d590ade867805a84157e), [`1d7f810a`](https://github.com/dotansimha/graphql-yoga/commit/1d7f810a8ee3fc00f6dbde461010683eb354da2d), [`209b1620`](https://github.com/dotansimha/graphql-yoga/commit/209b1620055cf64647943b1c334852a314aff3a4), [`098e139f`](https://github.com/dotansimha/graphql-yoga/commit/098e139f2b08196bfee04a71bcd024501dceacd8), [`74e1f830`](https://github.com/dotansimha/graphql-yoga/commit/74e1f830b09bc21a970f7468af1363a22b8b592b), [`c4b3a9c8`](https://github.com/dotansimha/graphql-yoga/commit/c4b3a9c8031f7b61420bb9cdc4bc6e7fc22615a5), [`1d5cde96`](https://github.com/dotansimha/graphql-yoga/commit/1d5cde96ce5b7647de7d329f9f56e398463a9152)]: + - graphql-yoga@3.0.0-next.0 + ## 2.13.10 ### Patch Changes diff --git a/packages/render-graphiql/package.json b/packages/render-graphiql/package.json index cee949d3c6..f5185122a1 100644 --- a/packages/render-graphiql/package.json +++ b/packages/render-graphiql/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/render-graphiql", - "version": "2.13.10", + "version": "3.0.0-next.0", "description": "", "repository": { "type": "git", @@ -64,7 +64,7 @@ "access": "public" }, "peerDependencies": { - "graphql-yoga": "^2.13.11" + "graphql-yoga": "^3.0.0-next.0" }, "type": "module" } diff --git a/packages/subscription/CHANGELOG.md b/packages/subscription/CHANGELOG.md index 837e27eeb0..beb4c1f17c 100644 --- a/packages/subscription/CHANGELOG.md +++ b/packages/subscription/CHANGELOG.md @@ -1,5 +1,19 @@ # @graphql-yoga/subscription +## 3.0.0-next.0 + +### Major Changes + +- [#1761](https://github.com/dotansimha/graphql-yoga/pull/1761) [`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8) Thanks [@ardatan](https://github.com/ardatan)! - **BREAKING**: + + - Drop `TypedEvent` in favor of [`CustomEvent`](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent) + - Use `@whatwg-node/events` as a ponyfill instead of `@whatwg-node/fetch` + +### Patch Changes + +- Updated dependencies [[`b2407c6a`](https://github.com/dotansimha/graphql-yoga/commit/b2407c6addab136e3390bd4efa1fbbad7eb8dab8)]: + - @graphql-yoga/typed-event-target@1.0.0-next.0 + ## 2.2.3 ### Patch Changes diff --git a/packages/subscription/package.json b/packages/subscription/package.json index c6d955c1ab..e28f1f9f29 100644 --- a/packages/subscription/package.json +++ b/packages/subscription/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/subscription", - "version": "2.2.3", + "version": "3.0.0-next.0", "description": "", "repository": { "type": "git", @@ -60,7 +60,7 @@ "access": "public" }, "dependencies": { - "@graphql-yoga/typed-event-target": "^0.1.1", + "@graphql-yoga/typed-event-target": "^1.0.0-next.0", "@whatwg-node/events": "0.0.2", "@repeaterjs/repeater": "^3.0.4", "tslib": "^2.3.1"