Releases: dotansimha/graphql-code-generator
February 23, 2025
@graphql-codegen/visitor-plugin-common@5.7.1
Patch Changes
- #10302
d8566c0
Thanks @eddeee888! - Fix Apollo unmask directive incorrectly generating fragmentRefs
@graphql-codegen/typescript-document-nodes@4.0.15
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
@graphql-codegen/gql-tag-operations@4.0.16
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
@graphql-codegen/typescript-operations@4.5.1
Patch Changes
-
#10302
d8566c0
Thanks @eddeee888! - Fix Apollo unmask directive incorrectly generating fragmentRefs -
Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
- @graphql-codegen/typescript@4.1.5
@graphql-codegen/typescript-resolvers@4.4.4
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
- @graphql-codegen/typescript@4.1.5
@graphql-codegen/typed-document-node@5.0.15
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
@graphql-codegen/typescript@4.1.5
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
@graphql-codegen/client-preset@4.6.4
Patch Changes
-
#10302
d8566c0
Thanks @eddeee888! - Fix Apollo unmask directive incorrectly generating fragmentRefs -
Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
- @graphql-codegen/typescript-operations@4.5.1
- @graphql-codegen/gql-tag-operations@4.0.16
- @graphql-codegen/typed-document-node@5.0.15
- @graphql-codegen/typescript@4.1.5
@graphql-codegen/graphql-modules-preset@4.0.15
Patch Changes
- Updated dependencies [
d8566c0
]:- @graphql-codegen/visitor-plugin-common@5.7.1
February 19, 2025
@graphql-codegen/visitor-plugin-common@5.7.0
Minor Changes
@graphql-codegen/typescript-document-nodes@4.0.14
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
@graphql-codegen/gql-tag-operations@4.0.15
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
@graphql-codegen/typescript-operations@4.5.0
Minor Changes
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
- @graphql-codegen/typescript@4.1.4
@graphql-codegen/typescript-resolvers@4.4.3
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
- @graphql-codegen/typescript@4.1.4
@graphql-codegen/typed-document-node@5.0.14
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
@graphql-codegen/typescript@4.1.4
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
@graphql-codegen/client-preset@4.6.3
Patch Changes
-
#10298
3efc472
Thanks @dotansimha! - Fix a bug where fragment spreads with@client
directives is not being removed from the generated persisted documents -
Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
- @graphql-codegen/typescript-operations@4.5.0
- @graphql-codegen/gql-tag-operations@4.0.15
- @graphql-codegen/typed-document-node@5.0.14
- @graphql-codegen/typescript@4.1.4
@graphql-codegen/graphql-modules-preset@4.0.14
Patch Changes
- Updated dependencies [
6d7c1d7
]:- @graphql-codegen/visitor-plugin-common@5.7.0
February 13, 2025
@graphql-codegen/cli@5.0.5
Patch Changes
- #10282
7d7760d
Thanks @oprypkhantc! - Fix watcher watching project root when schema URL is used
February 08, 2025
January 31, 2025
@graphql-codegen/gql-tag-operations@4.0.14
Patch Changes
- #10192
ec07018
Thanks @brianhuang822! - Have gql-tag-operations generate the type for document registry
@graphql-codegen/client-preset@4.6.1
Patch Changes
- Updated dependencies [
ec07018
]:- @graphql-codegen/gql-tag-operations@4.0.14
January 28, 2025
@graphql-codegen/cli@5.0.4
Patch Changes
-
#10248
72eb86f
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.10.0
↗︎ (from^0.9.20
, independencies
)
- Updated dependency
-
#10227
6f1741a
Thanks @eddeee888! - Fix schema pointers type to allow an array of pointers -
Updated dependencies [
8737dd8
,ed71811
]:- @graphql-codegen/client-preset@4.6.0
@graphql-codegen/visitor-plugin-common@5.6.1
Patch Changes
-
#10230
60dd72f
Thanks @eddeee888! - Fix generateInternalResolversIfNeeded.__resolveReference making the resolver required__resolveReference
's default behaviour when not declared is to pass the ref to subsequent resolvers i.e. becoming theparent
. So, it means we don't have to make this resolver required.This patch makes
__resolveReference
optional whengenerateInternalResolversIfNeeded.__resolveReference
is set to true.
@graphql-codegen/typescript-document-nodes@4.0.13
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
@graphql-codegen/gql-tag-operations@4.0.13
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
@graphql-codegen/typescript-operations@4.4.1
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
- @graphql-codegen/typescript@4.1.3
@graphql-codegen/typescript-resolvers@4.4.2
Patch Changes
-
#10230
60dd72f
Thanks @eddeee888! - Fix generateInternalResolversIfNeeded.__resolveReference making the resolver required__resolveReference
's default behaviour when not declared is to pass the ref to subsequent resolvers i.e. becoming theparent
. So, it means we don't have to make this resolver required.This patch makes
__resolveReference
optional whengenerateInternalResolversIfNeeded.__resolveReference
is set to true. -
Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
- @graphql-codegen/typescript@4.1.3
@graphql-codegen/typed-document-node@5.0.13
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
@graphql-codegen/typescript@4.1.3
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
@graphql-codegen/client-preset@4.6.0
Minor Changes
-
#10268
8737dd8
Thanks @eddeee888! - Forward customDirectives to support Apollo unmask -
#10155
ed71811
Thanks @nebbles! - client-preset generated output is configurable with onlyOperationTypes and onlyEnumTypes
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
- @graphql-codegen/gql-tag-operations@4.0.13
- @graphql-codegen/typescript-operations@4.4.1
- @graphql-codegen/typed-document-node@5.0.13
- @graphql-codegen/typescript@4.1.3
@graphql-codegen/graphql-modules-preset@4.0.13
Patch Changes
- Updated dependencies [
60dd72f
]:- @graphql-codegen/visitor-plugin-common@5.6.1
November 22, 2024
@graphql-codegen/visitor-plugin-common@5.6.0
Minor Changes
- #10163
fa64fbf
Thanks @jerelmiller! - Add support for Apollo Client@unmask
directive with fragment masking.
Patch Changes
- #10187
1617e3c
Thanks @gilgardosh! - Fix: type naming for imported enums
@graphql-codegen/typescript-document-nodes@4.0.12
Patch Changes
@graphql-codegen/gql-tag-operations@4.0.12
Patch Changes
@graphql-codegen/typescript-operations@4.4.0
Minor Changes
- #10163
fa64fbf
Thanks @jerelmiller! - Add support for Apollo Client@unmask
directive with fragment masking.
Patch Changes
- Updated dependencies [
1617e3c
,fa64fbf
]:- @graphql-codegen/visitor-plugin-common@5.6.0
- @graphql-codegen/typescript@4.1.2
@graphql-codegen/typescript-resolvers@4.4.1
Patch Changes
-
#10187
1617e3c
Thanks @gilgardosh! - Fix: type naming for imported enums -
Updated dependencies [
1617e3c
,fa64fbf
]:- @graphql-codegen/visitor-plugin-common@5.6.0
- @graphql-codegen/typescript@4.1.2
@graphql-codegen/typed-document-node@5.0.12
Patch Changes
@graphql-codegen/typescript@4.1.2
Patch Changes
@graphql-codegen/client-preset@4.5.1
Patch Changes
-
#9981
05aa6b4
Thanks @azu! - The client preset now allows the use of theenumsAsConst
config option -
Updated dependencies [
1617e3c
,fa64fbf
]:- @graphql-codegen/visitor-plugin-common@5.6.0
- @graphql-codegen/typescript-operations@4.4.0
- @graphql-codegen/gql-tag-operations@4.0.12
- @graphql-codegen/typed-document-node@5.0.12
- @graphql-codegen/typescript@4.1.2
@graphql-codegen/graphql-modules-preset@4.0.12
Patch Changes
October 28, 2024
@graphql-codegen/visitor-plugin-common@5.5.0
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. -
#10141
a235051
Thanks @eddeee888! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursivelyFor users that already sets recursive default mappers e.g.
Partial<{T}>
orDeepPartial<{T}>
, having both options on will cause a nested loop which eventually crashes Codegen. In such case, settingavoidCheckingAbstractTypesRecursively: true
allows users to continue to use recursive default mappers as before.
Patch Changes
- Updated dependencies [
55a1e9e
]:- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/typescript-document-nodes@4.0.11
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/gql-tag-operations@4.0.11
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/typescript-operations@4.3.1
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typescript@4.1.1
@graphql-codegen/typescript-resolvers@4.4.0
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. -
#10141
a235051
Thanks @eddeee888! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursivelyFor users that already sets recursive default mappers e.g.
Partial<{T}>
orDeepPartial<{T}>
, having both options on will cause a nested loop which eventually crashes Codegen. In such case, settingavoidCheckingAbstractTypesRecursively: true
allows users to continue to use recursive default mappers as before.
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typescript@4.1.1
@graphql-codegen/typed-document-node@5.0.11
Patch Changes
-
#10160
c7af639
Thanks @jyasskin! - Allow explicitundefined
in additional to optional arguments -
Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/typescript@4.1.1
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/client-preset@4.5.0
Minor Changes
Patch Changes
-
#10182
effd875
Thanks @eddeee888! - Revert slimmer client preset output -
Updated dependencies [
55a1e9e
,a235051
,c7af639
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typed-document-node@5.0.11
- @graphql-codegen/gql-tag-operations@4.0.11
- @graphql-codegen/typescript-operations@4.3.1
- @graphql-codegen/typescript@4.1.1
@graphql-codegen/graphql-modules-preset@4.0.11
Patch Changes
- Updated dependencies [
55a1e9e
,a235051
]:- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
@graphql-codegen/plugin-helpers@5.1.0
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.
October 07, 2024
@graphql-codegen/cli@5.0.3
Patch Changes
-
#10069
8bb34e7
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.20
↗︎ (from^0.8.0
, independencies
) - Updated dependency
graphql-config@^5.1.1
↗︎ (from^5.0.2
, independencies
)
- Updated dependency
-
e0092b5
Thanks @ardatan! - Bump whatwg-node and graphql-config -
Updated dependencies [
8471a18
,67e7556
]:- @graphql-codegen/client-preset@4.4.0
@graphql-codegen/visitor-plugin-common@5.4.0
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.
@graphql-codegen/typescript-document-nodes@4.0.10
Patch Changes
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
@graphql-codegen/gql-tag-operations@4.0.10
Patch Changes
-
#10075
67e7556
Thanks @n1ru4l! - Add note about enabling bundle size reduction for the generatedgraphql
tag file. -
Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
@graphql-codegen/typescript-operations@4.3.0
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
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
- @graphql-codegen/typescript@4.1.0
@graphql-codegen/typescript-resolvers@4.3.0
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
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
- @graphql-codegen/typescript@4.1.0
@graphql-codegen/typed-document-node@5.0.10
Patch Changes
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
@graphql-codegen/typescript@4.1.0
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
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
@graphql-codegen/client-preset@4.4.0
Minor Changes
- #10073
8471a18
Thanks @n1ru4l! - Reduce noise of generated code by only generating code relevant to GraphQL operations.
Patch Changes
-
#10075
67e7556
Thanks @n1ru4l! - Add note about enabling bundle size reduction for the generatedgraphql
tag file. -
Updated dependencies [
67e7556
,3f4f546
]:- @graphql-codegen/gql-tag-operations@4.0.10
- @graphql-codegen/visitor-plugin-common@5.4.0
- @graphql-codegen/typescript-operations@4.3.0
- @graphql-codegen/typescript@4.1.0
- @graphql-codegen/typed-document-node@5.0.10
@graphql-codegen/graphql-modules-preset@4.0.10
Patch Changes
- Updated dependencies [
3f4f546
]:- @graphql-codegen/visitor-plugin-common@5.4.0
@graphql-codegen/testing@3.0.4
Patch Changes
- #10070
5fb302c
Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.5.4
↗︎ (from13.5.3
, independencies
)
- Updated dependency
July 28, 2024
@graphql-codegen/client-preset@4.3.3
Patch Changes
- #9817
7ac42a3
Thanks @nikitalocalhost! - Resolve runtime error when using the babel plugin within an ESM environment.