Skip to content

Releases: dotansimha/graphql-code-generator

February 23, 2025

23 Feb 20:29
bd5772a
Compare
Choose a tag to compare

@graphql-codegen/visitor-plugin-common@5.7.1

Patch Changes

@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

19 Feb 14:45
a7f5aa9
Compare
Choose a tag to compare

@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

13 Feb 14:32
20164e0
Compare
Choose a tag to compare

@graphql-codegen/cli@5.0.5

Patch Changes

February 08, 2025

08 Feb 13:38
978eaa8
Compare
Choose a tag to compare

@graphql-codegen/fragment-matcher@5.1.0

Minor Changes

@graphql-codegen/client-preset@4.6.2

Patch Changes

January 31, 2025

31 Jan 15:52
62dd4c7
Compare
Choose a tag to compare

@graphql-codegen/gql-tag-operations@4.0.14

Patch Changes

@graphql-codegen/client-preset@4.6.1

Patch Changes

  • Updated dependencies [ec07018]:
    • @graphql-codegen/gql-tag-operations@4.0.14

January 28, 2025

28 Jan 11:56
8192a88
Compare
Choose a tag to compare

@graphql-codegen/cli@5.0.4

Patch Changes

@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 the parent. So, it means we don't have to make this resolver required.

    This patch makes __resolveReference optional when generateInternalResolversIfNeeded.__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 the parent. So, it means we don't have to make this resolver required.

    This patch makes __resolveReference optional when generateInternalResolversIfNeeded.__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

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

22 Nov 20:42
839b6f0
Compare
Choose a tag to compare

@graphql-codegen/visitor-plugin-common@5.6.0

Minor Changes

Patch Changes

@graphql-codegen/typescript-document-nodes@4.0.12

Patch Changes

  • Updated dependencies [1617e3c, fa64fbf]:
    • @graphql-codegen/visitor-plugin-common@5.6.0

@graphql-codegen/gql-tag-operations@4.0.12

Patch Changes

  • Updated dependencies [1617e3c, fa64fbf]:
    • @graphql-codegen/visitor-plugin-common@5.6.0

@graphql-codegen/typescript-operations@4.4.0

Minor Changes

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

  • Updated dependencies [1617e3c, fa64fbf]:
    • @graphql-codegen/visitor-plugin-common@5.6.0

@graphql-codegen/typescript@4.1.2

Patch Changes

  • Updated dependencies [1617e3c, fa64fbf]:
    • @graphql-codegen/visitor-plugin-common@5.6.0

@graphql-codegen/client-preset@4.5.1

Patch Changes

  • #9981 05aa6b4 Thanks @azu! - The client preset now allows the use of the enumsAsConst 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

  • Updated dependencies [1617e3c, fa64fbf]:
    • @graphql-codegen/visitor-plugin-common@5.6.0

October 28, 2024

28 Oct 12:19
876ea0c
Compare
Choose a tag to compare

@graphql-codegen/visitor-plugin-common@5.5.0

Minor Changes

  • #9989 55a1e9e Thanks @eddeee888! - Add generateInternalResolversIfNeeded option

    This 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 recursively

    For users that already sets recursive default mappers e.g. Partial<{T}> or DeepPartial<{T}>, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting avoidCheckingAbstractTypesRecursively: 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! - Add generateInternalResolversIfNeeded option

    This 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 recursively

    For users that already sets recursive default mappers e.g. Partial<{T}> or DeepPartial<{T}>, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting avoidCheckingAbstractTypesRecursively: 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 explicit undefined 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! - Add generateInternalResolversIfNeeded option

    This 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

07 Oct 15:02
effc3bc
Compare
Choose a tag to compare

@graphql-codegen/cli@5.0.3

Patch Changes

@graphql-codegen/visitor-plugin-common@5.4.0

Minor Changes

  • #10077 3f4f546 Thanks @eddeee888! - Extend config.avoidOptions to support query, mutation and subscription

    Previously, config.avoidOptions.resolvers was being used to make query, mutation and subscription fields non-optional.
    Now, config.avoidOptions.query, config.avoidOptions.mutation and config.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 generated graphql 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! - Extend config.avoidOptions to support query, mutation and subscription

    Previously, config.avoidOptions.resolvers was being used to make query, mutation and subscription fields non-optional.
    Now, config.avoidOptions.query, config.avoidOptions.mutation and config.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! - Extend config.avoidOptions to support query, mutation and subscription

    Previously, config.avoidOptions.resolvers was being used to make query, mutation and subscription fields non-optional.
    Now, config.avoidOptions.query, config.avoidOptions.mutation and config.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! - Extend config.avoidOptions to support query, mutation and subscription

    Previously, config.avoidOptions.resolvers was being used to make query, mutation and subscription fields non-optional.
    Now, config.avoidOptions.query, config.avoidOptions.mutation and config.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 generated graphql 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

July 28, 2024

28 Jul 13:44
942c25d
Compare
Choose a tag to compare

@graphql-codegen/client-preset@4.3.3

Patch Changes