diff --git a/CHANGELOG.md b/CHANGELOG.md index 53bc041f1..5af3d32fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Features - **Breaking Change**: expose shim as a package entry point `type-graphql/shim` (and `/node_modules/type-graphql/build/typings/shim.ts`) +- **Breaking Change**: update `graphql-js` peer dependency to `^16.8.1` - support defining directives on `@Field` of `@Args` - support defining directives on inline `@Arg` - allow passing custom validation function as `validateFn` option of `@Arg` and `@Args` decorators diff --git a/package-lock.json b/package-lock.json index 4240edf67..213535420 100644 --- a/package-lock.json +++ b/package-lock.json @@ -68,7 +68,7 @@ "expect": "^29.6.1", "express": "^4.18.2", "glob": "^10.3.3", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "graphql-redis-subscriptions": "^2.6.0", "graphql-scalars": "^1.22.2", "graphql-tag": "^2.12.6", @@ -109,7 +109,7 @@ }, "peerDependencies": { "class-validator": ">=0.14.0", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "graphql-scalars": "^1.22.2" }, "peerDependenciesMeta": { @@ -8035,9 +8035,9 @@ "dev": true }, "node_modules/graphql": { - "version": "16.7.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.7.1.tgz", - "integrity": "sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==", + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } @@ -21943,9 +21943,9 @@ "dev": true }, "graphql": { - "version": "16.7.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.7.1.tgz", - "integrity": "sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==" + "version": "16.8.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", + "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==" }, "graphql-query-complexity": { "version": "0.12.0", diff --git a/package.json b/package.json index ae5a92809..527ccb620 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ }, "peerDependencies": { "class-validator": ">=0.14.0", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "graphql-scalars": "^1.22.2" }, "peerDependenciesMeta": { @@ -155,7 +155,7 @@ "expect": "^29.6.1", "express": "^4.18.2", "glob": "^10.3.3", - "graphql": "^16.7.1", + "graphql": "^16.8.1", "graphql-redis-subscriptions": "^2.6.0", "graphql-scalars": "^1.22.2", "graphql-tag": "^2.12.6", diff --git a/src/utils/graphql-version.ts b/src/utils/graphql-version.ts index 4aea99d38..56c473795 100644 --- a/src/utils/graphql-version.ts +++ b/src/utils/graphql-version.ts @@ -4,7 +4,7 @@ import semVer from "semver"; import { UnmetGraphQLPeerDependencyError } from "../errors"; // This must be kept in sync with 'package.json' -export const graphQLPeerDependencyVersion = "^16.7.1"; +export const graphQLPeerDependencyVersion = "^16.8.1"; export function ensureInstalledCorrectGraphQLPackage() { if (!semVer.satisfies(graphql.version, graphQLPeerDependencyVersion)) {