chore(deps): update graphqlcodegenerator monorepo to v7.4.0 - #1592
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.3.0→7.4.07.2.5→7.2.7Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/plugin-helpers)
v7.4.0Compare Source
Minor Changes
#10994
1d1153bThanks @eddeee888! - Type
oldVisit's return value instead ofreturning
any. For aDocumentNode, the result is nowOldVisitDocumentResult, whosedefinitionsareunknown[]because leave visitors can replace each definition with any value(usually a string), and definitions without a leave visitor stay as AST nodes. When a
Documentleave visitor returns its own value, pass its type as
oldVisit<TResult>(...). For other roots,the result is
unknownunlessTResultis given.Code that used the result as
any, for exampleconst definitions: string[] = result.definitions, now needs to filter for strings, cast(
result.definitions as string[]), or passoldVisit<any>(...). Runtime behavior and generatedoutput are unchanged.
dotansimha/graphql-code-generator (@graphql-codegen/visitor-plugin-common)
v7.2.7Compare Source
Patch Changes
#11001
65e5599Thanks @eddeee888! - Fix
typescript-operationsgeneratinginvalid
interfacedeclarations for@oneOfinputs whendeclarationKindisinterface(#10996).
A
@oneOfinput with multiple fields is a union, so it is always generated as atypealias; asingle-field
@oneOfinput keeps the configureddeclarationKind.input.typescriptandtypescript-operationsshare this rule through the newgetOneOfInputDeclarationKindexport from@graphql-codegen/visitor-plugin-common.v7.2.6Compare Source
Patch Changes
#10982
e5361bcThanks @eddeee888! - Fix out-of-memory errors with deeply nested,
widely reused fragments
(#10940).
The type cache used while generating selection set types was keyed by every fragment-expanded
field path, so its keys grew exponentially with fragment nesting. Keys are now built from the
selection set as written, referencing fragment spreads by name, so they stay linear in the size of
the documents. The exported
getFieldNameshelper from@graphql-codegen/visitor-plugin-common,which built those expanded paths, is removed.
#10993
be69e9dThanks @eddeee888! - Type
getConfigValue'svalueparameter asT | null | undefined, so the result is non-nullable when a non-nullable default is given.Updated dependencies
[
1d1153b]:Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.