chore(deps): update graphqlcodegenerator monorepo #12

Open
kjuulh wants to merge 1 commits from renovate/graphqlcodegenerator-monorepo into main
Owner

This PR contains the following updates:

Package Type Update Change
@graphql-codegen/cli (source) devDependencies major ^2.11.6 -> ^5.0.0
@graphql-codegen/typed-document-node (source) devDependencies major ^2.3.3 -> ^5.0.0
@graphql-codegen/typescript (source) devDependencies major ^2.7.3 -> ^4.0.0
@graphql-codegen/typescript-operations (source) devDependencies major ^2.5.3 -> ^4.0.0
@graphql-codegen/typescript-react-apollo (source) devDependencies major ^3.3.3 -> ^4.0.0
@graphql-codegen/typescript-react-query (source) devDependencies major ^4.0.1 -> ^6.0.0

Release Notes

dotansimha/graphql-code-generator (@​graphql-codegen/cli)

v5.0.3

Compare Source

Patch Changes

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
Patch Changes

v3.3.1

Compare Source

Patch Changes

v3.3.0

Compare Source

Minor Changes
  • #​9151 b7dacb21f Thanks @​'./user/schema.mappers#UserMapper',! - Add watchPattern config option for generates sections.

    By default, watch mode 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 generates section now has a watchPattern option 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.ts files. We want to re-run Codegen if the content of *.mappers.ts files 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.

    // codegen.ts
    const config: CodegenConfig = {
      schema: 'src/schema/**/*.graphql',
      generates: {
        'src/schema/types.ts': {
          plugins: ['typescript', 'typescript-resolvers'],
          config: {
            mappers: {
    
              Book: './book/schema.mappers#BookMapper',
            },
          }
          watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']`
        },
      },
    };
    

    Then, run Codegen CLI in watch mode:

    yarn graphql-codegen --watch
    

    Now, updating *.mappers.ts files re-runs Codegen! 🎉

    Note: watchPattern is only used in watch mode i.e. running CLI with --watch flag.

Patch Changes

v3.2.2

Compare Source

Patch Changes

v3.2.1

Compare Source

Patch Changes

v3.2.0

Compare Source

Minor Changes
Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​8893 a118c307a Thanks @​n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset

  • #​8723 a3309e63e Thanks @​kazekyo! - Introduce a new feature called DocumentTransform.

    DocumentTransform is a functionality that allows you to modify documents before they are processed by plugins. You can use functions passed to the documentTransforms option to make changes to GraphQL documents.

    To use this feature, you can write documentTransforms as follows:

    import type { CodegenConfig } from '@​graphql-codegen/cli'
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: [
            {
              transform: ({ documents }) => {
                // Make some changes to the documents
                return documents
              }
            }
          ]
        }
      }
    }
    export default config
    

    For instance, to remove a @localOnlyDirective directive from documents, you can write the following code:

    import type { CodegenConfig } from '@​graphql-codegen/cli'
    import { visit } from 'graphql'
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: [
            {
              transform: ({ documents }) => {
                return documents.map(documentFile => {
                  documentFile.document = visit(documentFile.document, {
                    Directive: {
                      leave(node) {
                        if (node.name.value === 'localOnlyDirective') return null
                      }
                    }
                  })
                  return documentFile
                })
              }
            }
          ]
        }
      }
    }
    export default config
    

    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:

    module.exports = {
      transform: ({ documents }) => {
        // Make some changes to the documents
        return documents
      }
    }
    

    Then, you can specify the file name as follows:

    import type { CodegenConfig } from '@​graphql-codegen/cli'
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: ['./my-document-transform.js']
        }
      }
    }
    export default config
    
Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/typed-document-node)

v5.0.12

Compare Source

Patch Changes

v5.0.11

Compare Source

Patch Changes

v5.0.10

Compare Source

Patch Changes

v5.0.9

Compare Source

Patch Changes

v5.0.8

Compare Source

Patch Changes

v5.0.7

Compare Source

Patch Changes

v5.0.6

Compare Source

Patch Changes

v5.0.5

Compare Source

Patch Changes

v5.0.4

Compare Source

Patch Changes

v5.0.3

Compare Source

Patch Changes

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Minor Changes
  • #​9196 3848a2b73 Thanks @​beerose! - Add @defer directive support

    When 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.

    // src/index.tsx
    import { graphql } from './gql'
    const OrdersFragment = graphql(`
      fragment OrdersFragment on User {
        orders {
          id
          total
        }
      }
    `)
    const GetUserQuery = graphql(`
      query GetUser($id: ID!) {
        user(id: $id) {
          id
          name
          ...OrdersFragment @​defer
        }
      }
    `)
    

    The generated type for GetUserQuery will have information that the fragment is incremental, meaning it may not be available right away.

    // gql/graphql.ts
    export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({
      __typename?: 'Query'
    } & {
      ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> }
    })
    

    Apart from generating code that includes support for the @defer directive, the Codegen also exports a utility function called isFragmentReady. You can use it to conditionally render components based on whether the data for a deferred
    fragment is available:

    const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => {
      const data = useFragment(OrdersFragment, props.data);
      return (
        // render orders list
      )
    };
    
    function App() {
      const { data } = useQuery(GetUserQuery);
      return (
        {data && (
          <>
            {isFragmentReady(GetUserQuery, OrdersFragment, data)
    					&& <OrdersList data={data} />}
          </>
        )}
      );
    }
    export default App;
    
Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
  • #​9137 2256c8b5d Thanks @​beerose! - Add TypedDocumentNode string alternative that doesn't require GraphQL AST on the client. This change requires @graphql-typed-document-node/core in version 3.2.0 or higher.
Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/typescript)

v4.1.2

Compare Source

Patch Changes

v4.1.1

Compare Source

Patch Changes

v4.1.0

Compare Source

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

v4.0.9

Compare Source

Patch Changes

v4.0.8

Compare Source

Patch Changes

v4.0.7

Compare Source

Patch Changes

v4.0.6

Compare Source

Patch Changes

v4.0.5

Compare Source

Patch Changes

v4.0.4

Compare Source

Patch Changes

v4.0.3

Compare Source

Patch Changes

v4.0.2

Compare Source

Patch Changes

v4.0.1

Compare Source

Patch Changes
  • #​9497 2276708d0 Thanks @​eddeee888! - Revert default ID scalar input type to string

    We changed the ID Scalar input type from string to string | number in the latest major version of typescript plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript 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 types

    In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:

    • A client may send string or number in the input
    • A client receives string in its selection set (i.e output)
    • A server receives string in the resolver (GraphQL parses string or number received from the client to string)
    • A server may return string or number (GraphQL serializes the value to string before sending it to the client )

    Currently, we represent every Scalar with only one type. This is what codegen generates as base type:

    export type Scalars = {
      ID: string
    }
    

    Then, this is used in both input and output type e.g.

    export type Book = {
      __typename?: 'Book'
      id: Scalars['ID'] // Output's ID can be `string` 👍
    }
    
    export type QueryBookArgs = {
      id: Scalars['ID'] // Input's ID can be `string` or `number`. However, the type is only `string` here 👎
    }
    

    This PR extends each Scalar to have input and output:

    export type Scalars = {
      ID: {
        input: string | number
        output: string
      }
    }
    

    Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:

    export type Book = {
      __typename?: 'Book'
      id: Scalars['ID']['output'] // Output's ID can be `string` 👍
    }
    
    export type QueryBookArgs = {
      id: Scalars['ID']['input'] // Input's ID can be `string` or `number` 👍
    }
    

    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:

    export type Scalars = {
      ID: {
        input: string;
        output: string | number;
      }
    }
    
    export type Book = {
      __typename?: "Book";
      id: Scalars["ID"]['output']; // Resolvers can return `string` or `number` in ID fields 👍
    };
    
    export type QueryBookArgs = {
      id: Scalars["ID"]['input']; // Resolvers receive `string` in ID fields 👍
    };
    
    export type ResolversTypes = {
      ID: ID: ResolverTypeWrapper<Scalars['ID']['output']>; // Resolvers can return `string` or `number` in ID fields 👍
    }
    
    export type ResolversParentTypes = {
      ID: Scalars['ID']['output']; // Resolvers receive `string` or `number` from parents 👍
    };
    

    Config changes:

    1. Scalars option can now take input/output types:
    config: {
      scalars: {
        ID: {
          input: 'string',
          output: 'string | number'
        }
      }
    }
    
    1. If a string is given (instead of an object with input/output fields), it will be used as both input and output types:
    config: {
      scalars: {
        ID: 'string' // This means `string` will be used for both ID's input and output types
      }
    }
    
    1. BREAKING CHANGE: External module Scalar types need to be an object with input/output fields
    config: {
      scalars: {
        ID: './path/to/scalar-module'
      }
    }
    

    If correctly, wired up, the following will be generated:

    // Previously, imported `ID` type can be a primitive type, now it must be an object with input/output fields
    import { ID } from './path/to/scalar-module'
    
    export type Scalars = {
      ID: { input: ID['input']; output: ID['output'] }
    }
    

    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 14

