@graphql-tools/executor
Advanced tools
Comparing version 1.2.6 to 1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e
@@ -623,5 +623,4 @@ "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)) { | ||
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; | ||
} | ||
@@ -1212,2 +1211,12 @@ if (typeof runtimeTypeName !== 'string') { | ||
class DeferredFragmentRecord { | ||
type; | ||
errors; | ||
label; | ||
path; | ||
promise; | ||
data; | ||
parentContext; | ||
isCompleted; | ||
_exeContext; | ||
_resolve; | ||
constructor(opts) { | ||
@@ -1242,2 +1251,14 @@ this.type = 'defer'; | ||
class StreamRecord { | ||
type; | ||
errors; | ||
label; | ||
path; | ||
items; | ||
promise; | ||
parentContext; | ||
iterator; | ||
isCompletedIterator; | ||
isCompleted; | ||
_exeContext; | ||
_resolve; | ||
constructor(opts) { | ||
@@ -1244,0 +1265,0 @@ this.type = 'stream'; |
@@ -615,5 +615,4 @@ import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql'; | ||
// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType` | ||
// TODO: remove in 17.0.0 release | ||
if (isObjectType(runtimeTypeName)) { | ||
throw createGraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.'); | ||
runtimeTypeName = runtimeTypeName.name; | ||
} | ||
@@ -1200,2 +1199,12 @@ if (typeof runtimeTypeName !== 'string') { | ||
class DeferredFragmentRecord { | ||
type; | ||
errors; | ||
label; | ||
path; | ||
promise; | ||
data; | ||
parentContext; | ||
isCompleted; | ||
_exeContext; | ||
_resolve; | ||
constructor(opts) { | ||
@@ -1230,2 +1239,14 @@ this.type = 'defer'; | ||
class StreamRecord { | ||
type; | ||
errors; | ||
label; | ||
path; | ||
items; | ||
promise; | ||
parentContext; | ||
iterator; | ||
isCompletedIterator; | ||
isCompleted; | ||
_exeContext; | ||
_resolve; | ||
constructor(opts) { | ||
@@ -1232,0 +1253,0 @@ this.type = 'stream'; |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "1.2.6", | ||
"version": "1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
165662
3450
2