@graphql-codegen/cli@7.4.6
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.
-
Updated dependencies
[d8aa07f]:- @graphql-codegen/client-preset@6.2.3
@graphql-codegen/visitor-plugin-common@7.2.10
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.
-
#11039
5078faf
Thanks @eddeee888! - Fix type errors invisitor-plugin-common
(utils,imports,naming,mappers,types,variables-to-object,
convert-schema-enum-to-declaration-block-string,selection-set-processor/baseand
optimize-operations) understrict: true:transformCommentacceptsundefinedandnull, which it already handles by returning an
empty string.blockdeclares its param asstring[] | null | undefined, which it already handles by
returning an empty string.DeclarationBlock's fields are typed asstring | null(_nameas
string | NameNode | null), andwithBlockacceptsnull, which renders the same as no block.DeclarationBlockfalls back to returning the block unchanged whenblockTransformeris passed
asundefined, instead of throwing.buildScalarsaccepts anundefinedscalars mapping, which it already handles by using only
the defaults and the schema.buildTypeImportaccepts a nullishidentifierandsource, and throws a descriptive error
when either is missing.ParsedEnumValuesMap'smappedValues,sourceIdentifier,sourceFileandimportIdentifier
acceptnull, whichparseEnumValuesalready emits.transformMappersdefaultsrawMappersto{}.OperationVariablesToObject.getName,OperationVariablesToObject.transformand
BaseSelectionSetProcessor.buildSelectionSetFromStringsmay returnnull, which they already
return.buildEnumValuesBlockthrows a descriptive error when an enum value is not defined on the
schema's enum.optimizeOperationsthrows a descriptive error when a document file has no parsed document.unique's default key usesString(item).convertSchemaEnumToDeclarationBlockStringtreats an enum node withoutvaluesas empty
instead of throwing.generateFragmentImportStatementtreats a missingidentifiersas empty.getDeprecationReasonreturns the default reason for a@deprecateddirective without
arguments.isOneOfInputObjectTypereturnsfalseinstead ofundefined.buildEnumValuesBlocktreats a non-enum schema type with the enum's name as having no schema
enum.OperationVariablesToObjectemits''instead of the textundefined/nullwhen a variable
has no name or no type identifier.
Generated output is unchanged, except in the cases above.
@graphql-codegen/typescript@6.1.2
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.
-
Updated dependencies
[d8aa07f,
5078faf]:- @graphql-codegen/visitor-plugin-common@7.2.10
@graphql-codegen/client-preset@6.2.3
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.
-
Updated dependencies
[d8aa07f,
5078faf]:- @graphql-codegen/visitor-plugin-common@7.2.10
- @graphql-codegen/typescript@6.1.2
@graphql-codegen/graphql-modules-preset@6.1.3
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.
-
Updated dependencies
[d8aa07f,
5078faf]:- @graphql-codegen/visitor-plugin-common@7.2.10
@graphql-codegen/testing@5.0.6
Patch Changes
-
#10985
d8aa07f
Thanks @eddeee888! - Build withstrict: true, which changes
these emitted type declarations:@graphql-codegen/cli:mkdirpreturnsPromise<string | undefined>, and therequire(-r)
CLI option'sdefaultis typednever[]instead ofany[].@graphql-codegen/visitor-plugin-common:BaseResolversVisitorandBaseTypesVisitor
SchemaDefinition()/SchemaExtension()returnnullinstead ofany.@graphql-codegen/visitor-plugin-common:BaseSelectionSetProcessor.typeCacheis keyed by
Location | undefined.@graphql-codegen/visitor-plugin-common:SelectionSetToObject.buildSelectionSetreturns
typeInfoas{ name: string; type: string } | null.@graphql-codegen/visitor-plugin-common:getPossibleTypesacceptsnullas the type, which
graphql 15'sschema.getType()can return.@graphql-codegen/visitor-plugin-common:removeDescriptionreturns nodes with
description: undefinedinstead ofany.@graphql-codegen/typescript:TsIntrospectionVisitor's constructor takespluginConfigas
TypeScriptPluginConfig | undefined,DirectiveDefinition()returnsnulland
ObjectTypeDefinition()returnsstring | null.@graphql-codegen/client-preset: the babel preset acceptsoptionsas
ClientBabelPresetOptions | null | undefined.@graphql-codegen/testing:mockGraphQLServerreturnsnock.Scope | null.@graphql-codegen/graphql-modules-preset: a schema withoutextensions(graphql 15) throws the
"requires to use GraphQL SDL" error instead of aTypeError.
Generated output is unchanged.