From 89adf4b488fd30d00088b1b28a6f25aa1dedafe1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Apr 2022 02:06:50 +0000 Subject: [PATCH] chore(release): update monorepo packages versions --- .changeset/long-ducks-explain.md | 5 ---- .changeset/moody-birds-sleep.md | 19 --------------- .changeset/odd-fans-search.md | 15 ------------ benchmark/hello-world/CHANGELOG.md | 7 ++++++ benchmark/hello-world/package.json | 4 ++-- .../apollo-federation/gateway/CHANGELOG.md | 7 ++++++ .../apollo-federation/gateway/package.json | 4 ++-- .../apollo-federation/service/CHANGELOG.md | 7 ++++++ .../apollo-federation/service/package.json | 4 ++-- examples/aws-lambda/lambda/CHANGELOG.md | 7 ++++++ examples/aws-lambda/lambda/package.json | 4 ++-- examples/defer-stream/CHANGELOG.md | 7 ++++++ examples/defer-stream/package.json | 4 ++-- examples/error-handling/CHANGELOG.md | 7 ++++++ examples/error-handling/package.json | 4 ++-- examples/express/CHANGELOG.md | 7 ++++++ examples/express/package.json | 4 ++-- examples/fastify-modules/CHANGELOG.md | 7 ++++++ examples/fastify-modules/package.json | 4 ++-- examples/fastify/CHANGELOG.md | 7 ++++++ examples/fastify/package.json | 4 ++-- examples/file-upload-nexus/CHANGELOG.md | 7 ++++++ examples/file-upload-nexus/package.json | 4 ++-- examples/file-upload/CHANGELOG.md | 7 ++++++ examples/file-upload/package.json | 4 ++-- examples/graphql-config/CHANGELOG.md | 6 +++++ examples/graphql-config/package.json | 4 ++-- examples/hackernews/CHANGELOG.md | 7 ++++++ examples/hackernews/package.json | 4 ++-- examples/hello-world/CHANGELOG.md | 7 ++++++ examples/hello-world/package.json | 4 ++-- examples/issue-template/CHANGELOG.md | 7 ++++++ examples/issue-template/package.json | 4 ++-- examples/koa/CHANGELOG.md | 7 ++++++ examples/koa/package.json | 4 ++-- examples/live-query/CHANGELOG.md | 7 ++++++ examples/live-query/package.json | 4 ++-- examples/nextjs-auth/CHANGELOG.md | 7 ++++++ examples/nextjs-auth/package.json | 4 ++-- examples/nextjs/CHANGELOG.md | 7 ++++++ examples/nextjs/package.json | 4 ++-- examples/node-esm/CHANGELOG.md | 8 +++++++ examples/node-esm/package.json | 4 ++-- examples/service-worker/CHANGELOG.md | 8 +++++++ examples/service-worker/package.json | 4 ++-- examples/subscriptions/CHANGELOG.md | 7 ++++++ examples/subscriptions/package.json | 4 ++-- examples/sveltekit/CHANGELOG.md | 8 +++++++ examples/sveltekit/package.json | 4 ++-- packages/common/CHANGELOG.md | 24 +++++++++++++++++++ packages/common/package.json | 2 +- packages/graphql-yoga/CHANGELOG.md | 7 ++++++ packages/graphql-yoga/package.json | 4 ++-- packages/node/CHANGELOG.md | 20 ++++++++++++++++ packages/node/package.json | 4 ++-- packages/render-graphiql/CHANGELOG.md | 8 +++++++ packages/render-graphiql/package.json | 4 ++-- website/package.json | 4 ++-- 58 files changed, 277 insertions(+), 94 deletions(-) delete mode 100644 .changeset/long-ducks-explain.md delete mode 100644 .changeset/moody-birds-sleep.md delete mode 100644 .changeset/odd-fans-search.md create mode 100644 examples/node-esm/CHANGELOG.md diff --git a/.changeset/long-ducks-explain.md b/.changeset/long-ducks-explain.md deleted file mode 100644 index a4c8dbc932..0000000000 --- a/.changeset/long-ducks-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-yoga/common': patch ---- - -Avoid extra usages of URL constructor which has some performance implications on Node diff --git a/.changeset/moody-birds-sleep.md b/.changeset/moody-birds-sleep.md deleted file mode 100644 index 1bb306413a..0000000000 --- a/.changeset/moody-birds-sleep.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@graphql-yoga/common': minor ---- - -new option `fetchAPI` has been added; - -User can provide a custom Fetch implementation to Yoga like below; - -```ts -import { fetch, Request, Response, ReadableStream } from 'my-ponyfill' -createServer({ - fetchAPI: { - fetch, - Request, - Response, - ReadableStream, - }, -}) -``` diff --git a/.changeset/odd-fans-search.md b/.changeset/odd-fans-search.md deleted file mode 100644 index c0c8dd6326..0000000000 --- a/.changeset/odd-fans-search.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@graphql-yoga/node': patch ---- - -Use node-fetch by default instead of undici. As discussed in https://github.com/nodejs/undici/issues/1203, `undici`'s fetch implementation has some performance issues compared to `node-fetch` v2. - -So Yoga now uses `node-fetch` by default which doesn't affect the existing users. User can configure `cross-undici-fetch` to revert back this behavior; - -```ts -import { create } from 'cross-undici-fetch' - -createServer({ - fetchAPI: create({ useNodeFetch: false }), -}) -``` diff --git a/benchmark/hello-world/CHANGELOG.md b/benchmark/hello-world/CHANGELOG.md index 189068660c..50383fef4d 100644 --- a/benchmark/hello-world/CHANGELOG.md +++ b/benchmark/hello-world/CHANGELOG.md @@ -1,5 +1,12 @@ # hello-world-benchmark +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/benchmark/hello-world/package.json b/benchmark/hello-world/package.json index 723dba9e8b..17c0098f95 100644 --- a/benchmark/hello-world/package.json +++ b/benchmark/hello-world/package.json @@ -1,6 +1,6 @@ { "name": "hello-world-benchmark", - "version": "0.1.0", + "version": "0.2.0", "private": true, "scripts": { "start": "node start-server.js", @@ -8,7 +8,7 @@ "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.3.0", "wait-on": "6.0.1" } diff --git a/examples/apollo-federation/gateway/CHANGELOG.md b/examples/apollo-federation/gateway/CHANGELOG.md index b8a57f74cc..f448f8f60a 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.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/apollo-federation/gateway/package.json b/examples/apollo-federation/gateway/package.json index 5f4481b62a..0d9b0a7d3d 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.1.0", + "version": "0.2.0", "private": true, "scripts": { "start": "node index.js", @@ -9,7 +9,7 @@ "dependencies": { "@apollo/gateway": "^0.45.1", "@envelop/apollo-federation": "^2.0.0", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "^15.5.3" } } diff --git a/examples/apollo-federation/service/CHANGELOG.md b/examples/apollo-federation/service/CHANGELOG.md index 1acd36b91e..e56328ea84 100644 --- a/examples/apollo-federation/service/CHANGELOG.md +++ b/examples/apollo-federation/service/CHANGELOG.md @@ -1,5 +1,12 @@ # apollo-subgraph-with-yoga +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/apollo-federation/service/package.json b/examples/apollo-federation/service/package.json index 778780d449..f0678b9be1 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.1.0", + "version": "0.2.0", "private": true, "scripts": { "start": "node index.js", @@ -8,7 +8,7 @@ }, "dependencies": { "@apollo/subgraph": "^0.1.5", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "^16.2.0" } } diff --git a/examples/aws-lambda/lambda/CHANGELOG.md b/examples/aws-lambda/lambda/CHANGELOG.md index 663041912b..c416e23380 100644 --- a/examples/aws-lambda/lambda/CHANGELOG.md +++ b/examples/aws-lambda/lambda/CHANGELOG.md @@ -1,5 +1,12 @@ # graphql-lambda +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/aws-lambda/lambda/package.json b/examples/aws-lambda/lambda/package.json index 1319167651..8708204ea7 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.1.0", + "version": "0.2.0", "description": "", "main": "graphql.js", "scripts": { @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "@vendia/serverless-express": "4.5.4", "graphql": "^16.3.0" } diff --git a/examples/defer-stream/CHANGELOG.md b/examples/defer-stream/CHANGELOG.md index 754e4cba88..0dd690416d 100644 --- a/examples/defer-stream/CHANGELOG.md +++ b/examples/defer-stream/CHANGELOG.md @@ -1,5 +1,12 @@ # defer-stream-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/defer-stream/package.json b/examples/defer-stream/package.json index 1ef5e9a44b..b078651cc8 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.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.0.0-experimental-stream-defer.5", "ts-node": "10.4.0", "typescript": "^4.4.4" diff --git a/examples/error-handling/CHANGELOG.md b/examples/error-handling/CHANGELOG.md index a463421ff9..d4d7baf229 100644 --- a/examples/error-handling/CHANGELOG.md +++ b/examples/error-handling/CHANGELOG.md @@ -1,5 +1,12 @@ # error-masking-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/error-handling/package.json b/examples/error-handling/package.json index 9d9e69e0d1..82f352fbbd 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.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "cross-undici-fetch": "^0.2.4", "graphql": "^16.1.0", "ts-node": "10.4.0", diff --git a/examples/express/CHANGELOG.md b/examples/express/CHANGELOG.md index ab9ddf68a2..e292ecad9f 100644 --- a/examples/express/CHANGELOG.md +++ b/examples/express/CHANGELOG.md @@ -1,5 +1,12 @@ # express-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/express/package.json b/examples/express/package.json index 440af8dc6f..41468e4fdc 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -1,13 +1,13 @@ { "name": "express-example", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.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 0915862ae7..6e9e0f43bb 100644 --- a/examples/fastify-modules/CHANGELOG.md +++ b/examples/fastify-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # fastify-modules-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/fastify-modules/package.json b/examples/fastify-modules/package.json index a2c025b292..d18ed0d24a 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.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" @@ -9,7 +9,7 @@ "dependencies": { "@envelop/graphql-modules": "2.0.0", "@graphql-tools/load-files": "6.5.3", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "fastify": "3.24.1", "graphql-modules": "2.0.0", "reflect-metadata": "0.1.13", diff --git a/examples/fastify/CHANGELOG.md b/examples/fastify/CHANGELOG.md index 8c5437f227..2eb8fb98df 100644 --- a/examples/fastify/CHANGELOG.md +++ b/examples/fastify/CHANGELOG.md @@ -1,5 +1,12 @@ # fastify-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/fastify/package.json b/examples/fastify/package.json index 4651e25507..9db79b26a0 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -1,13 +1,13 @@ { "name": "fastify-example", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "fastify": "3.24.1", "ts-node": "10.4.0", "typescript": "4.5.2" diff --git a/examples/file-upload-nexus/CHANGELOG.md b/examples/file-upload-nexus/CHANGELOG.md index 1525ed87ca..9fd1f6c7eb 100644 --- a/examples/file-upload-nexus/CHANGELOG.md +++ b/examples/file-upload-nexus/CHANGELOG.md @@ -1,5 +1,12 @@ # file-upload-nexus +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/file-upload-nexus/package.json b/examples/file-upload-nexus/package.json index 78658caab2..876a945cab 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.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.1.0", "nexus": "^1.3.0", "ts-node": "10.4.0", diff --git a/examples/file-upload/CHANGELOG.md b/examples/file-upload/CHANGELOG.md index 8b18d85879..75b8606cf4 100644 --- a/examples/file-upload/CHANGELOG.md +++ b/examples/file-upload/CHANGELOG.md @@ -1,5 +1,12 @@ # file-upload +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/file-upload/package.json b/examples/file-upload/package.json index 87a94c3e95..9ee1929536 100644 --- a/examples/file-upload/package.json +++ b/examples/file-upload/package.json @@ -1,13 +1,13 @@ { "name": "file-upload", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.1.0", "ts-node": "10.4.0", "typescript": "4.5.2" diff --git a/examples/graphql-config/CHANGELOG.md b/examples/graphql-config/CHANGELOG.md index 37ac34c9ea..789a993897 100644 --- a/examples/graphql-config/CHANGELOG.md +++ b/examples/graphql-config/CHANGELOG.md @@ -1,5 +1,11 @@ # graphql-config-example +## 0.2.0 + +### Patch Changes + +- graphql-yoga@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/graphql-config/package.json b/examples/graphql-config/package.json index 016a97712f..f60943086c 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.1.0", + "version": "0.2.0", "scripts": { "generate-types": "graphql-codegen", "start": "yoga", @@ -13,7 +13,7 @@ "@graphql-codegen/typescript-resolvers": "^2.4.2", "@graphql-tools/schema": "^8.3.1", "graphql": "^16.1.0", - "graphql-yoga": "2.1.0", + "graphql-yoga": "2.2.0", "ts-node": "^10.4.0", "typescript": "^4.5.4" } diff --git a/examples/hackernews/CHANGELOG.md b/examples/hackernews/CHANGELOG.md index 1256343ee1..1c963f6972 100644 --- a/examples/hackernews/CHANGELOG.md +++ b/examples/hackernews/CHANGELOG.md @@ -1,5 +1,12 @@ # hackernews +## 1.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 1.1.0 ### Patch Changes diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 90b1a78924..a643ee36b5 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -1,6 +1,6 @@ { "name": "hackernews", - "version": "1.1.0", + "version": "1.2.0", "private": true, "description": "", "scripts": { @@ -22,7 +22,7 @@ }, "dependencies": { "@graphql-tools/schema": "8.3.1", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.3.0" } } diff --git a/examples/hello-world/CHANGELOG.md b/examples/hello-world/CHANGELOG.md index 8788e52631..2d6b14e440 100644 --- a/examples/hello-world/CHANGELOG.md +++ b/examples/hello-world/CHANGELOG.md @@ -1,5 +1,12 @@ # hello-world +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index 89d51031d3..12447bbad9 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -1,13 +1,13 @@ { "name": "hello-world", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "start": "node index.js", "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.1.0" } } diff --git a/examples/issue-template/CHANGELOG.md b/examples/issue-template/CHANGELOG.md index 102d44819e..af9ece64e5 100644 --- a/examples/issue-template/CHANGELOG.md +++ b/examples/issue-template/CHANGELOG.md @@ -1,5 +1,12 @@ # issue-template +## 1.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 1.1.0 ### Patch Changes diff --git a/examples/issue-template/package.json b/examples/issue-template/package.json index efa386b8ac..3bd6892790 100644 --- a/examples/issue-template/package.json +++ b/examples/issue-template/package.json @@ -1,6 +1,6 @@ { "name": "issue-template", - "version": "1.1.0", + "version": "1.2.0", "private": true, "devDependencies": { "typescript": "^4.6.3", @@ -8,7 +8,7 @@ "ts-node": "^10.7.0" }, "dependencies": { - "@graphql-yoga/node": "^2.1.0", + "@graphql-yoga/node": "^2.2.0", "graphql": "^16.3.0" }, "scripts": { diff --git a/examples/koa/CHANGELOG.md b/examples/koa/CHANGELOG.md index 07de4938d8..f9ffa0d780 100644 --- a/examples/koa/CHANGELOG.md +++ b/examples/koa/CHANGELOG.md @@ -1,5 +1,12 @@ # koa-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/koa/package.json b/examples/koa/package.json index d0beed78cd..e64248af00 100644 --- a/examples/koa/package.json +++ b/examples/koa/package.json @@ -1,13 +1,13 @@ { "name": "koa-example", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.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 cc627671b9..b846267efb 100644 --- a/examples/live-query/CHANGELOG.md +++ b/examples/live-query/CHANGELOG.md @@ -1,5 +1,12 @@ # example-live-query +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/live-query/package.json b/examples/live-query/package.json index ed9f7c826b..8a2d84c67b 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.1.0", + "version": "0.2.0", "scripts": { "start": "ts-node src/main.ts", "dev": "ts-node-dev src/main.ts", @@ -15,7 +15,7 @@ "dependencies": { "@envelop/live-query": "3.3.0", "@n1ru4l/in-memory-live-query-store": "0.9.0", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "16.1.0" } } diff --git a/examples/nextjs-auth/CHANGELOG.md b/examples/nextjs-auth/CHANGELOG.md index 4f485208af..9333f0b511 100644 --- a/examples/nextjs-auth/CHANGELOG.md +++ b/examples/nextjs-auth/CHANGELOG.md @@ -1,5 +1,12 @@ # nextjs +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/nextjs-auth/package.json b/examples/nextjs-auth/package.json index e9c227e45a..93a68efb1a 100644 --- a/examples/nextjs-auth/package.json +++ b/examples/nextjs-auth/package.json @@ -1,7 +1,7 @@ { "name": "nextjs-auth", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "dev": "next dev", "build": "next build", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "@types/react": "17.0.38", "graphql": "^16.1.0", "next-auth": "4.3.1", diff --git a/examples/nextjs/CHANGELOG.md b/examples/nextjs/CHANGELOG.md index b33a3dc164..7e1f1cf4c6 100644 --- a/examples/nextjs/CHANGELOG.md +++ b/examples/nextjs/CHANGELOG.md @@ -1,5 +1,12 @@ # nextjs +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index d91c1519b8..8172caae10 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -1,7 +1,7 @@ { "name": "nextjs", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "dev": "next dev", "build": "next build", @@ -10,7 +10,7 @@ "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "@types/react": "17.0.38", "graphql": "^16.1.0", "next": "12.0.7", diff --git a/examples/node-esm/CHANGELOG.md b/examples/node-esm/CHANGELOG.md new file mode 100644 index 0000000000..cc90d010bd --- /dev/null +++ b/examples/node-esm/CHANGELOG.md @@ -0,0 +1,8 @@ +# node-esm + +## 0.1.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 diff --git a/examples/node-esm/package.json b/examples/node-esm/package.json index 3b80e51c92..e55cd898e2 100644 --- a/examples/node-esm/package.json +++ b/examples/node-esm/package.json @@ -1,6 +1,6 @@ { "name": "node-esm", - "version": "0.0.0", + "version": "0.1.0", "private": true, "type": "module", "module": "index.mjs", @@ -10,7 +10,7 @@ "check": "exit 0" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "^16.3.0" } } diff --git a/examples/service-worker/CHANGELOG.md b/examples/service-worker/CHANGELOG.md index f664a2373a..e9711d1d97 100644 --- a/examples/service-worker/CHANGELOG.md +++ b/examples/service-worker/CHANGELOG.md @@ -1,5 +1,13 @@ # service-worker +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] +- Updated dependencies [1d4fe42] + - @graphql-yoga/common@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/service-worker/package.json b/examples/service-worker/package.json index 4400d4684b..a9f9caf113 100644 --- a/examples/service-worker/package.json +++ b/examples/service-worker/package.json @@ -1,13 +1,13 @@ { "name": "service-worker", - "version": "0.1.0", + "version": "0.2.0", "private": true, "scripts": { "start": "wrangler dev", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/common": "2.1.0", + "@graphql-yoga/common": "2.2.0", "graphql": "16.3.0" }, "devDependencies": { diff --git a/examples/subscriptions/CHANGELOG.md b/examples/subscriptions/CHANGELOG.md index 54102b10c0..be721868e3 100644 --- a/examples/subscriptions/CHANGELOG.md +++ b/examples/subscriptions/CHANGELOG.md @@ -1,5 +1,12 @@ # subscriptions-example +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/subscriptions/package.json b/examples/subscriptions/package.json index c8db46c3e1..1aa4c36883 100644 --- a/examples/subscriptions/package.json +++ b/examples/subscriptions/package.json @@ -1,14 +1,14 @@ { "name": "subscriptions-example", "private": true, - "version": "0.1.0", + "version": "0.2.0", "scripts": { "postinstall": "graphql-codegen --config codegen.yml", "start": "ts-node src/index.ts", "check": "tsc --pretty --noEmit" }, "dependencies": { - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.0", "graphql": "^16.1.0", "ts-node": "10.4.0", "typescript": "^4.4.4" diff --git a/examples/sveltekit/CHANGELOG.md b/examples/sveltekit/CHANGELOG.md index 2c897a67a6..6554c7b00a 100644 --- a/examples/sveltekit/CHANGELOG.md +++ b/examples/sveltekit/CHANGELOG.md @@ -1,5 +1,13 @@ # sveltekit +## 0.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] +- Updated dependencies [1d4fe42] + - @graphql-yoga/common@2.2.0 + ## 0.1.0 ### Patch Changes diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json index 18956f4578..7be5177bf5 100644 --- a/examples/sveltekit/package.json +++ b/examples/sveltekit/package.json @@ -1,6 +1,6 @@ { "name": "sveltekit", - "version": "0.1.0", + "version": "0.2.0", "private": true, "scripts": { "dev": "svelte-kit dev", @@ -30,7 +30,7 @@ }, "dependencies": { "@envelop/graphql-jit": "^3.0.0", - "@graphql-yoga/common": "2.1.0", + "@graphql-yoga/common": "2.2.0", "graphql": "^16.2.0" }, "type": "module" diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index bd691dcbcc..660e5b5202 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,29 @@ # @graphql-yoga/common +## 2.2.0 + +### Minor Changes + +- 1d4fe42: new option `fetchAPI` has been added; + + User can provide a custom Fetch implementation to Yoga like below; + + ```ts + import { fetch, Request, Response, ReadableStream } from 'my-ponyfill' + createServer({ + fetchAPI: { + fetch, + Request, + Response, + ReadableStream, + }, + }) + ``` + +### Patch Changes + +- 1d4fe42: Avoid extra usages of URL constructor which has some performance implications on Node + ## 2.1.0 ### Minor Changes diff --git a/packages/common/package.json b/packages/common/package.json index 1a2613bb73..1180db5cc0 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/common", - "version": "2.1.0", + "version": "2.2.0", "description": "", "repository": { "type": "git", diff --git a/packages/graphql-yoga/CHANGELOG.md b/packages/graphql-yoga/CHANGELOG.md index 519dbe2cbe..e60d656fd5 100644 --- a/packages/graphql-yoga/CHANGELOG.md +++ b/packages/graphql-yoga/CHANGELOG.md @@ -1,5 +1,12 @@ # graphql-yoga +## 2.2.0 + +### Patch Changes + +- Updated dependencies [1d4fe42] + - @graphql-yoga/node@2.2.0 + ## 2.1.0 ### Patch Changes diff --git a/packages/graphql-yoga/package.json b/packages/graphql-yoga/package.json index 8bf1861424..b520502fcd 100644 --- a/packages/graphql-yoga/package.json +++ b/packages/graphql-yoga/package.json @@ -1,6 +1,6 @@ { "name": "graphql-yoga", - "version": "2.1.0", + "version": "2.2.0", "description": "", "repository": { "type": "git", @@ -55,7 +55,7 @@ "dependencies": { "@graphql-tools/code-file-loader": "^7.2.3", "@graphql-tools/mock": "^8.6.3", - "@graphql-yoga/node": "2.1.0", + "@graphql-yoga/node": "2.2.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 19628baf42..49daeb4d71 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,5 +1,25 @@ # @graphql-yoga/node +## 2.2.0 + +### Patch Changes + +- 1d4fe42: Use node-fetch by default instead of undici. As discussed in https://github.com/nodejs/undici/issues/1203, `undici`'s fetch implementation has some performance issues compared to `node-fetch` v2. + + So Yoga now uses `node-fetch` by default which doesn't affect the existing users. User can configure `cross-undici-fetch` to revert back this behavior; + + ```ts + import { create } from 'cross-undici-fetch' + + createServer({ + fetchAPI: create({ useNodeFetch: false }), + }) + ``` + +- Updated dependencies [1d4fe42] +- Updated dependencies [1d4fe42] + - @graphql-yoga/common@2.2.0 + ## 2.1.0 ### Minor Changes diff --git a/packages/node/package.json b/packages/node/package.json index 650deb49d4..4465f20f27 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/node", - "version": "2.1.0", + "version": "2.2.0", "description": "", "repository": { "type": "git", @@ -45,7 +45,7 @@ "dependencies": { "@envelop/core": "^2.0.0", "@graphql-tools/utils": "^8.6.0", - "@graphql-yoga/common": "2.1.0", + "@graphql-yoga/common": "2.2.0", "@graphql-yoga/subscription": "2.0.0", "cross-undici-fetch": "^0.2.4", "tslib": "^2.3.1" diff --git a/packages/render-graphiql/CHANGELOG.md b/packages/render-graphiql/CHANGELOG.md index 7659544706..bcfcd49f88 100644 --- a/packages/render-graphiql/CHANGELOG.md +++ b/packages/render-graphiql/CHANGELOG.md @@ -1,5 +1,13 @@ # @graphql-yoga/render-graphiql +## 2.2.0 + +### Minor Changes + +- Updated dependencies [1d4fe42] +- Updated dependencies [1d4fe42] + - @graphql-yoga/common@2.2.0 + ## 2.1.0 ### Minor Changes diff --git a/packages/render-graphiql/package.json b/packages/render-graphiql/package.json index 15a86c00cc..fb3b603332 100644 --- a/packages/render-graphiql/package.json +++ b/packages/render-graphiql/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-yoga/render-graphiql", - "version": "2.1.0", + "version": "2.2.0", "description": "", "repository": { "type": "git", @@ -44,6 +44,6 @@ "access": "public" }, "peerDependencies": { - "@graphql-yoga/common": "^2.1.0" + "@graphql-yoga/common": "^2.2.0" } } diff --git a/website/package.json b/website/package.json index b44883a57d..a02f63185c 100644 --- a/website/package.json +++ b/website/package.json @@ -35,8 +35,8 @@ "@chakra-ui/utils": "^1.10.2", "@emotion/react": "^11.7.1", "@emotion/styled": "^11.6.0", - "@graphql-yoga/node": "2.1.0", - "@graphql-yoga/render-graphiql": "2.1.0", + "@graphql-yoga/node": "2.2.0", + "@graphql-yoga/render-graphiql": "2.2.0", "@guild-docs/client": "^1.4.0", "@guild-docs/server": "^2.2.0", "@theguild/components": "1.11.0",