@graphql-tools/executor
Advanced tools
Comparing version 1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e to 1.2.7-alpha-20240619191149-cd1ab96503149b7ed7feaeae653872e1579a89ca
@@ -623,3 +623,7 @@ "use strict"; | ||
// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType` | ||
// TODO: remove in 17.0.0 release | ||
if ((0, graphql_1.isObjectType)(runtimeTypeName)) { | ||
if (graphql_1.versionInfo.major >= 16) { | ||
throw (0, utils_1.createGraphQLError)('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.'); | ||
} | ||
runtimeTypeName = runtimeTypeName.name; | ||
@@ -626,0 +630,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql'; | ||
import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, versionInfo, } from 'graphql'; | ||
import { ValueOrPromise } from 'value-or-promise'; | ||
@@ -615,3 +615,7 @@ import { collectSubFields as _collectSubfields, addPath, collectFields, createGraphQLError, getArgumentValues, getDefinedRootType, GraphQLStreamDirective, inspect, isAsyncIterable, isIterableObject, isObjectLike, isPromise, mapAsyncIterator, memoize1, memoize3, pathToArray, promiseReduce, } from '@graphql-tools/utils'; | ||
// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType` | ||
// TODO: remove in 17.0.0 release | ||
if (isObjectType(runtimeTypeName)) { | ||
if (versionInfo.major >= 16) { | ||
throw createGraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.'); | ||
} | ||
runtimeTypeName = runtimeTypeName.name; | ||
@@ -618,0 +622,0 @@ } |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e", | ||
"version": "1.2.7-alpha-20240619191149-cd1ab96503149b7ed7feaeae653872e1579a89ca", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166200
3458