From fdc5f611ab6b59d3b34c5854c69752ba7459c86a Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 7 Apr 2021 17:44:20 +0300 Subject: [PATCH] Update express-graphql and graphql packages --- package-lock.json | 32 +++++++++++++++++--------------- package.json | 5 ++--- src/index.ts | 2 +- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc19f7f..df39094 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,9 @@ "chalk": "4.0.0", "cors": "2.8.5", "express": "4.17.1", - "express-graphql": "0.10.2", + "express-graphql": "0.12.0", "faker": "5.5.2", - "graphql": "14.5.8", + "graphql": "14.7.0", "graphql-voyager": "1.0.0-rc.31", "moment": "2.26.0", "node-fetch": "2.6.0", @@ -28,7 +28,6 @@ "@types/body-parser": "1.19.0", "@types/classnames": "2.2.10", "@types/cors": "2.8.6", - "@types/express": "4.17.6", "@types/faker": "5.5.0", "@types/react": "16.9.35", "@types/react-dom": "16.9.8", @@ -2641,9 +2640,9 @@ } }, "node_modules/express-graphql": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/express-graphql/-/express-graphql-0.10.2.tgz", - "integrity": "sha512-OV8L1li3e2kFegslfyxY/Geh0JCRy/pmZUQmiRP+B3LUuRq4w8D+esjZodhW4vh8N0SeA5fFZ1UvbnVkt/fGOw==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/express-graphql/-/express-graphql-0.12.0.tgz", + "integrity": "sha512-DwYaJQy0amdy3pgNtiTDuGGM2BLdj+YO2SgbKoLliCfuHv3VVTt7vNG/ZqK2hRYjtYHE2t2KB705EU94mE64zg==", "dependencies": { "accepts": "^1.3.7", "content-type": "^1.0.4", @@ -2652,6 +2651,9 @@ }, "engines": { "node": ">= 10.x" + }, + "peerDependencies": { + "graphql": "^14.7.0 || ^15.3.0" } }, "node_modules/express-graphql/node_modules/http-errors": { @@ -3397,9 +3399,9 @@ } }, "node_modules/graphql": { - "version": "14.5.8", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.5.8.tgz", - "integrity": "sha512-MMwmi0zlVLQKLdGiMfWkgQD7dY/TUKt4L+zgJ/aR0Howebod3aNgP5JkgvAULiR2HPVZaP2VEElqtdidHweLkg==", + "version": "14.7.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.7.0.tgz", + "integrity": "sha512-l0xWZpoPKpppFzMfvVyFmp9vLN7w/ZZJPefUicMCepfJeQ8sMcztloGYY9DfjVPo6tIUDzU5Hw3MUbIjj9AVVA==", "dependencies": { "iterall": "^1.2.2" }, @@ -12035,9 +12037,9 @@ } }, "express-graphql": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/express-graphql/-/express-graphql-0.10.2.tgz", - "integrity": "sha512-OV8L1li3e2kFegslfyxY/Geh0JCRy/pmZUQmiRP+B3LUuRq4w8D+esjZodhW4vh8N0SeA5fFZ1UvbnVkt/fGOw==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/express-graphql/-/express-graphql-0.12.0.tgz", + "integrity": "sha512-DwYaJQy0amdy3pgNtiTDuGGM2BLdj+YO2SgbKoLliCfuHv3VVTt7vNG/ZqK2hRYjtYHE2t2KB705EU94mE64zg==", "requires": { "accepts": "^1.3.7", "content-type": "^1.0.4", @@ -12674,9 +12676,9 @@ } }, "graphql": { - "version": "14.5.8", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.5.8.tgz", - "integrity": "sha512-MMwmi0zlVLQKLdGiMfWkgQD7dY/TUKt4L+zgJ/aR0Howebod3aNgP5JkgvAULiR2HPVZaP2VEElqtdidHweLkg==", + "version": "14.7.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-14.7.0.tgz", + "integrity": "sha512-l0xWZpoPKpppFzMfvVyFmp9vLN7w/ZZJPefUicMCepfJeQ8sMcztloGYY9DfjVPo6tIUDzU5Hw3MUbIjj9AVVA==", "requires": { "iterall": "^1.2.2" } diff --git a/package.json b/package.json index d33c8ea..4527f66 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@types/body-parser": "1.19.0", "@types/classnames": "2.2.10", "@types/cors": "2.8.6", - "@types/express": "4.17.6", "@types/faker": "5.5.0", "@types/react": "16.9.35", "@types/react-dom": "16.9.8", @@ -64,9 +63,9 @@ "chalk": "4.0.0", "cors": "2.8.5", "express": "4.17.1", - "express-graphql": "0.10.2", + "express-graphql": "0.12.0", "faker": "5.5.2", - "graphql": "14.5.8", + "graphql": "14.7.0", "graphql-voyager": "1.0.0-rc.31", "moment": "2.26.0", "node-fetch": "2.6.0", diff --git a/src/index.ts b/src/index.ts index 9a47381..c24b6e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,7 @@ function runServer( typeResolver: fakeTypeResolver, fieldResolver: fakeFieldResolver, customExecuteFn, - graphiql: true, + graphiql: { headerEditorEnabled: true }, })), );