-
Notifications
You must be signed in to change notification settings - Fork 2
chore(deps): update graphql-codegen (major) #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
448523b to
60b8bd5
Compare
60b8bd5 to
13efeb9
Compare
93b9be3 to
c0d25d8
Compare
c0d25d8 to
2b2dcd7
Compare
8d856d7 to
067a9d6
Compare
7f8f13b to
6e1e7c5
Compare
6e1e7c5 to
27a1e28
Compare
27a1e28 to
ad25880
Compare
ad25880 to
788bd83
Compare
788bd83 to
17e3edb
Compare
dcf588e to
5879b0b
Compare
5879b0b to
674adea
Compare
12b0638 to
478f44b
Compare
478f44b to
d61c614
Compare
d61c614 to
c2cb853
Compare
c2cb853 to
7f05b53
Compare
36e060b to
1343d48
Compare
1343d48 to
7c4e951
Compare
7c4e951 to
d51fb73
Compare
fea68b6 to
c7afb30
Compare
c7afb30 to
97ae9c6
Compare
21e04fe to
911c4f1
Compare
cfcc61d to
fbac1a5
Compare
fbac1a5 to
ff8c369
Compare
dcc9262 to
1867af5
Compare
b5faf35 to
fb8848d
Compare
fb8848d to
77564a7
Compare
This PR contains the following updates:
2.0.2->4.0.03.0.4->5.0.4Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/testing)
v4.0.0Compare Source
v3.0.4Compare Source
v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0.0Compare Source
dotansimha/graphql-code-generator (@graphql-codegen/typescript)
v5.0.4Compare Source
Patch Changes
51a1a72]:v5.0.3Compare Source
Patch Changes
6715330]:v5.0.2Compare Source
Patch Changes
8258f1f]:v5.0.1Compare Source
Patch Changes
accdab6]:v5.0.0Compare Source
Major Changes
#10218
140298aThanks @eddeee888! - Remove NameNode override#10218
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v4.1.6Compare Source
Patch Changes
f6909d1]:v4.1.5Compare Source
Patch Changes
d8566c0]:v4.1.4Compare Source
Patch Changes
6d7c1d7]:v4.1.3Compare Source
Patch Changes
60dd72f]:v4.1.2Compare Source
Patch Changes
1617e3c,fa64fbf]:v4.1.1Compare Source
Patch Changes
55a1e9e,a235051]:v4.1.0Compare Source
Minor Changes
#10077
3f4f546Thanks @eddeee888! - Extendconfig.avoidOptionsto support query, mutation and subscriptionPreviously,
config.avoidOptions.resolverswas being used to make query, mutation and subscription fields non-optional.Now,
config.avoidOptions.query,config.avoidOptions.mutationandconfig.avoidOptions.subscriptioncan be used to target the respective types.Patch Changes
3f4f546]:v4.0.9Compare Source
Patch Changes
79fee3c]:v4.0.8Compare Source
Patch Changes
808ada5,14ce39e]:v4.0.7Compare Source
Patch Changes
dfc5310,156cc2b,dfc5310,b49457b]:v4.0.6Compare Source
Patch Changes
920b443,ed9c205]:v4.0.5Compare Source
Patch Changes
53f270a]:v4.0.4Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v4.0.3Compare Source
Patch Changes
7718a8113]:v4.0.2Compare Source
Patch Changes
d8364e045Thanks @saihaj! - dependencies updates:tslib@~2.6.0↗︎ (from~2.5.0, independencies)d8364e045,d8364e045,d8364e045,d8364e045,d8364e045]:v4.0.1Compare Source
Patch Changes
#9497
2276708d0Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
stringtostring | numberin the latest major version oftypescriptplugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescriptplugin. This is because the scalar type needs to be manually inverted on setup which is confusing.Updated dependencies [
2276708d0]:v4.0.0Compare Source
Major Changes
#9375
ba84a3a27Thanks @eddeee888! - Implement Scalars with input/output typesIn GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:
stringornumberin the inputstringin its selection set (i.e output)stringin the resolver (GraphQL parsesstringornumberreceived from the client tostring)stringornumber(GraphQL serializes the value tostringbefore 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.
bb66c2a31Thanks @n1ru4l! - Require Node.js>= 16. Drop support for Node.js 14Minor Changes
#9196
3848a2b73Thanks @beerose! - Add@deferdirective 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
@deferdirective in your queries, the generated code will automatically include support for the directive.The generated type for
GetUserQuerywill have information that the fragment is incremental, meaning it may not be available right away.Apart from generating code that includes support for the
@deferdirective, 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
e1dc75f3cThanks @esfomeado! - Added support for disabling suffixes on Enums.Patch Changes
4d9ea1a5a,4d9ea1a5a,4d9ea1a5a,f46803a8c,3848a2b73,ba84a3a27,63827fabe,50471e651,5aa95aa96,ca02ad172,e1dc75f3c,bb66c2a31,5950f5a68,5aa95aa96]:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.