Minor Changes
  • #​9196 3848a2b73 Thanks @​beerose! - Add @defer directive support

    When 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.

    // src/index.tsx
    import { graphql } from './gql'
    const OrdersFragment = graphql(`
      fragment OrdersFragment on User {
        orders {
          id
          total
        }
      }
    `)
    const GetUserQuery = graphql(`
      query GetUser($id: ID!) {
        user(id: $id) {
          id
          name
          ...OrdersFragment @&#8203;defer
        }
      }
    `)
    

    The generated type for GetUserQuery will have information that the fragment is incremental, meaning it may not be available right away.

    // gql/graphql.ts
    export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({
      __typename?: 'Query'
    } & {
      ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> }
    })
    

    Apart from generating code that includes support for the @defer directive, the Codegen also exports a utility function called isFragmentReady. You can use it to conditionally render components based on whether the data for a deferred
    fragment is available:

    const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => {
      const data = useFragment(OrdersFragment, props.data);
      return (
        // render orders list
      )
    };
    
    function App() {
      const { data } = useQuery(GetUserQuery);
      return (
        {data && (
          <>
            {isFragmentReady(GetUserQuery, OrdersFragment, data)
    					&& <OrdersList data={data} />}
          </>
        )}
      );
    }
    export default App;
    
  • #​9304 e1dc75f3c Thanks @​esfomeado! - Added support for disabling suffixes on Enums.

Patch Changes

v3.0.4

Compare Source

Patch Changes

v3.0.3

Compare Source

Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/typescript-operations)

v4.4.0

Compare Source

Minor Changes
Patch Changes

v4.3.1

Compare Source

Patch Changes

v4.3.0

Compare Source

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

v4.2.3

Compare Source

Patch Changes

v4.2.2

Compare Source

Patch Changes

v4.2.1

Compare Source

Patch Changes

v4.2.0

Compare Source

Minor Changes
Patch Changes

v4.1.3

Compare Source

Patch Changes

v4.1.2

Compare Source

Patch Changes

v4.1.1

Compare Source

Patch Changes

v4.1.0

Compare Source

Minor Changes
  • #​9811 d8364e045 Thanks @​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: boolean
    feat: implement printFieldsOnNewLines: boolean
Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
  • #​9375 ba84a3a27 Thanks @​eddeee888! - Implement Scalars with input/output types

    In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:

    • A client may send string or number in the input
    • A client receives string in its selection set (i.e output)
    • A server receives string in the resolver (GraphQL parses string or number received from the client to string)
    • A server may return string or number (GraphQL serializes the value to string before sending it to the client )

    Currently, we represent every Scalar with only one type. This is what codegen generates as base type:

    export type Scalars = {
      ID: string
    }
    

    Then, this is used in both input and output type e.g.

    export type Book = {
      __typename?: 'Book'
      id: Scalars['ID'] // Output's ID can be `string` 👍
    }
    
    export type QueryBookArgs = {
      id: Scalars['ID'] // Input's ID can be `string` or `number`. However, the type is only `string` here 👎
    }
    

    This PR extends each Scalar to have input and output:

    export type Scalars = {
      ID: {
        input: string | number
        output: string
      }
    }
    

    Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:

    export type Book = {
      __typename?: 'Book'
      id: Scalars['ID']['output'] // Output's ID can be `string` 👍
    }
    
    export type QueryBookArgs = {
      id: Scalars['ID']['input'] // Input's ID can be `string` or `number` 👍
    }
    

    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:

    export type Scalars = {
      ID: {
        input: string;
        output: string | number;
      }
    }
    
    export type Book = {
      __typename?: "Book";
      id: Scalars["ID"]['output']; // Resolvers can return `string` or `number` in ID fields 👍
    };
    
    export type QueryBookArgs = {
      id: Scalars["ID"]['input']; // Resolvers receive `string` in ID fields 👍
    };
    
    export type ResolversTypes = {
      ID: ID: ResolverTypeWrapper<Scalars['ID']['output']>; // Resolvers can return `string` or `number` in ID fields 👍
    }
    
    export type ResolversParentTypes = {
      ID: Scalars['ID']['output']; // Resolvers receive `string` or `number` from parents 👍
    };
    

    Config changes:

    1. Scalars option can now take input/output types:
    config: {
      scalars: {
        ID: {
          input: 'string',
          output: 'string | number'
        }
      }
    }
    
    1. If a string is given (instead of an object with input/output fields), it will be used as both input and output types:
    config: {
      scalars: {
        ID: 'string' // This means `string` will be used for both ID's input and output types
      }
    }
    
    1. BREAKING CHANGE: External module Scalar types need to be an object with input/output fields
    config: {
      scalars: {
        ID: './path/to/scalar-module'
      }
    }
    

    If correctly, wired up, the following will be generated:

    // Previously, imported `ID` type can be a primitive type, now it must be an object with input/output fields
    import { ID } from './path/to/scalar-module'
    
    export type Scalars = {
      ID: { input: ID['input']; output: ID['output'] }
    }
    

    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 14

Minor Changes
  • #​9196 3848a2b73 Thanks @​beerose! - Add @defer directive support

    When 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.

    // src/index.tsx
    import { graphql } from './gql'
    const OrdersFragment = graphql(`
      fragment OrdersFragment on User {
        orders {
          id
          total
        }
      }
    `)
    const GetUserQuery = graphql(`
      query GetUser($id: ID!) {
        user(id: $id) {
          id
          name
          ...OrdersFragment @&#8203;defer
        }
      }
    `)
    

    The generated type for GetUserQuery will have information that the fragment is incremental, meaning it may not be available right away.

    // gql/graphql.ts
    export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({
      __typename?: 'Query'
    } & {
      ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> }
    })
    

    Apart from generating code that includes support for the @defer directive, the Codegen also exports a utility function called isFragmentReady. You can use it to conditionally render components based on whether the data for a deferred
    fragment is available:

    const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => {
      const data = useFragment(OrdersFragment, props.data);
      return (
        // render orders list
      )
    };
    
    function App() {
      const { data } = useQuery(GetUserQuery);
      return (
        {data && (
          <>
            {isFragmentReady(GetUserQuery, OrdersFragment, data)
    					&& <OrdersList data={data} />}
          </>
        )}
      );
    }
    export default App;
    
  • #​9304 e1dc75f3c Thanks @​esfomeado! - Added support for disabling suffixes on Enums.

Patch Changes

v3.0.4

Compare Source

Patch Changes

v3.0.3

Compare Source

Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator-community (@​graphql-codegen/typescript-react-apollo)

v4.3.2

Compare Source

Patch Changes

v4.3.1

Compare Source

Patch Changes

v4.3.0

Compare Source

Minor Changes
  • #​620
    3e2c8de
    Thanks @​tomaskukk! - Improved type-safety: when a query contains
    required variables, passing the variables object to the useQuery hook is enforced

v4.2.0

Compare Source

Minor Changes
Patch Changes

v4.1.0

Compare Source

Minor Changes

v4.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator-community (@​graphql-codegen/typescript-react-query)

v6.1.0

Compare Source

Minor Changes

v6.0.0

Compare Source

Major Changes
Minor Changes
  • df7683e95
    Thanks @​saihaj! - Allow fetcher config to accept both string and
    object. object let's user specify the import path to their GraphQLClient instance. So it
    will make it easier to generated hooks by not passing down GraphQLClient.

