chore(deps): update graphqlcodegenerator monorepo #12
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/graphqlcodegenerator-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^2.11.6->^6.0.0^2.3.3->^6.0.0^2.7.3->^5.0.0^2.5.3->^5.0.0^3.3.3->^4.0.0^4.0.1->^6.0.0Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
v6.1.0Compare Source
Minor Changes
9e70bcbThanks @nickmessing! - add importExtension configuration optionPatch Changes
9e70bcb]:v6.0.2Compare Source
Patch Changes
aad7f03Thanks @renovate! - dependencies updates:@graphql-tools/github-loader@^9.0.0↗︎ (from^8.0.0, independencies)@graphql-tools/url-loader@^9.0.0↗︎ (from^8.0.0, independencies)v6.0.1Compare Source
Patch Changes
#10468
cb1b9d9Thanks @eddeee888! - In watch mode, do not write output on failurePreviously, on partial or full failure, watch mode still write to output. However, since the output'd be an empty array, it will then call
removeStaleFilesinternally to remove all previously generated files.This patch puts a temporary fix to avoid writing output on any failure to fix the described behaviour.
This also means the
config.allowPartialOutputsdoes not work in watch mode for now.v6.0.0Compare Source
Major Changes
#10218
140298aThanks @eddeee888! - Drop @graphql-tools/prisma-loader#10218
140298aThanks @eddeee888! - AddallowPartialOutputsflag to partially write successful generation to files#10218
140298aThanks @eddeee888! - Migrate inquirer to @inquirer/prompts#10218
140298aThanks @eddeee888! - Bump dependencies major versions:#10218
140298aThanks @eddeee888! - Bump listr2 to v9#10218
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v5.0.7Compare Source
Patch Changes
#10150
e324382Thanks @ArminWiebigke! - Allow functions to be passed as valid values forUrlSchemaOptions.customFetch. This was already possible, but the type definitions did not reflect that correctly.#10358
157c823Thanks @eddeee888! - Remove extraneous error stacktrace if fails to load@parcel/watcherUpdated dependencies [
e324382,98392fc]:v5.0.6Compare Source
Patch Changes
#10338
5d1c4e1Thanks @eddeee888! - Fix ignoreNoDocuments=true swallowing all errors#10333
10ab58dThanks @eddeee888! - Improve syntax error messages whilst loading schema/documentUpdated dependencies [
c5efba3]:v5.0.5Compare Source
Patch Changes
7d7760dThanks @oprypkhantc! - Fix watcher watching project root when schema URL is usedv5.0.4Compare Source
Patch Changes
#10248
72eb86fThanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.10.0↗︎ (from^0.9.20, independencies)#10227
6f1741aThanks @eddeee888! - Fix schema pointers type to allow an array of pointersUpdated dependencies [
8737dd8,ed71811]:v5.0.3Compare Source
Patch Changes
#10069
8bb34e7Thanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.9.20↗︎ (from^0.8.0, independencies)graphql-config@^5.1.1↗︎ (from^5.0.2, independencies)e0092b5Thanks @ardatan! - Bump whatwg-node and graphql-configUpdated dependencies [
8471a18,67e7556]:v5.0.2Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v5.0.1Compare Source
Patch Changes
#9811
d8364e045Thanks @saihaj! - dependencies updates:@graphql-codegen/client-preset@^4.1.0↗︎ (todependencies)#9811
d8364e045Thanks @saihaj! - ignore events in.gitdirectory#9811
d8364e045Thanks @saihaj! - Surface error occurring during import of @parcel/watcher#9811
d8364e045Thanks @saihaj! - Include @graphql-codegen/client-preset in @graphql-codegen/cli by default#9811
d8364e045Thanks @saihaj! - fix watcher unable to find highest common directory on WindowsUpdated dependencies [
d8364e045,d8364e045,d8364e045,d8364e045]:v5.0.0Compare Source
Major Changes
dd9c7e148Thanks @valkum! - Make @parcel/watcher optionalPatch Changes
#9513
fdd19d24dThanks @cichelero! - Update yaml dependency to 2.3.1Updated dependencies [
bb1e0e96e]:v4.0.1Compare Source
Patch Changes
#9479
0aa444b5dThanks @gilgardosh! - dependencies updates:graphql-config@^5.0.2↗︎ (from^5.0.1, independencies)#9479
0aa444b5dThanks @gilgardosh! - Update graphql-config to v^5.0.2v4.0.0Compare Source
Major Changes
bb66c2a31Thanks @n1ru4l! - Require Node.js>= 16. Drop support for Node.js 14Patch Changes
#9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:graphql-config@^5.0.0↗︎ (from^4.5.0, independencies)#9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:@graphql-tools/apollo-engine-loader@^8.0.0↗︎ (from^7.3.6, independencies)@graphql-tools/code-file-loader@^8.0.0↗︎ (from^7.3.17, independencies)@graphql-tools/git-loader@^8.0.0↗︎ (from^7.2.13, independencies)@graphql-tools/github-loader@^8.0.0↗︎ (from^7.3.28, independencies)@graphql-tools/graphql-file-loader@^8.0.0↗︎ (from^7.5.0, independencies)@graphql-tools/json-file-loader@^8.0.0↗︎ (from^7.4.1, independencies)@graphql-tools/load@^8.0.0↗︎ (from^7.8.0, independencies)@graphql-tools/prisma-loader@^8.0.0↗︎ (from^7.2.69, independencies)@graphql-tools/url-loader@^8.0.0↗︎ (from^7.17.17, independencies)@graphql-tools/utils@^10.0.0↗︎ (from^9.0.0, independencies)cosmiconfig@^8.1.3↗︎ (from^7.0.0, independencies)graphql-config@^5.0.1↗︎ (from^4.5.0, independencies)#9371
d431f426eThanks @Axxxx0n! - Fixed option ignoreNoDocuments when using graphql configs#9275
2a5da5894Thanks @milesrichardson! - Trigger rebuilds in watch mode while respecting rules of precedence and negation, both in terms of global (top-level) config vs. local (per-output target) config, and in terms of watch patterns (higher priority) vs. documents/schemas (lower priority). This fixes an issue with overly-aggressive rebuilds during watch mode.Updated dependencies [
4d9ea1a5a,4d9ea1a5a,f46803a8c,63827fabe,bb66c2a31]:v3.3.1Compare Source
Patch Changes
#9267
183749346Thanks @milesrichardson! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes #9266).#9280
ca1d72c40Thanks @saihaj! - fix the default output directory for init commandv3.3.0Compare Source
Minor Changes
#9151
b7dacb21fThanks @'./user/schema.mappers#UserMapper',! - AddwatchPatternconfig option forgeneratessections.By default,
watchmode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.A user may want to run Codegen CLI when non-schema and non-document files are changed. Each
generatessection now has awatchPatternoption to allow more file patterns to be added to the list of patterns to watch.In the example below, mappers are exported from
schema.mappers.tsfiles. We want to re-run Codegen if the content of*.mappers.tsfiles change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.Then, run Codegen CLI in
watchmode:Now, updating
*.mappers.tsfiles re-runs Codegen! 🎉Note:
watchPatternis only used inwatchmode i.e. running CLI with--watchflag.Patch Changes
b7dacb21f,f104619ac]:v3.2.2Compare Source
Patch Changes
#9086
a34cef35bThanks @beerose! - dependencies updates:graphql-config@^4.5.0↗︎ (from^4.4.0, independencies)jiti@^1.17.1↗︎ (todependencies)cosmiconfig-typescript-loader@^4.3.0↗︎ (fromdependencies)ts-node@^10.9.1↗︎ (fromdependencies)#9086
a34cef35bThanks @beerose! - Supportcodegen.tsin ESM projectsv3.2.1Compare Source
Patch Changes
#9051
f7313f7caThanks @saihaj! - dependencies updates:micromatch@^4.0.5↗︎ (todependencies)#9051
f7313f7caThanks @saihaj! - only run generate for files that users have listed in config to avoid running this over every change that codegen is not supposed to executev3.2.0Compare Source
Minor Changes
288ed0977Thanks @saihaj! - use @parcel/watcher for improved watch functionalityPatch Changes
288ed0977Thanks @saihaj! - dependencies updates:@parcel/watcher@^2.1.0↗︎ (todependencies)chokidar@^3.5.2↗︎ (fromdependencies)v3.1.0Compare Source
Minor Changes
#8893
a118c307aThanks @n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset#8723
a3309e63eThanks @kazekyo! - Introduce a new feature called DocumentTransform.DocumentTransform is a functionality that allows you to modify
documentsbefore they are processed by plugins. You can use functions passed to thedocumentTransformsoption to make changes to GraphQL documents.To use this feature, you can write
documentTransformsas follows:For instance, to remove a
@localOnlyDirectivedirective fromdocuments, you can write the following code:DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to
documentTransforms.Let's create the document transform as a file:
Then, you can specify the file name as follows:
Patch Changes
4c422ccf6Thanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.8.0↗︎ (from^0.6.0, independencies)8206b268d,8206b268d,a118c307a,a3309e63e]:v3.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
#8883
321d5112eThanks @Solo-steven! - Fix PluckConfig overwrite problem.Updated dependencies [
fc79b65d4,fd0b0c813]:dotansimha/graphql-code-generator (@graphql-codegen/typed-document-node)
v6.1.4Compare Source
Patch Changes
b995ed1]:v6.1.3Compare Source
Patch Changes
f821e8a,9e70bcb]:v6.1.2Compare Source
Patch Changes
51a1a72]:v6.1.1Compare Source
Patch Changes
6715330]:v6.1.0Compare Source
Minor Changes
#10456
655b91dThanks @aovens-quantifi! - feat(typed-document-node): Allow importing operation typesAdds the
importOperationTypesFromoption, similar to many other codegenplugins. This allows importing the operation types rather than needing to
generate them within this plugin config.
v6.0.2Compare Source
Patch Changes
8258f1f]:v6.0.1Compare Source
Patch Changes
accdab6]:v6.0.0Compare Source
Major Changes
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v5.1.2Compare Source
Patch Changes
#10362
3188b8cThanks @Brookke! - Make generated type compatible with noImplicitOverride=true#10373
c3295f9Thanks @eddeee888! - Fix client preset not working with exactOptionalPropertyTypes=true when documentMode=stringv5.1.1Compare Source
Patch Changes
f6909d1]:v5.1.0Compare Source
Minor Changes
bfe3c75Thanks @mvantellingen! - Update generated code to be compatible with TypeScript 5.8erasableSyntaxOnlyflagv5.0.15Compare Source
Patch Changes
d8566c0]:v5.0.14Compare Source
Patch Changes
6d7c1d7]:v5.0.13Compare Source
Patch Changes
60dd72f]:v5.0.12Compare Source
Patch Changes
1617e3c,fa64fbf]:v5.0.11Compare Source
Patch Changes
#10160
c7af639Thanks @jyasskin! - Allow explicitundefinedin additional to optional argumentsUpdated dependencies [
55a1e9e,a235051]:v5.0.10Compare Source
Patch Changes
3f4f546]:v5.0.9Compare Source
Patch Changes
79fee3c]:v5.0.8Compare Source
Patch Changes
808ada5,14ce39e]:v5.0.7Compare Source
Patch Changes
dfc5310,156cc2b,dfc5310,b49457b]:v5.0.6Compare Source
Patch Changes
920b443,ed9c205]:v5.0.5Compare Source
Patch Changes
53f270a]:v5.0.4Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v5.0.3Compare Source
Patch Changes
7718a8113]:v5.0.2Compare Source
Patch Changes
d8364e045Thanks @saihaj! - dependencies updates:tslib@~2.6.0↗︎ (from~2.5.0, independencies)d8364e045,d8364e045,d8364e045,d8364e045]:v5.0.1Compare Source
Patch Changes
d8566c0]:v5.0.0Compare Source
Major Changes
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:
Patch Changes
4d9ea1a5a,4d9ea1a5a,f46803a8c,3848a2b73,ba84a3a27,63827fabe,50471e651,5aa95aa96,ca02ad172,e1dc75f3c,bb66c2a31,5950f5a68,5aa95aa96]:v4.0.1Compare Source
Patch Changes
386cf9044,402cb8ac0]:v4.0.0Compare Source
Major Changes
2256c8b5dThanks @beerose! - AddTypedDocumentNodestring alternative that doesn't require GraphQL AST on the client. This change requires@graphql-typed-document-node/corein version3.2.0or higher.Patch Changes
e56790104,b7dacb21f,f104619ac,acb647e4e,9f4d9c5a4]:v3.0.2Compare Source
Patch Changes
ba0610bbd,4b49f6fbe,b343626c9]:v3.0.1Compare Source
Patch Changes
#8879
8206b268dThanks @renovate! - dependencies updates:tslib@~2.5.0↗︎ (from~2.4.0, independencies)#8971
6b6fe3cbcThanks @n1ru4l! - Allow passing fragment documents to APIs like ApollosreadFragmentUpdated dependencies [
8206b268d,8206b268d,a118c307a,6b6fe3cbc,a3309e63e]:v3.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
fc79b65d4,fd0b0c813]:dotansimha/graphql-code-generator (@graphql-codegen/typescript)
v5.0.6Compare Source
Patch Changes
b995ed1]:v5.0.5Compare Source
Patch Changes
f821e8a,9e70bcb]: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]:v3.0.4Compare Source
Patch Changes
386cf9044,402cb8ac0]:v3.0.3Compare Source
Patch Changes
#9150
92d86b009Thanks @rliljest! - Properly escape enum identifiers when enumsAsConst is usedUpdated dependencies [
e56790104,b7dacb21f,f104619ac,acb647e4e,9f4d9c5a4]:v3.0.2Compare Source
Patch Changes
ba0610bbd,4b49f6fbe,b343626c9]:v3.0.1Compare Source
Patch Changes
8206b268dThanks @renovate! - dependencies updates:tslib@~2.5.0↗︎ (from~2.4.0, independencies)8206b268d,8206b268d,8206b268d,a118c307a,6b6fe3cbc,a3309e63e]:v3.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
fc79b65d4,fd0b0c813]:dotansimha/graphql-code-generator (@graphql-codegen/typescript-operations)
v5.0.6Compare Source
Patch Changes
b995ed1]:v5.0.5Compare Source
Patch Changes
f821e8a,9e70bcb]: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! - BREAKING CHANGE: Use Record<PropertyKey, never> instead of {} for empty object type#10218
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v4.6.1Compare Source
Patch Changes
c5efba3Thanks @jnoordsij! - Make graphql-sock optional peerDepv4.6.0Compare Source
Minor Changes
f3cf4dfThanks @eddeee888! - Add support fornullability.errorHandlingClient. This allows clients to get stronger types with semantic nullability-enabled schemas.Patch Changes
f6909d1]:v4.5.1Compare Source
Patch Changes
#10302
d8566c0Thanks @eddeee888! - Fix Apollo unmask directive incorrectly generating fragmentRefsUpdated dependencies [
d8566c0]:v4.5.0Compare Source
Minor Changes
6d7c1d7Thanks @adapap! - feat: implementincludeExternalFragments: booleanoptionPatch Changes
6d7c1d7]:v4.4.1Compare Source
Patch Changes
60dd72f]:v4.4.0Compare Source
Minor Changes
fa64fbfThanks @jerelmiller! - Add support for Apollo Client@unmaskdirective with fragment masking.Patch Changes
1617e3c,fa64fbf]:v4.3.1Compare Source
Patch Changes
55a1e9e,a235051]:v4.3.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.2.3Compare Source
Patch Changes
79fee3c]:v4.2.2Compare Source
Patch Changes
808ada5,14ce39e]:v4.2.1Compare Source
Patch Changes
dfc5310,156cc2b,dfc5310,b49457b]:v4.2.0Compare Source
Minor Changes
920b443Thanks @gmurphey! - Added allowUndefinedQueryVariables as config optionPatch Changes
#9842
ed9c205Thanks @henryqdineen! - properly handle aliased conditionalsUpdated dependencies [
920b443,ed9c205]:v4.1.3Compare Source
Patch Changes
53f270a]:v4.1.2Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v4.1.1Compare Source
Patch Changes
7718a8113]:v4.1.0Compare Source
Minor Changes
d8364e045Thanks @saihaj! - fix: out-of-memory crash (fixes #7720)perf: implement a caching mechanism that makes sure the type originating at the same location is never generated twice, as long as the combination of selected fields and possible types matches
feat: implement
extractAllFieldsToTypes: booleanfeat: implement
printFieldsOnNewLines: booleanPatch 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,f46803a8c,3848a2b73,ba84a3a27,63827fabe,50471e651,5aa95aa96,ca02ad172,e1dc75f3c,bb66c2a31,5950f5a68,5aa95aa96]:v3.0.4Compare Source
Patch Changes
386cf9044,402cb8ac0]:v3.0.3Compare Source
Patch Changes
e56790104,b7dacb21f,f104619ac,92d86b009,acb647e4e,9f4d9c5a4]:v3.0.2Compare Source
Patch Changes
ba0610bbd,4b49f6fbe,b343626c9]:v3.0.1Compare Source
Patch Changes
8206b268dThanks @renovate! - dependencies updates:tslib@~2.5.0↗︎ (from~2.4.0, independencies)8206b268d,8206b268d,8206b268d,a118c307a,6b6fe3cbc,a3309e63e]:v3.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
fc79b65d4,fd0b0c813]:dotansimha/graphql-code-generator-community (@graphql-codegen/typescript-react-apollo)
v4.3.3Compare Source
Patch Changes
#355
ca72b89Thanks @renovate! - dependencies updates:
@graphql-codegen/visitor-plugin-common@2.13.8↗︎(from
2.13.1, independencies)#612
5af565eThanks @renovate! - dependencies updates:
tslib@^2.8.1↗︎ (from~2.8.0, independencies)#828
0c551baThanks @renovate! - dependencies updates:
tslib@~2.8.0↗︎ (from~2.6.0, independencies)v4.3.2Compare Source
Patch Changes
ea83cf4Thanks @jefrydco! - feat: support skip token for useSuspenseQuery
v4.3.1Compare Source
Patch Changes
7df8028Thanks @scottopherson! - Move
graphql-tagtodevDependenciesfrompeerDependencies.v4.3.0Compare Source
Minor Changes
3e2c8deThanks @tomaskukk! - Improved type-safety: when a query contains
required variables, passing the variables object to the useQuery hook is enforced
v4.2.0Compare Source
Minor Changes
ba7e551Thanks @rickdunkin! - Apollo Client
useFragmenthookPatch Changes
fa53f8fThanks @namoscato! - fix: loosen defaultBaseOptions type
v4.1.0Compare Source
Minor Changes
d86d2052aThanks @Hal-ang! - feat: support useSuspenseQuery
v4.0.0Compare Source
Major Changes
218778010Thanks @saihaj! - Drop support for Node.js 12 and 14. Require Node.js
>= 16Patch Changes
ef0adf8c2Thanks @renovate! - dependencies updates:
tslib@~2.6.0↗︎ (from~2.4.0, independencies)dotansimha/graphql-code-generator-community (@graphql-codegen/typescript-react-query)
v6.1.1Compare Source
Patch Changes
#355
ca72b89Thanks @renovate! - dependencies updates:
@graphql-codegen/visitor-plugin-common@2.13.8↗︎(from
2.13.1, independencies)#612
5af565eThanks @renovate! - dependencies updates:
tslib@^2.8.1↗︎ (from~2.8.0, independencies)#828
0c551baThanks @renovate! - dependencies updates:
tslib@~2.8.0↗︎ (from~2.6.0, independencies)v6.1.0Compare Source
Minor Changes
b403529Thanks @neil585456525! - Fix importOperationTypesFrom missing
prefix
v6.0.0Compare Source
Major Changes
935b51f07Thanks @neil585456525! - Support react-query v5
Minor Changes
df7683e95Thanks @saihaj! - Allow fetcher config to accept both
stringandobject.objectlet's user specify the import path to theirGraphQLClientinstance. So itwill make it easier to generated hooks by not passing down GraphQLClient.
v5.0.0Compare Source
Major Changes
#324
d6f48354bThanks @giubatt! - removed unused pageParamKey parameter from
infinite queries hook call
#411
218778010Thanks @saihaj! - Drop support for Node.js 12 and 14. Require Node.js
>= 16Minor Changes
218778010Thanks @saihaj! - add exposeQueryRootKeys
Patch Changes
#422
ef0adf8c2Thanks @renovate! - dependencies updates:
tslib@~2.6.0↗︎ (from~2.4.0, independencies)#411
218778010Thanks @saihaj! - Provide reactQueryImportFrom field to custom
react-query import from
#391
14dcc7603Thanks @AlanSl! - Correct default value in legacyMode docs comment
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 has been generated by Renovate Bot.
010e582b86to8451307abb8451307abbto27fc69f7eb27fc69f7ebtof1b2408351f1b2408351to63b59c652c63b59c652ctocdd7b4429ccdd7b4429cto6c2fb9134f6c2fb9134ftoce1e62d6aece1e62d6aeto39ee1373ad39ee1373adto573d8fc09f573d8fc09fto3f1aa06adc3f1aa06adcto7f5e7c27fd7f5e7c27fdto4f4a082edb4f4a082edbto1d5d01eff5chore(deps): update graphqlcodegenerator monorepo to v3to chore(deps): update graphqlcodegenerator monorepo1d5d01eff5to8ec8b685238ec8b68523toce263f9228ce263f9228to702b51f32c702b51f32ctodd1aef9c95dd1aef9c95to4c3d0d87ef4c3d0d87efto9496aa3256View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.