diff --git a/package-lock.json b/package-lock.json index 8a63ab98a..6e3ad8584 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@apollo/federation": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@apollo/federation/-/federation-0.21.2.tgz", - "integrity": "sha512-ZQ2TcRv7QO/84+SKFQrhppg+s0EcwBfSPT27DcoLYfEj8tsNjbUmsyxiH5CE2NJtG0F8y520nIM8tQ9wUrePsg==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@apollo/federation/-/federation-0.22.0.tgz", + "integrity": "sha512-WJyBV4TJtnhO1x60oUb+7AmkBV4+zQa4V7WZonc1iVQHMHfz/B7V/m0tZEHPgCOl4i8PUMoU9MuFPxI5vJmsyg==", "dev": true, "requires": { "apollo-graphql": "^0.6.0", @@ -15,18 +15,18 @@ } }, "@apollo/gateway": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/@apollo/gateway/-/gateway-0.23.2.tgz", - "integrity": "sha512-WGrlAzvBfvWGnwajlUowde2VXdkH5EtqgOLnwdYCB7FVMkLT8B/Qj6ePxK+Kbwonz7lcnEvNaL4rvF2ICGudWg==", + "version": "0.24.4", + "resolved": "https://registry.npmjs.org/@apollo/gateway/-/gateway-0.24.4.tgz", + "integrity": "sha512-5i4+VrJI7k0ryPvsGyZDIYH2QZVslgrdQro7NTxTdaqPqcyhw7DikS/6GBLiE51m/FSKyNuBI+T13xZGeRxV7g==", "optional": true, "requires": { - "@apollo/federation": "^0.21.2", - "@apollo/query-planner-wasm": "^0.1.2", - "@types/node-fetch": "2.5.4", + "@apollo/federation": "^0.22.0", + "@apollo/query-planner": "^0.0.13", + "@types/node-fetch": "2.5.8", "apollo-graphql": "^0.6.0", "apollo-reporting-protobuf": "^0.6.0", "apollo-server-caching": "^0.5.3", - "apollo-server-core": "^2.19.2", + "apollo-server-core": "^2.21.0", "apollo-server-env": "^3.0.0", "apollo-server-errors": "^2.4.2", "apollo-server-types": "^0.6.3", @@ -36,23 +36,14 @@ }, "dependencies": { "@apollo/federation": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@apollo/federation/-/federation-0.21.2.tgz", - "integrity": "sha512-ZQ2TcRv7QO/84+SKFQrhppg+s0EcwBfSPT27DcoLYfEj8tsNjbUmsyxiH5CE2NJtG0F8y520nIM8tQ9wUrePsg==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@apollo/federation/-/federation-0.22.0.tgz", + "integrity": "sha512-WJyBV4TJtnhO1x60oUb+7AmkBV4+zQa4V7WZonc1iVQHMHfz/B7V/m0tZEHPgCOl4i8PUMoU9MuFPxI5vJmsyg==", "optional": true, "requires": { "apollo-graphql": "^0.6.0", "lodash.xorby": "^4.7.0" } - }, - "@types/node-fetch": { - "version": "2.5.4", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.4.tgz", - "integrity": "sha512-Oz6id++2qAOFuOlE1j0ouk1dzl3mmI1+qINPNBhi9nt/gVOz0G+13Ao6qjhdF0Ys+eOkhu6JnFmt38bR3H0POQ==", - "optional": true, - "requires": { - "@types/node": "*" - } } } }, @@ -83,10 +74,20 @@ } } }, + "@apollo/query-planner": { + "version": "0.0.13", + "resolved": "https://registry.npmjs.org/@apollo/query-planner/-/query-planner-0.0.13.tgz", + "integrity": "sha512-F12sar1F/7wVaz5D4pmvqbBJ9gdT7iUBpg3wa0MB/ThqM2XRp4nxqWR2Qvh0v8EFLxgEtVR0efMsWVgjJcmeFQ==", + "optional": true, + "requires": { + "@apollo/query-planner-wasm": "^0.2.3", + "pretty-format": "^26.0.0" + } + }, "@apollo/query-planner-wasm": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@apollo/query-planner-wasm/-/query-planner-wasm-0.1.2.tgz", - "integrity": "sha512-djHcJXTOEZZec0M8ZhK3rGu/ZEAilgr6mu55X7JIxEJEI7Sq57e4r4Lbsfffx+fVxjDb2BK4mabsPHR4vVnG0Q==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@apollo/query-planner-wasm/-/query-planner-wasm-0.2.3.tgz", + "integrity": "sha512-T6ohOejVoifvq52ZkjmABFDpaGA0g5oxWWEh3I9bqUKlfiglB0oNpN21V96yVG7FC7yVzdOynCD6YsjWRUPE0A==", "optional": true }, "@apollographql/apollo-tools": { @@ -1056,9 +1057,9 @@ } }, "@graphql-tools/utils": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.5.1.tgz", - "integrity": "sha512-FYhSdJrU5cZ8BRuzCVV+YixLx3mXYVzowpKGPfI7re9/WvQPjlyIcjG+hd0C4u/L9Dxx46nBkiqZxZZknE6/lA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.6.0.tgz", + "integrity": "sha512-YCZDDdhfb4Yhie0IH031eGdvQG8C73apDuNg6lqBNbauNw45OG/b8wi3+vuMiDnJTJN32GQUb1Gt9gxDKoRDKw==", "requires": { "@ardatan/aggregate-error": "0.0.6", "camel-case": "4.1.2", @@ -2647,7 +2648,6 @@ "version": "2.5.8", "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.8.tgz", "integrity": "sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw==", - "dev": true, "requires": { "@types/node": "*", "form-data": "^3.0.0" @@ -2657,7 +2657,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", - "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -6721,9 +6720,9 @@ "dev": true }, "graphql": { - "version": "15.4.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.4.0.tgz", - "integrity": "sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA==", + "version": "15.5.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.0.tgz", + "integrity": "sha512-OmaM7y0kaK31NKG31q4YbD2beNYa6jBBKtMFT6gLYJljHLJr42IqJ8KX08u3Li/0ifzTU5HjmoOOrwa5BRLeDA==", "dev": true }, "graphql-extensions": { @@ -13264,9 +13263,9 @@ } }, "socks": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.5.1.tgz", - "integrity": "sha512-oZCsJJxapULAYJaEYBSzMcz8m3jqgGrHaGhkmU/o/PQfFWYWxkAaA0UMGImb6s6tEXfKi959X6VJjMMQ3P6TTQ==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.0.tgz", + "integrity": "sha512-mNmr9owlinMplev0Wd7UHFlqI4ofnBnNzFuzrm63PPaHgbkqCFe4T5LzwKmtQ/f2tX0NTpcdVLyD/FHxFBstYw==", "optional": true, "requires": { "ip": "^1.1.5", diff --git a/package.json b/package.json index ea5afec83..05a62de31 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "release": "release-it" }, "devDependencies": { - "@apollo/federation": "0.21.2", + "@apollo/federation": "0.22.0", "@commitlint/cli": "12.0.1", "@commitlint/config-angular": "12.0.1", "@nestjs/common": "7.6.14", @@ -41,7 +41,7 @@ "eslint": "7.22.0", "eslint-config-prettier": "8.1.0", "eslint-plugin-import": "2.22.1", - "graphql": "15.4.0", + "graphql": "15.5.0", "husky": "5.1.3", "jest": "26.6.3", "lint-staged": "10.5.4", @@ -57,10 +57,9 @@ "dependencies": { "@graphql-tools/merge": "6.2.10", "@graphql-tools/schema": "7.1.3", - "@graphql-tools/utils": "7.5.1", + "@graphql-tools/utils": "7.6.0", "@nestjs/mapped-types": "0.4.0", "apollo-env": "0.6.6", - "apollo-server-core": "2.21.1", "chokidar": "3.5.1", "fast-glob": "3.2.5", "iterall": "1.3.0", @@ -72,11 +71,12 @@ "peerDependencies": { "@nestjs/common": "^7.0.0", "@nestjs/core": "^7.0.0", + "apollo-server-core": "^2.21.1", "graphql": "^14.1.1 || ^15.0.0", "reflect-metadata": "^0.1.12" }, "optionalDependencies": { - "@apollo/gateway": "^0.23.2", + "@apollo/gateway": "^0.24.4", "apollo-server-testing": "^2.21.1", "ts-morph": "^10.0.1" }, diff --git a/tests/utils/printed-schema.snapshot.ts b/tests/utils/printed-schema.snapshot.ts index faf9cfa32..4e3184792 100644 --- a/tests/utils/printed-schema.snapshot.ts +++ b/tests/utils/printed-schema.snapshot.ts @@ -125,13 +125,6 @@ enum Direction { Up } -type Ingredient { - id: ID! - - """ingredient name""" - name: String @deprecated(reason: "is deprecated") -} - """example interface""" interface IRecipe { id: ID! @@ -139,6 +132,13 @@ interface IRecipe { title: String! } +type Ingredient { + id: ID! + + """ingredient name""" + name: String @deprecated(reason: "is deprecated") +} + type Mutation { addRecipe(newRecipeData: NewRecipeInput!): Recipe! removeRecipe(id: String!): Boolean!