v5.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@graphql-codegen/cli](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/graphql-codegen-cli)) | devDependencies | major | [`^2.11.6` -> `^5.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2fcli/2.16.5/5.0.3) | | [@graphql-codegen/typed-document-node](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typed-document-node)) | devDependencies | major | [`^2.3.3` -> `^5.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftyped-document-node/2.3.13/5.0.12) | | [@graphql-codegen/typescript](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript)) | devDependencies | major | [`^2.7.3` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript/2.8.8/4.1.2) | | [@graphql-codegen/typescript-operations](https://github.com/dotansimha/graphql-code-generator) ([source](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/operations)) | devDependencies | major | [`^2.5.3` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-operations/2.5.13/4.4.0) | | [@graphql-codegen/typescript-react-apollo](https://github.com/dotansimha/graphql-code-generator-community) ([source](https://github.com/dotansimha/graphql-code-generator-community/tree/HEAD/packages/plugins/typescript/react-apollo)) | devDependencies | major | [`^3.3.3` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-react-apollo/3.3.7/4.3.2) | | [@graphql-codegen/typescript-react-query](https://github.com/dotansimha/graphql-code-generator-community) ([source](https://github.com/dotansimha/graphql-code-generator-community/tree/HEAD/packages/plugins/typescript/react-query)) | devDependencies | major | [`^4.0.1` -> `^6.0.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-react-query/4.1.0/6.1.0) | --- ### Release Notes <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/cli)</summary> ### [`v5.0.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#503) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@5.0.2...@graphql-codegen/cli@5.0.3) ##### Patch Changes - [#&#8203;10069](https://github.com/dotansimha/graphql-code-generator/pull/10069) [`8bb34e7`](https://github.com/dotansimha/graphql-code-generator/commit/8bb34e7cd23a8891313828291c9f2edd6a3b67bc) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/fetch@^0.9.20` ↗︎](https://www.npmjs.com/package/@&#8203;whatwg-node/fetch/v/0.9.20) (from `^0.8.0`, in `dependencies`) - Updated dependency [`graphql-config@^5.1.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.1) (from `^5.0.2`, in `dependencies`) - [`e0092b5`](https://github.com/dotansimha/graphql-code-generator/commit/e0092b548f51c95be19c232515cf9a72873e7b83) Thanks [@&#8203;ardatan](https://github.com/ardatan)! - Bump whatwg-node and graphql-config - Updated dependencies \[[`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8), [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf)]: - [@&#8203;graphql-codegen/client-preset](https://github.com/graphql-codegen/client-preset)[@&#8203;4](https://github.com/4).4.0 ### [`v5.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#502) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/86c82177b0b9ab1853f6c4e6fba17218dafa3d7d...@graphql-codegen/cli@5.0.2) ##### Patch Changes - [#&#8203;9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - bumping for a release - Updated dependencies \[[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - [@&#8203;graphql-codegen/client-preset](https://github.com/graphql-codegen/client-preset)[@&#8203;4](https://github.com/4).2.2 - [@&#8203;graphql-codegen/core](https://github.com/graphql-codegen/core)[@&#8203;4](https://github.com/4).0.2 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.3 ### [`v5.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#501) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@5.0.0...86c82177b0b9ab1853f6c4e6fba17218dafa3d7d) ##### Patch Changes - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Added dependency [`@graphql-codegen/client-preset@^4.1.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-codegen/client-preset/v/4.1.0) (to `dependencies`) - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - ignore events in `.git` directory - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Surface error occurring during import of [@&#8203;parcel/watcher](https://github.com/parcel/watcher) - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Include [@&#8203;graphql-codegen/client-preset](https://github.com/graphql-codegen/client-preset) in [@&#8203;graphql-codegen/cli](https://github.com/graphql-codegen/cli) by default - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - fix watcher unable to find highest common directory on Windows - Updated dependencies \[[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - [@&#8203;graphql-codegen/client-preset](https://github.com/graphql-codegen/client-preset)[@&#8203;4](https://github.com/4).2.0 - [@&#8203;graphql-codegen/core](https://github.com/graphql-codegen/core)[@&#8203;4](https://github.com/4).0.1 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.2 ### [`v5.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#500) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@4.0.1...@graphql-codegen/cli@5.0.0) ##### Major Changes - [#&#8203;9506](https://github.com/dotansimha/graphql-code-generator/pull/9506) [`dd9c7e148`](https://github.com/dotansimha/graphql-code-generator/commit/dd9c7e14872f48592e530ff0d646449a5cb722b4) Thanks [@&#8203;valkum](https://github.com/valkum)! - Make [@&#8203;parcel/watcher](https://github.com/parcel/watcher) optional ##### Patch Changes - [#&#8203;9513](https://github.com/dotansimha/graphql-code-generator/pull/9513) [`fdd19d24d`](https://github.com/dotansimha/graphql-code-generator/commit/fdd19d24df21d3257f3e969b79856d18b6f73123) Thanks [@&#8203;cichelero](https://github.com/cichelero)! - Update yaml dependency to 2.3.1 - Updated dependencies \[[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.1 ### [`v4.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#401) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@4.0.0...@graphql-codegen/cli@4.0.1) ##### Patch Changes - [#&#8203;9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) Thanks [@&#8203;gilgardosh](https://github.com/gilgardosh)! - dependencies updates: - Updated dependency [`graphql-config@^5.0.2` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.2) (from `^5.0.1`, in `dependencies`) - [#&#8203;9479](https://github.com/dotansimha/graphql-code-generator/pull/9479) [`0aa444b5d`](https://github.com/dotansimha/graphql-code-generator/commit/0aa444b5d092565c321643a55fb05c7301e303bf) Thanks [@&#8203;gilgardosh](https://github.com/gilgardosh)! - Update graphql-config to v^5.0.2 ### [`v4.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#400) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.3.1...@graphql-codegen/cli@4.0.0) ##### Major Changes - [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js 14 ##### Patch Changes - [#&#8203;9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - Updated dependency [`graphql-config@^5.0.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.0) (from `^4.5.0`, in `dependencies`) - [#&#8203;9449](https://github.com/dotansimha/graphql-code-generator/pull/9449) [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - dependencies updates: - Updated dependency [`@graphql-tools/apollo-engine-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/apollo-engine-loader/v/8.0.0) (from `^7.3.6`, in `dependencies`) - Updated dependency [`@graphql-tools/code-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/code-file-loader/v/8.0.0) (from `^7.3.17`, in `dependencies`) - Updated dependency [`@graphql-tools/git-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/git-loader/v/8.0.0) (from `^7.2.13`, in `dependencies`) - Updated dependency [`@graphql-tools/github-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/github-loader/v/8.0.0) (from `^7.3.28`, in `dependencies`) - Updated dependency [`@graphql-tools/graphql-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/graphql-file-loader/v/8.0.0) (from `^7.5.0`, in `dependencies`) - Updated dependency [`@graphql-tools/json-file-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/json-file-loader/v/8.0.0) (from `^7.4.1`, in `dependencies`) - Updated dependency [`@graphql-tools/load@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/load/v/8.0.0) (from `^7.8.0`, in `dependencies`) - Updated dependency [`@graphql-tools/prisma-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/prisma-loader/v/8.0.0) (from `^7.2.69`, in `dependencies`) - Updated dependency [`@graphql-tools/url-loader@^8.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/url-loader/v/8.0.0) (from `^7.17.17`, in `dependencies`) - Updated dependency [`@graphql-tools/utils@^10.0.0` ↗︎](https://www.npmjs.com/package/@&#8203;graphql-tools/utils/v/10.0.0) (from `^9.0.0`, in `dependencies`) - Updated dependency [`cosmiconfig@^8.1.3` ↗︎](https://www.npmjs.com/package/cosmiconfig/v/8.1.3) (from `^7.0.0`, in `dependencies`) - Updated dependency [`graphql-config@^5.0.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.0.1) (from `^4.5.0`, in `dependencies`) - [#&#8203;9371](https://github.com/dotansimha/graphql-code-generator/pull/9371) [`d431f426e`](https://github.com/dotansimha/graphql-code-generator/commit/d431f426eb594b820ac712b9f5c616f4badf6bff) Thanks [@&#8203;Axxxx0n](https://github.com/Axxxx0n)! - Fixed option ignoreNoDocuments when using graphql configs - [#&#8203;9275](https://github.com/dotansimha/graphql-code-generator/pull/9275) [`2a5da5894`](https://github.com/dotansimha/graphql-code-generator/commit/2a5da589468eb5970587187adae9892ff1f13134) Thanks [@&#8203;milesrichardson](https://github.com/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`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0)]: - [@&#8203;graphql-codegen/core](https://github.com/graphql-codegen/core)[@&#8203;4](https://github.com/4).0.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.0 ### [`v3.3.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#331) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.3.0...@graphql-codegen/cli@3.3.1) ##### Patch Changes - [#&#8203;9267](https://github.com/dotansimha/graphql-code-generator/pull/9267) [`183749346`](https://github.com/dotansimha/graphql-code-generator/commit/1837493464e0b661520deb38c1e5cbd5ed46f978) Thanks [@&#8203;milesrichardson](https://github.com/milesrichardson)! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes [#&#8203;9266](https://github.com/dotansimha/graphql-code-generator/issues/9266)). - [#&#8203;9280](https://github.com/dotansimha/graphql-code-generator/pull/9280) [`ca1d72c40`](https://github.com/dotansimha/graphql-code-generator/commit/ca1d72c408a5f45ecdb17d556e1a3f7d6811cdf4) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - fix the default output directory for init command ### [`v3.3.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#330) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.2.2...@graphql-codegen/cli@3.3.0) ##### Minor Changes - [#&#8203;9151](https://github.com/dotansimha/graphql-code-generator/pull/9151) [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29) Thanks [@&#8203;'./user/schema.mappers#UserMapper',](https://github.com/'./user/schema.mappers#UserMapper',)! - Add `watchPattern` config option for `generates` sections. By default, `watch` mode 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 `generates` section now has a `watchPattern` option 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.ts` files. We want to re-run Codegen if the content of `*.mappers.ts` files 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. ```ts // codegen.ts const config: CodegenConfig = { schema: 'src/schema/**/*.graphql', generates: { 'src/schema/types.ts': { plugins: ['typescript', 'typescript-resolvers'], config: { mappers: { Book: './book/schema.mappers#BookMapper', }, } watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']` }, }, }; ``` Then, run Codegen CLI in `watch` mode: ```shell yarn graphql-codegen --watch ``` Now, updating `*.mappers.ts` files re-runs Codegen! 🎉 Note: `watchPattern` is only used in `watch` mode i.e. running CLI with `--watch` flag. ##### Patch Changes - Updated dependencies \[[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).2.0 ### [`v3.2.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#322) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.2.1...@graphql-codegen/cli@3.2.2) ##### Patch Changes - [#&#8203;9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) Thanks [@&#8203;beerose](https://github.com/beerose)! - dependencies updates: - Updated dependency [`graphql-config@^4.5.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.5.0) (from `^4.4.0`, in `dependencies`) - Added dependency [`jiti@^1.17.1` ↗︎](https://www.npmjs.com/package/jiti/v/1.17.1) (to `dependencies`) - Removed dependency [`cosmiconfig-typescript-loader@^4.3.0` ↗︎](https://www.npmjs.com/package/cosmiconfig-typescript-loader/v/4.3.0) (from `dependencies`) - Removed dependency [`ts-node@^10.9.1` ↗︎](https://www.npmjs.com/package/ts-node/v/10.9.1) (from `dependencies`) - [#&#8203;9086](https://github.com/dotansimha/graphql-code-generator/pull/9086) [`a34cef35b`](https://github.com/dotansimha/graphql-code-generator/commit/a34cef35b4cbbe83c54bd92f88882b325df173fd) Thanks [@&#8203;beerose](https://github.com/beerose)! - Support `codegen.ts` in ESM projects ### [`v3.2.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#321) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.2.0...@graphql-codegen/cli@3.2.1) ##### Patch Changes - [#&#8203;9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Added dependency [`micromatch@^4.0.5` ↗︎](https://www.npmjs.com/package/micromatch/v/4.0.5) (to `dependencies`) - [#&#8203;9051](https://github.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://github.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@&#8203;saihaj](https://github.com/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 execute ### [`v3.2.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#320) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e352f6864b8ebeb7322851b...@graphql-codegen/cli@3.2.0) ##### Minor Changes - [#&#8203;9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - use [@&#8203;parcel/watcher](https://github.com/parcel/watcher) for improved watch functionality ##### Patch Changes - [#&#8203;9009](https://github.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://github.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Added dependency [`@parcel/watcher@^2.1.0` ↗︎](https://www.npmjs.com/package/@&#8203;parcel/watcher/v/2.1.0) (to `dependencies`) - Removed dependency [`chokidar@^3.5.2` ↗︎](https://www.npmjs.com/package/chokidar/v/3.5.2) (from `dependencies`) ### [`v3.1.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#310) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Minor Changes - [#&#8203;8893](https://github.com/dotansimha/graphql-code-generator/pull/8893) [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - It is no longer mandatory to declare an empty plugins array when using a preset - [#&#8203;8723](https://github.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@&#8203;kazekyo](https://github.com/kazekyo)! - Introduce a new feature called DocumentTransform. DocumentTransform is a functionality that allows you to modify `documents` before they are processed by plugins. You can use functions passed to the `documentTransforms` option to make changes to GraphQL documents. To use this feature, you can write `documentTransforms` as follows: ```ts import type { CodegenConfig } from '@&#8203;graphql-codegen/cli' const config: CodegenConfig = { schema: 'https://localhost:4000/graphql', documents: ['src/**/*.tsx'], generates: { './src/gql/': { preset: 'client', documentTransforms: [ { transform: ({ documents }) => { // Make some changes to the documents return documents } } ] } } } export default config ``` For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code: ```js import type { CodegenConfig } from '@&#8203;graphql-codegen/cli' import { visit } from 'graphql' const config: CodegenConfig = { schema: 'https://localhost:4000/graphql', documents: ['src/**/*.tsx'], generates: { './src/gql/': { preset: 'client', documentTransforms: [ { transform: ({ documents }) => { return documents.map(documentFile => { documentFile.document = visit(documentFile.document, { Directive: { leave(node) { if (node.name.value === 'localOnlyDirective') return null } } }) return documentFile }) } } ] } } } export default config ``` 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: ```js module.exports = { transform: ({ documents }) => { // Make some changes to the documents return documents } } ``` Then, you can specify the file name as follows: ```ts import type { CodegenConfig } from '@&#8203;graphql-codegen/cli' const config: CodegenConfig = { schema: 'https://localhost:4000/graphql', documents: ['src/**/*.tsx'], generates: { './src/gql/': { preset: 'client', documentTransforms: ['./my-document-transform.js'] } } } export default config ``` ##### Patch Changes - [#&#8203;9000](https://github.com/dotansimha/graphql-code-generator/pull/9000) [`4c422ccf6`](https://github.com/dotansimha/graphql-code-generator/commit/4c422ccf6384cfb0d0949ebe5567923973b1a044) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/fetch@^0.8.0` ↗︎](https://www.npmjs.com/package/@&#8203;whatwg-node/fetch/v/0.8.0) (from `^0.6.0`, in `dependencies`) - Updated dependencies \[[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@&#8203;graphql-codegen/core](https://github.com/graphql-codegen/core)[@&#8203;3](https://github.com/3).1.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).1.0 ### [`v3.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#300) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@2.16.5...@graphql-codegen/cli@3.0.0) ##### Major Changes - [#&#8203;8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support ##### Patch Changes - [#&#8203;8883](https://github.com/dotansimha/graphql-code-generator/pull/8883) [`321d5112e`](https://github.com/dotansimha/graphql-code-generator/commit/321d5112e802fd1d96daf556095b102a81763804) Thanks [@&#8203;Solo-steven](https://github.com/Solo-steven)! - Fix PluckConfig overwrite problem. - Updated dependencies \[[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: - [@&#8203;graphql-codegen/core](https://github.com/graphql-codegen/core)[@&#8203;3](https://github.com/3).0.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).0.0 </details> <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/typed-document-node)</summary> ### [`v5.0.12`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#5012) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.11...@graphql-codegen/typed-document-node@5.0.12) ##### Patch Changes - Updated dependencies \[[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).6.0 ### [`v5.0.11`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#5011) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.10...@graphql-codegen/typed-document-node@5.0.11) ##### Patch Changes - [#&#8203;10160](https://github.com/dotansimha/graphql-code-generator/pull/10160) [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175) Thanks [@&#8203;jyasskin](https://github.com/jyasskin)! - Allow explicit `undefined` in additional to optional arguments - Updated dependencies \[[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).5.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).1.0 ### [`v5.0.10`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#5010) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.9...@graphql-codegen/typed-document-node@5.0.10) ##### Patch Changes - Updated dependencies \[[`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).4.0 ### [`v5.0.9`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#509) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.8...@graphql-codegen/typed-document-node@5.0.9) ##### Patch Changes - Updated dependencies \[[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.1 ### [`v5.0.8`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#508) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.7...@graphql-codegen/typed-document-node@5.0.8) ##### Patch Changes - Updated dependencies \[[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.0 ### [`v5.0.7`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#507) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.6...@graphql-codegen/typed-document-node@5.0.7) ##### Patch Changes - Updated dependencies \[[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.4 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).2.0 ### [`v5.0.6`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#506) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.5...@graphql-codegen/typed-document-node@5.0.6) ##### Patch Changes - Updated dependencies \[[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).1.0 ### [`v5.0.5`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#505) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.4...@graphql-codegen/typed-document-node@5.0.5) ##### Patch Changes - Updated dependencies \[[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).0.0 ### [`v5.0.4`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#504) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.3...@graphql-codegen/typed-document-node@5.0.4) ##### Patch Changes - [#&#8203;9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - bumping for a release - Updated dependencies \[[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.2 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.3 ### [`v5.0.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#503) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/86c82177b0b9ab1853f6c4e6fba17218dafa3d7d...@graphql-codegen/typed-document-node@5.0.3) ##### Patch Changes - Updated dependencies \[[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.1 ### [`v5.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#502) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.1...86c82177b0b9ab1853f6c4e6fba17218dafa3d7d) ##### Patch Changes - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) - Updated dependencies \[[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.2 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.0 ### [`v5.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#5012) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.0...@graphql-codegen/typed-document-node@5.0.1) ##### Patch Changes - Updated dependencies \[[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).6.0 ### [`v5.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#500) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@4.0.1...@graphql-codegen/typed-document-node@5.0.0) ##### Major Changes - [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js 14 ##### Minor Changes - [#&#8203;9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@&#8203;beerose](https://github.com/beerose)! - Add `@defer` directive support When 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. ```jsx // src/index.tsx import { graphql } from './gql' const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { id total } } `) const GetUserQuery = graphql(` query GetUser($id: ID!) { user(id: $id) { id name ...OrdersFragment @&#8203;defer } } `) ``` The generated type for `GetUserQuery` will have information that the fragment is *incremental,* meaning it may not be available right away. ```tsx // gql/graphql.ts export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({ __typename?: 'Query' } & { ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> } }) ``` Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => { const data = useFragment(OrdersFragment, props.data); return ( // render orders list ) }; function App() { const { data } = useQuery(GetUserQuery); return ( {data && ( <> {isFragmentReady(GetUserQuery, OrdersFragment, data) && <OrdersList data={data} />} </> )} ); } export default App; ``` ##### Patch Changes - Updated dependencies \[[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.0 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).0.0 ### [`v4.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#401) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@4.0.0...@graphql-codegen/typed-document-node@4.0.1) ##### Patch Changes - Updated dependencies \[[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.1 ### [`v4.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#400) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@3.0.2...@graphql-codegen/typed-document-node@4.0.0) ##### Major Changes - [#&#8203;9137](https://github.com/dotansimha/graphql-code-generator/pull/9137) [`2256c8b5d`](https://github.com/dotansimha/graphql-code-generator/commit/2256c8b5d0e13057d35692bbeba3b7b8f94d8712) Thanks [@&#8203;beerose](https://github.com/beerose)! - Add `TypedDocumentNode` string alternative that doesn't require GraphQL AST on the client. This change requires `@graphql-typed-document-node/core` in version `3.2.0` or higher. ##### Patch Changes - Updated dependencies \[[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).2.0 ### [`v3.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#302) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e352f6864b8ebeb7322851b...@graphql-codegen/typed-document-node@3.0.2) ##### Patch Changes - Updated dependencies \[[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.2 ### [`v3.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#301) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Patch Changes - [#&#8203;8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) - [#&#8203;8971](https://github.com/dotansimha/graphql-code-generator/pull/8971) [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - Allow passing fragment documents to APIs like Apollos `readFragment` - Updated dependencies \[[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).1.0 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.1 ### [`v3.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#300) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@2.3.13...@graphql-codegen/typed-document-node@3.0.0) ##### Major Changes - [#&#8203;8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support ##### Patch Changes - Updated dependencies \[[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).0.0 </details> <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/typescript)</summary> ### [`v4.1.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#412) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.1.1...@graphql-codegen/typescript@4.1.2) ##### Patch Changes - Updated dependencies \[[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).6.0 ### [`v4.1.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#411) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.1.0...@graphql-codegen/typescript@4.1.1) ##### Patch Changes - Updated dependencies \[[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).5.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).1.0 ### [`v4.1.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#410) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.9...@graphql-codegen/typescript@4.1.0) ##### Minor Changes - [#&#8203;10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@&#8203;eddeee888](https://github.com/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`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).4.0 ### [`v4.0.9`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#409) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.8...@graphql-codegen/typescript@4.0.9) ##### Patch Changes - Updated dependencies \[[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.1 ### [`v4.0.8`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#408) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.7...@graphql-codegen/typescript@4.0.8) ##### Patch Changes - Updated dependencies \[[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.0 ### [`v4.0.7`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#407) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.6...@graphql-codegen/typescript@4.0.7) ##### Patch Changes - Updated dependencies \[[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.4 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).2.0 ### [`v4.0.6`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#406) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.5...@graphql-codegen/typescript@4.0.6) ##### Patch Changes - Updated dependencies \[[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).1.0 ### [`v4.0.5`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#405) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.4...@graphql-codegen/typescript@4.0.5) ##### Patch Changes - Updated dependencies \[[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).0.0 ### [`v4.0.4`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#404) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.3...@graphql-codegen/typescript@4.0.4) ##### Patch Changes - [#&#8203;9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - bumping for a release - Updated dependencies \[[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.2 - [@&#8203;graphql-codegen/schema-ast](https://github.com/graphql-codegen/schema-ast)[@&#8203;4](https://github.com/4).0.2 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.3 ### [`v4.0.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#403) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/86c82177b0b9ab1853f6c4e6fba17218dafa3d7d...@graphql-codegen/typescript@4.0.3) ##### Patch Changes - Updated dependencies \[[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.1 ### [`v4.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#402) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.1...86c82177b0b9ab1853f6c4e6fba17218dafa3d7d) ##### Patch Changes - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) - Updated dependencies \[[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.2 - [@&#8203;graphql-codegen/schema-ast](https://github.com/graphql-codegen/schema-ast)[@&#8203;4](https://github.com/4).0.1 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.0 ### [`v4.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#401) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.0...@graphql-codegen/typescript@4.0.1) ##### Patch Changes - [#&#8203;9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. - Updated dependencies \[[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).0.1 ### [`v4.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#400) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@3.0.4...@graphql-codegen/typescript@4.0.0) ##### Major Changes - [#&#8203;9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) Currently, we represent every Scalar with only one type. This is what codegen generates as base type: ```ts export type Scalars = { ID: string } ``` Then, this is used in both input and output type e.g. ```ts export type Book = { __typename?: 'Book' id: Scalars['ID'] // Output's ID can be `string` 👍 } export type QueryBookArgs = { id: Scalars['ID'] // Input's ID can be `string` or `number`. However, the type is only `string` here 👎 } ``` This PR extends each Scalar to have input and output: ```ts export type Scalars = { ID: { input: string | number output: string } } ``` Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type: ```ts export type Book = { __typename?: 'Book' id: Scalars['ID']['output'] // Output's ID can be `string` 👍 } export type QueryBookArgs = { id: Scalars['ID']['input'] // Input's ID can be `string` or `number` 👍 } ``` 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: ```ts export type Scalars = { ID: { input: string; output: string | number; } } export type Book = { __typename?: "Book"; id: Scalars["ID"]['output']; // Resolvers can return `string` or `number` in ID fields 👍 }; export type QueryBookArgs = { id: Scalars["ID"]['input']; // Resolvers receive `string` in ID fields 👍 }; export type ResolversTypes = { ID: ID: ResolverTypeWrapper<Scalars['ID']['output']>; // Resolvers can return `string` or `number` in ID fields 👍 } export type ResolversParentTypes = { ID: Scalars['ID']['output']; // Resolvers receive `string` or `number` from parents 👍 }; ``` *** Config changes: 1. Scalars option can now take input/output types: ```ts config: { scalars: { ID: { input: 'string', output: 'string | number' } } } ``` 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: ```ts config: { scalars: { ID: 'string' // This means `string` will be used for both ID's input and output types } } ``` 3. BREAKING CHANGE: External module Scalar types need to be an object with input/output fields ```ts config: { scalars: { ID: './path/to/scalar-module' } } ``` If correctly, wired up, the following will be generated: ```ts // Previously, imported `ID` type can be a primitive type, now it must be an object with input/output fields import { ID } from './path/to/scalar-module' export type Scalars = { ID: { input: ID['input']; output: ID['output'] } } ``` *** 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`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js 14 ##### Minor Changes - [#&#8203;9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@&#8203;beerose](https://github.com/beerose)! - Add `@defer` directive support When 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. ```jsx // src/index.tsx import { graphql } from './gql' const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { id total } } `) const GetUserQuery = graphql(` query GetUser($id: ID!) { user(id: $id) { id name ...OrdersFragment @&#8203;defer } } `) ``` The generated type for `GetUserQuery` will have information that the fragment is *incremental,* meaning it may not be available right away. ```tsx // gql/graphql.ts export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({ __typename?: 'Query' } & { ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> } }) ``` Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => { const data = useFragment(OrdersFragment, props.data); return ( // render orders list ) }; function App() { const { data } = useQuery(GetUserQuery); return ( {data && ( <> {isFragmentReady(GetUserQuery, OrdersFragment, data) && <OrdersList data={data} />} </> )} ); } export default App; ``` - [#&#8203;9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@&#8203;esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. ##### Patch Changes - Updated dependencies \[[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.0 - [@&#8203;graphql-codegen/schema-ast](https://github.com/graphql-codegen/schema-ast)[@&#8203;4](https://github.com/4).0.0 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).0.0 ### [`v3.0.4`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#304) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@3.0.3...@graphql-codegen/typescript@3.0.4) ##### Patch Changes - Updated dependencies \[[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.1 ### [`v3.0.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#303) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@3.0.2...@graphql-codegen/typescript@3.0.3) ##### Patch Changes - [#&#8203;9150](https://github.com/dotansimha/graphql-code-generator/pull/9150) [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1) Thanks [@&#8203;rliljest](https://github.com/rliljest)! - Properly escape enum identifiers when enumsAsConst is used - Updated dependencies \[[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).2.0 ### [`v3.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#302) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e352f6864b8ebeb7322851b...@graphql-codegen/typescript@3.0.2) ##### Patch Changes - Updated dependencies \[[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.2 ### [`v3.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#301) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Patch Changes - [#&#8203;8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) - Updated dependencies \[[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).1.0 - [@&#8203;graphql-codegen/schema-ast](https://github.com/graphql-codegen/schema-ast)[@&#8203;3](https://github.com/3).0.1 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.1 ### [`v3.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#300) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@2.8.8...@graphql-codegen/typescript@3.0.0) ##### Major Changes - [#&#8203;8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support ##### Patch Changes - Updated dependencies \[[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).0.0 - [@&#8203;graphql-codegen/schema-ast](https://github.com/graphql-codegen/schema-ast)[@&#8203;3](https://github.com/3).0.0 </details> <details> <summary>dotansimha/graphql-code-generator (@&#8203;graphql-codegen/typescript-operations)</summary> ### [`v4.4.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#440) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.3.1...@graphql-codegen/typescript-operations@4.4.0) ##### Minor Changes - [#&#8203;10163](https://github.com/dotansimha/graphql-code-generator/pull/10163) [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba) Thanks [@&#8203;jerelmiller](https://github.com/jerelmiller)! - Add support for Apollo Client `@unmask` directive with fragment masking. ##### Patch Changes - Updated dependencies \[[`1617e3c`](https://github.com/dotansimha/graphql-code-generator/commit/1617e3cf38f3059cc5ea88b540033f521f03725a), [`fa64fbf`](https://github.com/dotansimha/graphql-code-generator/commit/fa64fbf8a44e1cee7ae17806dcd178dc7350c4ba)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).6.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).1.2 ### [`v4.3.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#431) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.3.0...@graphql-codegen/typescript-operations@4.3.1) ##### Patch Changes - Updated dependencies \[[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).5.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).1.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).1.1 ### [`v4.3.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#430) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.2.3...@graphql-codegen/typescript-operations@4.3.0) ##### Minor Changes - [#&#8203;10077](https://github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@&#8203;eddeee888](https://github.com/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`](https://github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).4.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).1.0 ### [`v4.2.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#423) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.2.2...@graphql-codegen/typescript-operations@4.2.3) ##### Patch Changes - Updated dependencies \[[`79fee3c`](https://github.com/dotansimha/graphql-code-generator/commit/79fee3cada20d683d250aad5aa5fef9d6ed9f4d2)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.1 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.9 ### [`v4.2.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#422) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.2.1...@graphql-codegen/typescript-operations@4.2.2) ##### Patch Changes - Updated dependencies \[[`808ada5`](https://github.com/dotansimha/graphql-code-generator/commit/808ada595d83d39cad045da5824cac6378e9eca3), [`14ce39e`](https://github.com/dotansimha/graphql-code-generator/commit/14ce39e41dfee38c652be736664177fa2b1df421)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).3.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.8 ### [`v4.2.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#421) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.2.0...@graphql-codegen/typescript-operations@4.2.1) ##### Patch Changes - Updated dependencies \[[`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`156cc2b`](https://github.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431), [`dfc5310`](https://github.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e), [`b49457b`](https://github.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.4 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).2.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.7 ### [`v4.2.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#420) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.1.3...@graphql-codegen/typescript-operations@4.2.0) ##### Minor Changes - [#&#8203;9652](https://github.com/dotansimha/graphql-code-generator/pull/9652) [`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53) Thanks [@&#8203;gmurphey](https://github.com/gmurphey)! - Added allowUndefinedQueryVariables as config option ##### Patch Changes - [#&#8203;9842](https://github.com/dotansimha/graphql-code-generator/pull/9842) [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d) Thanks [@&#8203;henryqdineen](https://github.com/henryqdineen)! - properly handle aliased conditionals - Updated dependencies \[[`920b443`](https://github.com/dotansimha/graphql-code-generator/commit/920b443a401b8cc4811f64ec5b25fc7b4ae32b53), [`ed9c205`](https://github.com/dotansimha/graphql-code-generator/commit/ed9c205d15d7f14ed73e54aecf40e4fad5664e9d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).1.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.6 ### [`v4.1.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#413) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.1.2...@graphql-codegen/typescript-operations@4.1.3) ##### Patch Changes - Updated dependencies \[[`53f270a`](https://github.com/dotansimha/graphql-code-generator/commit/53f270acfa1da992e0f9d2e50921bb588392f8a5)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://github.com/5).0.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.5 ### [`v4.1.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#412) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.1.1...@graphql-codegen/typescript-operations@4.1.2) ##### Patch Changes - [#&#8203;9813](https://github.com/dotansimha/graphql-code-generator/pull/9813) [`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - bumping for a release - Updated dependencies \[[`4e69568`](https://github.com/dotansimha/graphql-code-generator/commit/4e6956899c96f8954cea8d5bbe32aa35a70cc653)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.2 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.4 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.3 ### [`v4.1.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#411) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/86c82177b0b9ab1853f6c4e6fba17218dafa3d7d...@graphql-codegen/typescript-operations@4.1.1) ##### Patch Changes - Updated dependencies \[[`7718a8113`](https://github.com/dotansimha/graphql-code-generator/commit/7718a8113dc6282475cb738f1e28698b8221fa2f)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.1 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.3 ### [`v4.1.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#410) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.0.1...86c82177b0b9ab1853f6c4e6fba17218dafa3d7d) ##### Minor Changes - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - fix: out-of-memory crash (fixes [#&#8203;7720](https://github.com/dotansimha/graphql-code-generator/issues/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: boolean` feat: implement `printFieldsOnNewLines: boolean` ##### Patch Changes - [#&#8203;9811](https://github.com/dotansimha/graphql-code-generator/pull/9811) [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - dependencies updates: - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.5.0`, in `dependencies`) - Updated dependencies \[[`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975), [`d8364e045`](https://github.com/dotansimha/graphql-code-generator/commit/d8364e045a46ca6e8173583b5108d161c6832975)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.2 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.2 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).1.0 ### [`v4.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#401) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@4.0.0...@graphql-codegen/typescript-operations@4.0.1) ##### Patch Changes - [#&#8203;9497](https://github.com/dotansimha/graphql-code-generator/pull/9497) [`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Revert default ID scalar input type to string We changed the ID Scalar input type from `string` to `string | number` in the latest major version of `typescript` plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on `typescript` plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. - Updated dependencies \[[`2276708d0`](https://github.com/dotansimha/graphql-code-generator/commit/2276708d0ea2aab4942136923651226de4aabe5a)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).0.1 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.1 ### [`v4.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#400) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@3.0.4...@graphql-codegen/typescript-operations@4.0.0) ##### Major Changes - [#&#8203;9375](https://github.com/dotansimha/graphql-code-generator/pull/9375) [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929) Thanks [@&#8203;eddeee888](https://github.com/eddeee888)! - Implement Scalars with input/output types In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID: - A client may send `string` or `number` in the input - A client receives `string` in its selection set (i.e output) - A server receives `string` in the resolver (GraphQL parses `string` or `number` received from the client to `string`) - A server may return `string` or `number` (GraphQL serializes the value to `string` before sending it to the client ) Currently, we represent every Scalar with only one type. This is what codegen generates as base type: ```ts export type Scalars = { ID: string } ``` Then, this is used in both input and output type e.g. ```ts export type Book = { __typename?: 'Book' id: Scalars['ID'] // Output's ID can be `string` 👍 } export type QueryBookArgs = { id: Scalars['ID'] // Input's ID can be `string` or `number`. However, the type is only `string` here 👎 } ``` This PR extends each Scalar to have input and output: ```ts export type Scalars = { ID: { input: string | number output: string } } ``` Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type: ```ts export type Book = { __typename?: 'Book' id: Scalars['ID']['output'] // Output's ID can be `string` 👍 } export type QueryBookArgs = { id: Scalars['ID']['input'] // Input's ID can be `string` or `number` 👍 } ``` 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: ```ts export type Scalars = { ID: { input: string; output: string | number; } } export type Book = { __typename?: "Book"; id: Scalars["ID"]['output']; // Resolvers can return `string` or `number` in ID fields 👍 }; export type QueryBookArgs = { id: Scalars["ID"]['input']; // Resolvers receive `string` in ID fields 👍 }; export type ResolversTypes = { ID: ID: ResolverTypeWrapper<Scalars['ID']['output']>; // Resolvers can return `string` or `number` in ID fields 👍 } export type ResolversParentTypes = { ID: Scalars['ID']['output']; // Resolvers receive `string` or `number` from parents 👍 }; ``` *** Config changes: 1. Scalars option can now take input/output types: ```ts config: { scalars: { ID: { input: 'string', output: 'string | number' } } } ``` 2. If a string is given (instead of an object with input/output fields), it will be used as both input and output types: ```ts config: { scalars: { ID: 'string' // This means `string` will be used for both ID's input and output types } } ``` 3. BREAKING CHANGE: External module Scalar types need to be an object with input/output fields ```ts config: { scalars: { ID: './path/to/scalar-module' } } ``` If correctly, wired up, the following will be generated: ```ts // Previously, imported `ID` type can be a primitive type, now it must be an object with input/output fields import { ID } from './path/to/scalar-module' export type Scalars = { ID: { input: ID['input']; output: ID['output'] } } ``` *** 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`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - Require Node.js `>= 16`. Drop support for Node.js 14 ##### Minor Changes - [#&#8203;9196](https://github.com/dotansimha/graphql-code-generator/pull/9196) [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96) Thanks [@&#8203;beerose](https://github.com/beerose)! - Add `@defer` directive support When 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. ```jsx // src/index.tsx import { graphql } from './gql' const OrdersFragment = graphql(` fragment OrdersFragment on User { orders { id total } } `) const GetUserQuery = graphql(` query GetUser($id: ID!) { user(id: $id) { id name ...OrdersFragment @&#8203;defer } } `) ``` The generated type for `GetUserQuery` will have information that the fragment is *incremental,* meaning it may not be available right away. ```tsx // gql/graphql.ts export type GetUserQuery = { __typename?: 'Query'; id: string; name: string } & ({ __typename?: 'Query' } & { ' $fragmentRefs'?: { OrdersFragment: Incremental<OrdersFragment> } }) ``` Apart from generating code that includes support for the `@defer` directive, the Codegen also exports a utility function called `isFragmentReady`. You can use it to conditionally render components based on whether the data for a deferred fragment is available: ```jsx const OrdersList = (props: { data: FragmentType<typeof OrdersFragment> }) => { const data = useFragment(OrdersFragment, props.data); return ( // render orders list ) }; function App() { const { data } = useQuery(GetUserQuery); return ( {data && ( <> {isFragmentReady(GetUserQuery, OrdersFragment, data) && <OrdersList data={data} />} </> )} ); } export default App; ``` - [#&#8203;9304](https://github.com/dotansimha/graphql-code-generator/pull/9304) [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823) Thanks [@&#8203;esfomeado](https://github.com/esfomeado)! - Added support for disabling suffixes on Enums. ##### Patch Changes - Updated dependencies \[[`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`4d9ea1a5a`](https://github.com/dotansimha/graphql-code-generator/commit/4d9ea1a5a94cd3458c1bd868ce1ab1cb806257f2), [`f46803a8c`](https://github.com/dotansimha/graphql-code-generator/commit/f46803a8c70840280529a52acbb111c865712af2), [`3848a2b73`](https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96), [`ba84a3a27`](https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929), [`63827fabe`](https://github.com/dotansimha/graphql-code-generator/commit/63827fabede76b2380d40392aba2a3ccb099f0c4), [`50471e651`](https://github.com/dotansimha/graphql-code-generator/commit/50471e6514557db827cd26157262401c6c600a8c), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c), [`ca02ad172`](https://github.com/dotansimha/graphql-code-generator/commit/ca02ad172a0e8f52570fdef4271ec286d883236d), [`e1dc75f3c`](https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823), [`bb66c2a31`](https://github.com/dotansimha/graphql-code-generator/commit/bb66c2a31985c1375912ccd6b2b02933f313c9c0), [`5950f5a68`](https://github.com/dotansimha/graphql-code-generator/commit/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30), [`5aa95aa96`](https://github.com/dotansimha/graphql-code-generator/commit/5aa95aa969993043ba5e9d5dabebd7127ea5e22c)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://github.com/5).0.0 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;4](https://github.com/4).0.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;4](https://github.com/4).0.0 ### [`v3.0.4`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#304) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@3.0.3...@graphql-codegen/typescript-operations@3.0.4) ##### Patch Changes - Updated dependencies \[[`386cf9044`](https://github.com/dotansimha/graphql-code-generator/commit/386cf9044a41d87ed45069b22d26b30f4b262a85), [`402cb8ac0`](https://github.com/dotansimha/graphql-code-generator/commit/402cb8ac0f0c347b186d295c4b69c19e25a65d00)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.1 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;3](https://github.com/3).0.4 ### [`v3.0.3`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#303) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@3.0.2...@graphql-codegen/typescript-operations@3.0.3) ##### Patch Changes - Updated dependencies \[[`e56790104`](https://github.com/dotansimha/graphql-code-generator/commit/e56790104ae56d6c5b48ef71823345bd09d3b835), [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087), [`92d86b009`](https://github.com/dotansimha/graphql-code-generator/commit/92d86b009579edf70f60b0b8e28658af93ff9fd1), [`acb647e4e`](https://github.com/dotansimha/graphql-code-generator/commit/acb647e4efbddecf732b6e55dc47ac40c9bdaf08), [`9f4d9c5a4`](https://github.com/dotansimha/graphql-code-generator/commit/9f4d9c5a479d34da25df8e060a8c2b3b162647dd)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).1.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).2.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;3](https://github.com/3).0.3 ### [`v3.0.2`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#302) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e352f6864b8ebeb7322851b...@graphql-codegen/typescript-operations@3.0.2) ##### Patch Changes - Updated dependencies \[[`ba0610bbd`](https://github.com/dotansimha/graphql-code-generator/commit/ba0610bbd4578d8a82078014766f56d8ae5fcf7a), [`4b49f6fbe`](https://github.com/dotansimha/graphql-code-generator/commit/4b49f6fbed802907b460bfb7b6e9a85f88c555bc), [`b343626c9`](https://github.com/dotansimha/graphql-code-generator/commit/b343626c978b9ee0f14e314cea6c01ae3dad057c)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.2 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;3](https://github.com/3).0.2 ### [`v3.0.1`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#301) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Patch Changes - [#&#8203;8879](https://github.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) - Updated dependencies \[[`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://github.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://github.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://github.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://github.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).1.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;3](https://github.com/3).0.1 - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.1 ### [`v3.0.0`](https://github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/operations/CHANGELOG.md#300) [Compare Source](https://github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-operations@2.5.13...@graphql-codegen/typescript-operations@3.0.0) ##### Major Changes - [#&#8203;8885](https://github.com/dotansimha/graphql-code-generator/pull/8885) [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d) Thanks [@&#8203;n1ru4l](https://github.com/n1ru4l)! - drop Node.js 12 support ##### Patch Changes - Updated dependencies \[[`fc79b65d4`](https://github.com/dotansimha/graphql-code-generator/commit/fc79b65d4914fd25ae6bd5d58ebc7ded573a08a5), [`fd0b0c813`](https://github.com/dotansimha/graphql-code-generator/commit/fd0b0c813015cae4f6f6bda5f4c5515e544eb76d)]: - [@&#8203;graphql-codegen/visitor-plugin-common](https://github.com/graphql-codegen/visitor-plugin-common)[@&#8203;3](https://github.com/3).0.0 - [@&#8203;graphql-codegen/plugin-helpers](https://github.com/graphql-codegen/plugin-helpers)[@&#8203;4](https://github.com/4).0.0 - [@&#8203;graphql-codegen/typescript](https://github.com/graphql-codegen/typescript)[@&#8203;3](https://github.com/3).0.0 </details> <details> <summary>dotansimha/graphql-code-generator-community (@&#8203;graphql-codegen/typescript-react-apollo)</summary> ### [`v4.3.2`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#432) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@4.3.1...@graphql-codegen/typescript-react-apollo@4.3.2) ##### Patch Changes - [#&#8203;835](https://github.com/dotansimha/graphql-code-generator-community/pull/835) [`ea83cf4`](https://github.com/dotansimha/graphql-code-generator-community/commit/ea83cf4b3207d4afe642e68148d7ed145446e3ab) Thanks [@&#8203;jefrydco](https://github.com/jefrydco)! - feat: support skip token for useSuspenseQuery ### [`v4.3.1`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#431) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@4.3.0...@graphql-codegen/typescript-react-apollo@4.3.1) ##### Patch Changes - [#&#8203;805](https://github.com/dotansimha/graphql-code-generator-community/pull/805) [`7df8028`](https://github.com/dotansimha/graphql-code-generator-community/commit/7df8028191c4b956ef3801816ad56a127221e658) Thanks [@&#8203;scottopherson](https://github.com/scottopherson)! - Move `graphql-tag` to `devDependencies` from `peerDependencies`. ### [`v4.3.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#430) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@4.2.0...@graphql-codegen/typescript-react-apollo@4.3.0) ##### Minor Changes - [#&#8203;620](https://github.com/dotansimha/graphql-code-generator-community/pull/620) [`3e2c8de`](https://github.com/dotansimha/graphql-code-generator-community/commit/3e2c8de259d2fcb5330c4427a2404375aeb7cec1) Thanks [@&#8203;tomaskukk](https://github.com/tomaskukk)! - Improved type-safety: when a query contains required variables, passing the variables object to the useQuery hook is enforced ### [`v4.2.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#420) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@4.1.0...@graphql-codegen/typescript-react-apollo@4.2.0) ##### Minor Changes - [#&#8203;483](https://github.com/dotansimha/graphql-code-generator-community/pull/483) [`ba7e551`](https://github.com/dotansimha/graphql-code-generator-community/commit/ba7e551bd1b9827ceefa05b4b11a900200f3668d) Thanks [@&#8203;rickdunkin](https://github.com/rickdunkin)! - Apollo Client `useFragment` hook ##### Patch Changes - [#&#8203;464](https://github.com/dotansimha/graphql-code-generator-community/pull/464) [`fa53f8f`](https://github.com/dotansimha/graphql-code-generator-community/commit/fa53f8f63dea02912fdf4153f32c7f2ae28dae83) Thanks [@&#8203;namoscato](https://github.com/namoscato)! - fix: loosen defaultBaseOptions type ### [`v4.1.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#410) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@4.0.0...@graphql-codegen/typescript-react-apollo@4.1.0) ##### Minor Changes - [#&#8203;392](https://github.com/dotansimha/graphql-code-generator-community/pull/392) [`d86d2052a`](https://github.com/dotansimha/graphql-code-generator-community/commit/d86d2052a00ac5ca63a3a1140cb1419236c85236) Thanks [@&#8203;Hal-ang](https://github.com/Hal-ang)! - feat: support useSuspenseQuery ### [`v4.0.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-apollo/CHANGELOG.md#400) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-apollo@3.3.7...@graphql-codegen/typescript-react-apollo@4.0.0) ##### Major Changes - [#&#8203;411](https://github.com/dotansimha/graphql-code-generator-community/pull/411) [`218778010`](https://github.com/dotansimha/graphql-code-generator-community/commit/2187780109269543d9024a9ee929dca215c5f406) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Drop support for Node.js 12 and 14. Require Node.js `>= 16` ##### Patch Changes - [#&#8203;422](https://github.com/dotansimha/graphql-code-generator-community/pull/422) [`ef0adf8c2`](https://github.com/dotansimha/graphql-code-generator-community/commit/ef0adf8c2124e4b40d23c52966486a887f122b9b) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.4.0`, in `dependencies`) </details> <details> <summary>dotansimha/graphql-code-generator-community (@&#8203;graphql-codegen/typescript-react-query)</summary> ### [`v6.1.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-query/CHANGELOG.md#610) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-query@6.0.0...@graphql-codegen/typescript-react-query@6.1.0) ##### Minor Changes - [#&#8203;552](https://github.com/dotansimha/graphql-code-generator-community/pull/552) [`b403529`](https://github.com/dotansimha/graphql-code-generator-community/commit/b403529bb2805c58285707e4615532140c7e4156) Thanks [@&#8203;neil585456525](https://github.com/neil585456525)! - Fix importOperationTypesFrom missing prefix ### [`v6.0.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-query/CHANGELOG.md#600) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-query@5.0.0...@graphql-codegen/typescript-react-query@6.0.0) ##### Major Changes - [#&#8203;434](https://github.com/dotansimha/graphql-code-generator-community/pull/434) [`935b51f07`](https://github.com/dotansimha/graphql-code-generator-community/commit/935b51f0777047102cc1c33a1a18a4527902e0f9) Thanks [@&#8203;neil585456525](https://github.com/neil585456525)! - Support react-query v5 ##### Minor Changes - [`df7683e95`](https://github.com/dotansimha/graphql-code-generator-community/commit/df7683e9549c5317b08d27cb46a8a0bfe2fc3879) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Allow fetcher config to accept both `string` and `object`. `object` let's user specify the import path to their `GraphQLClient` instance. So it will make it easier to generated hooks by not passing down GraphQLClient. ### [`v5.0.0`](https://github.com/dotansimha/graphql-code-generator-community/blob/HEAD/packages/plugins/typescript/react-query/CHANGELOG.md#500) [Compare Source](https://github.com/dotansimha/graphql-code-generator-community/compare/@graphql-codegen/typescript-react-query@4.1.0...@graphql-codegen/typescript-react-query@5.0.0) ##### Major Changes - [#&#8203;324](https://github.com/dotansimha/graphql-code-generator-community/pull/324) [`d6f48354b`](https://github.com/dotansimha/graphql-code-generator-community/commit/d6f48354be4ed7e9853c235002b65b0fba978de2) Thanks [@&#8203;giubatt](https://github.com/giubatt)! - removed unused pageParamKey parameter from infinite queries hook call - [#&#8203;411](https://github.com/dotansimha/graphql-code-generator-community/pull/411) [`218778010`](https://github.com/dotansimha/graphql-code-generator-community/commit/2187780109269543d9024a9ee929dca215c5f406) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Drop support for Node.js 12 and 14. Require Node.js `>= 16` ##### Minor Changes - [#&#8203;411](https://github.com/dotansimha/graphql-code-generator-community/pull/411) [`218778010`](https://github.com/dotansimha/graphql-code-generator-community/commit/2187780109269543d9024a9ee929dca215c5f406) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - add exposeQueryRootKeys ##### Patch Changes - [#&#8203;422](https://github.com/dotansimha/graphql-code-generator-community/pull/422) [`ef0adf8c2`](https://github.com/dotansimha/graphql-code-generator-community/commit/ef0adf8c2124e4b40d23c52966486a887f122b9b) Thanks [@&#8203;renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.6.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.6.0) (from `~2.4.0`, in `dependencies`) - [#&#8203;411](https://github.com/dotansimha/graphql-code-generator-community/pull/411) [`218778010`](https://github.com/dotansimha/graphql-code-generator-community/commit/2187780109269543d9024a9ee929dca215c5f406) Thanks [@&#8203;saihaj](https://github.com/saihaj)! - Provide reactQueryImportFrom field to custom react-query import from - [#&#8203;391](https://github.com/dotansimha/graphql-code-generator-community/pull/391) [`14dcc7603`](https://github.com/dotansimha/graphql-code-generator-community/commit/14dcc7603735514668a51603b85c6fb2b3fe6a8a) Thanks [@&#8203;AlanSl](https://github.com/AlanSl)! - Correct default value in legacyMode docs comment </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 010e582b86 to 8451307abb 2023-02-05 00:07:43 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 8451307abb to 27fc69f7eb 2023-02-05 12:08:07 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 27fc69f7eb to f1b2408351 2023-02-07 10:01:03 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from f1b2408351 to 63b59c652c 2023-02-11 12:57:27 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 63b59c652c to cdd7b4429c 2023-02-15 01:42:06 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from cdd7b4429c to 6c2fb9134f 2023-02-17 21:53:08 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 6c2fb9134f to ce1e62d6ae 2023-02-21 22:20:30 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from ce1e62d6ae to 39ee1373ad 2023-02-23 20:34:31 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 39ee1373ad to 573d8fc09f 2023-02-26 21:00:20 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 573d8fc09f to 3f1aa06adc 2023-03-02 08:07:04 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 3f1aa06adc to 7f5e7c27fd 2023-03-02 09:41:00 +01:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 7f5e7c27fd to 4f4a082edb 2023-03-26 17:52:42 +02:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 4f4a082edb to 1d5d01eff5 2023-04-04 10:03:45 +02:00 Compare
kjuulh changed title from chore(deps): update graphqlcodegenerator monorepo to v3 to chore(deps): update graphqlcodegenerator monorepo 2023-04-04 10:03:50 +02:00
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 1d5d01eff5 to 8ec8b68523 2023-05-24 10:31:53 +02:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 8ec8b68523 to ce263f9228 2023-07-25 11:30:25 +02:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from ce263f9228 to 702b51f32c 2023-09-25 23:34:21 +02:00 Compare
kjuulh force-pushed renovate/graphqlcodegenerator-monorepo from 702b51f32c to dd1aef9c95 2023-10-25 03:13:09 +02:00 Compare
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/graphqlcodegenerator-monorepo:renovate/graphqlcodegenerator-monorepo
git checkout renovate/graphqlcodegenerator-monorepo
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/cibus-frontend#12
No description provided.