fix(deps): update graphqlcodegenerator monorepo (major) #581
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:
^3.1.0
->^4.0.2
^4.2.0
->^5.1.0
^4.0.1
->^5.0.11
^3.0.4
->^4.1.1
^3.0.4
->^4.3.1
^3.2.1
->^4.4.0
^3.1.1
->^5.5.0
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/core)
v4.0.2
Compare Source
Patch Changes
#9813
4e69568
Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568
]:v4.0.1
Compare Source
Patch Changes
d8364e045
Thanks @saihaj! - dependencies updates:tslib@~2.6.0
↗︎ (from~2.5.0
, independencies
)d8364e045
]:v4.0.0
Compare Source
Major Changes
bb66c2a31
Thanks @n1ru4l! - Require Node.js>= 16
. Drop support for Node.js 14Patch Changes
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:@graphql-tools/schema@^10.0.0
↗︎ (from^9.0.0
, independencies
)@graphql-tools/utils@^10.0.0
↗︎ (from^9.1.1
, independencies
)4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:dotansimha/graphql-code-generator (@graphql-codegen/plugin-helpers)
v5.1.0
Compare Source
Minor Changes
#9989
55a1e9e
Thanks @eddeee888! - AddgenerateInternalResolversIfNeeded
optionThis option can be used to generate more correct types for internal resolvers. For example, only generate
__resolveReference
if the federation object has a resolvable@key
.In the future, this option can be extended to support other internal resolvers e.g.
__isTypeOf
is only generated for implementing types and union members.v5.0.4
Compare Source
Patch Changes
dfc5310
Thanks @eddeee888! - Update plugin output type to allow optionmeta
fieldv5.0.3
Compare Source
Patch Changes
4e69568
Thanks @saihaj! - bumping for a releasev5.0.2
Compare Source
Patch Changes
d8364e045
Thanks @saihaj! - dependencies updates:tslib@~2.6.0
↗︎ (from~2.5.0
, independencies
)v5.0.1
Compare Source
Patch Changes
bb1e0e96e
Thanks @tnyo43! - add noSilentErrors option to the config typev5.0.0
Compare Source
Major Changes
bb66c2a31
Thanks @n1ru4l! - Require Node.js>= 16
. Drop support for Node.js 14Patch Changes
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:@graphql-tools/utils@^10.0.0
↗︎ (from^9.0.0
, independencies
)#9332
f46803a8c
Thanks @eddeee888! - Update GitHub loader TypeScript type and usage docs#9360
63827fabe
Thanks @beerose! - Add handleAsSDL property to UrlSchemaOptions typedotansimha/graphql-code-generator (@graphql-codegen/typed-document-node)
v5.0.11
Compare Source
Patch Changes
#10160
c7af639
Thanks @jyasskin! - Allow explicitundefined
in additional to optional argumentsUpdated dependencies [
55a1e9e
,a235051
]:v5.0.10
Compare Source
Patch Changes
3f4f546
]:v5.0.9
Compare Source
Patch Changes
79fee3c
]:v5.0.8
Compare Source
Patch Changes
808ada5
,14ce39e
]:v5.0.7
Compare Source
Patch Changes
dfc5310
,156cc2b
,dfc5310
,b49457b
]:v5.0.6
Compare Source
Patch Changes
920b443
,ed9c205
]:v5.0.5
Compare Source
Patch Changes
53f270a
]:v5.0.4
Compare Source
Patch Changes
#9813
4e69568
Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568
]:v5.0.3
Compare Source
Patch Changes
7718a8113
]:v5.0.2
Compare Source
Patch Changes
d8364e045
Thanks @saihaj! - dependencies updates:tslib@~2.6.0
↗︎ (from~2.5.0
, independencies
)d8364e045
,d8364e045
,d8364e045
,d8364e045
]:v5.0.1
Compare Source
Patch Changes
2276708d0
]:v5.0.0
Compare Source
Major Changes
bb66c2a31
Thanks @n1ru4l! - Require Node.js>= 16
. Drop support for Node.js 14Minor Changes
#9196
3848a2b73
Thanks @beerose! - Add@defer
directive supportWhen a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved.
Once start using the
@defer
directive in your queries, the generated code will automatically include support for the directive.The generated type for
GetUserQuery
will have information that the fragment is incremental, meaning it may not be available right away.Apart from generating code that includes support for the
@defer
directive, the Codegen also exports a utility function calledisFragmentReady
. You can use it to conditionally render components based on whether the data for a deferredfragment is available:
Patch Changes
4d9ea1a5a
,4d9ea1a5a
,f46803a8c
,3848a2b73
,ba84a3a27
,63827fabe
,50471e651
,5aa95aa96
,ca02ad172
,e1dc75f3c
,bb66c2a31
,5950f5a68
,5aa95aa96
]:dotansimha/graphql-code-generator (@graphql-codegen/typescript)
v4.1.1
Compare Source
Patch Changes
55a1e9e
,a235051
]:v4.1.0
Compare Source
Minor Changes
#10077
3f4f546
Thanks @eddeee888! - Extendconfig.avoidOptions
to support query, mutation and subscriptionPreviously,
config.avoidOptions.resolvers
was being used to make query, mutation and subscription fields non-optional.Now,
config.avoidOptions.query
,config.avoidOptions.mutation
andconfig.avoidOptions.subscription
can be used to target the respective types.Patch Changes
3f4f546
]:v4.0.9
Compare Source
Patch Changes
79fee3c
]:v4.0.8
Compare Source
Patch Changes
808ada5
,14ce39e
]:v4.0.7
Compare Source
Patch Changes
dfc5310
,156cc2b
,dfc5310
,b49457b
]:v4.0.6
Compare Source
Patch Changes
920b443
,ed9c205
]:v4.0.5
Compare Source
Patch Changes
53f270a
]:v4.0.4
Compare Source
Patch Changes
#9813
4e69568
Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568
]:v4.0.3
Compare Source
Patch Changes
7718a8113
]:v4.0.2
Compare Source
Patch Changes
d8364e045
Thanks @saihaj! - dependencies updates:tslib@~2.6.0
↗︎ (from~2.5.0
, independencies
)d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
]:v4.0.1
Compare Source
Patch Changes
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.Updated dependencies [
2276708d0
]:v4.0.0
Compare Source
Major Changes
#9375
ba84a3a27
Thanks @eddeee888! - Implement Scalars with input/output typesIn GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:
string
ornumber
in the inputstring
in its selection set (i.e output)string
in the resolver (GraphQL parsesstring
ornumber
received from the client tostring
)string
ornumber
(GraphQL serializes the value tostring
before sending it to the client )Currently, we represent every Scalar with only one type. This is what codegen generates as base type:
Then, this is used in both input and output type e.g.
This PR extends each Scalar to have input and output:
Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:
Note that for
typescript-resolvers
, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly:Config changes:
If correctly, wired up, the following will be generated:
BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types.
bb66c2a31
Thanks @n1ru4l! - Require Node.js>= 16
. Drop support for Node.js 14Minor Changes
#9196
3848a2b73
Thanks @beerose! - Add@defer
directive supportWhen a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved.
Once start using the
@defer
directive in your queries, the generated code will automatically include support for the directive.The generated type for
GetUserQuery
will have information that the fragment is incremental, meaning it may not be available right away.Apart from generating code that includes support for the
@defer
directive, the Codegen also exports a utility function calledisFragmentReady
. You can use it to conditionally render components based on whether the data for a deferredfragment is available:
#9304
e1dc75f3c
Thanks @esfomeado! - Added support for disabling suffixes on Enums.Patch Changes
4d9ea1a5a
,4d9ea1a5a
,4d9ea1a5a
,f46803a8c
,3848a2b73
,ba84a3a27
,63827fabe
,50471e651
,5aa95aa96
,ca02ad172
,e1dc75f3c
,bb66c2a31
,5950f5a68
,5aa95aa96
]:dotansimha/graphql-code-generator (@graphql-codegen/typescript-operations)
v4.3.1
Compare Source
Patch Changes
55a1e9e
,a235051
]:v4.3.0
Compare Source
Minor Changes
#10077
3f4f546
Thanks @eddeee888! - Extendconfig.avoidOptions
to support query, mutation and subscriptionPreviously,
config.avoidOptions.resolvers
was being used to make query, mutation and subscription fields non-optional.Now,
config.avoidOptions.query
,config.avoidOptions.mutation
andconfig.avoidOptions.subscription
can be used to target the respective types.Patch Changes
3f4f546
]:v4.2.3
Compare Source
Patch Changes
79fee3c
]:v4.2.2
Compare Source
Patch Changes
808ada5
,14ce39e
]:v4.2.1
Compare Source
Patch Changes
dfc5310
,156cc2b
,dfc5310
,b49457b
]:v4.2.0
Compare Source
Minor
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.