PackageTrack

npm · #4105 most downloaded on npm

@graphql-codegen/cli

7.3.1dotansimha/graphql-code-generator

Release timeline

6088 releases since 2019
20192026

One column per quarter.

Releases

  1. 2.7.04 Jul 2022
    Release notes

    Minor Changes

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • e050230c0: Remove unnecessary browser check

    Patch Changes

    • dfd9f07dc: Fix/multi project
    • 2fb1d8b87: Remove unused tryToBuildSchema function
    • 4dce44263: Bumps @graphql-tools/url-loader to the latest cross-undici-fetch version that has pinned undici to ~5.5.0 in order to fix a bug/breaking-change introduced with [email protected] that causes a GET/HEAD requests cannot have 'body' error. See https://github.com/ardatan/graphql-tools/pull/4559#issue-1292915844 for more details.
    Open source →
  2. 2.7.0-alpha-d6c7238c0.09 Feb 2022pre-release

    Nothing published for this version

  3. 2.7.0-alpha-929a21bcb.031 Mar 2022pre-release

    Nothing published for this version

  4. 2.7.0-alpha-8c5d97899.024 May 2022pre-release

    Nothing published for this version

  5. 2.7.0-alpha-8791d9688.030 Jun 2022pre-release

    Nothing published for this version

  6. 2.7.0-alpha-7c50b8781.09 Feb 2022pre-release

    Nothing published for this version

  7. 2.7.0-alpha-6aa2d3c43.024 May 2022pre-release

    Nothing published for this version

  8. 2.7.0-alpha-252a8d50d.09 Feb 2022pre-release

    Nothing published for this version

  9. 2.7.0-alpha-17490f4bb.024 May 2022pre-release

    Nothing published for this version

  10. 2.7.0-alpha-05066c85f.030 Jun 2022pre-release

    Nothing published for this version

  11. 2.7.0-alpha-0391ca185.024 May 2022pre-release

    Nothing published for this version

  12. 2.6.5-alpha-d6416b45e.01 Jul 2022pre-release

    Nothing published for this version

  13. 2.6.5-alpha-acacb9e7a.01 Jul 2022pre-release

    Nothing published for this version

  14. 2.6.5-alpha-43974d1af.01 Jul 2022pre-release

    Nothing published for this version

  15. 2.6.5-alpha-2f4ab8fa6.04 Jul 2022pre-release

    Nothing published for this version

  16. 2.6.5-alpha-11e1cf4aa.04 Jul 2022pre-release

    Nothing published for this version

  17. 2.6.430 Jun 2022
    Release notes

    Patch Changes

    • 92f714278: Revert "Upgrade latest version"
    Open source →
  18. 2.6.4-alpha-b6ec5b6d1.030 Jun 2022pre-release

    Nothing published for this version

  19. 2.6.329 Jun 2022
    Release notes

    Patch Changes

    • c1fe7758a: Remove unused deps
    • 52b41e90e: bump latest-version to patch vuln
    Open source →
  20. 2.6.3-alpha-af9e4731c.028 Jun 2022pre-release

    Nothing published for this version

  21. 2.6.3-alpha-4a7e799f2.024 Feb 2022pre-release

    Nothing published for this version

  22. 2.6.216 Feb 2022
    Release notes

    Patch Changes

    • 1e3d37a34: resolve local presets
    Open source →
  23. 2.6.2-alpha-714e0efe9.015 Feb 2022pre-release

    Nothing published for this version

  24. 2.6.110 Feb 2022
    Release notes

    Patch Changes

    • 6a2e328e6: feat(cli): --verbose and --debug flags
    Open source →
    Additional notes

    Patch Changes

    Open source →
  25. 2.6.1-alpha-74513a63e.09 Feb 2022pre-release

    Nothing published for this version

  26. 2.6.09 Feb 2022
    Release notes

    Minor Changes

    • 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true this way it ensure that generated code works with non-compliant bundlers.

      You can use the option in your config:

      schema: 'schema.graphql'
       documents:
         - 'src/**/*.graphql'
       emitLegacyCommonJSImports: true
      

      Alternative you can use the CLI to set this option:

      $ codegen --config-file=config.yml --emit-legacy-common-js-imports
      
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    • 35566a02c: Use os.cpus to calculate concurrency limit
    • acc62e548: fix(deps): remove unnecessary dotenv main dependency
    • 35566a02c: Async File System
    Open source →
  27. 2.6.0-alpha-dfbea14f8.09 Feb 2022pre-release

    Nothing published for this version

  28. 2.6.0-alpha-cb6ec4365.09 Feb 2022pre-release

    Nothing published for this version

  29. 2.6.0-alpha-c9d165f6a.09 Feb 2022pre-release

    Nothing published for this version

  30. 2.6.0-alpha-bbecef04a.07 Feb 2022pre-release

    Nothing published for this version

  31. 2.6.0-alpha-aa96076e9.09 Feb 2022pre-release

    Nothing published for this version

  32. 2.6.0-alpha-a52c122aa.09 Feb 2022pre-release

    Nothing published for this version

  33. 2.6.0-alpha-967b742ba.09 Feb 2022pre-release

    Nothing published for this version

  34. 2.6.0-alpha-88c2fecd3.09 Feb 2022pre-release

    Nothing published for this version

  35. 2.6.0-alpha-679ebe9ab.09 Feb 2022pre-release

    Nothing published for this version

  36. 2.6.0-alpha-64b0da579.09 Feb 2022pre-release

    Nothing published for this version

  37. 2.6.0-alpha-3f811f314.09 Feb 2022pre-release

    Nothing published for this version

  38. 2.5.03 Feb 2022
    Release notes

    Minor Changes

    • 1b0b00be3: fix(generic-sdk): fix Requester type when rawQuery is true
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    • d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").

      More information on the TypeScript Release Notes.

    • 8e44df58b: Add new config option to not exit with non-zero exit code when there are no documents.

      You can use this option in your config:

      schema: 'schema.graphql'
      documents:
        - 'src/**/*.graphql'
      ignoreNoDocuments: true
      

      Alternative you can use the CLI to set this option:

      $ codegen --config-file=config.yml --ignore-no-documents
      

    Patch Changes

    • a4fe5006b: Fix TS type error on strictNullChecks: true

      Fix the compiler error:

      node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:5:75 - error TS2339: Property 'enter' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'.
      
      5     enter?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['enter']>>;
                                                                                  ~~~~~~~
      
      node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:6:75 - error TS2339: Property 'leave' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'.
      
      6     leave?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['leave']>>;
                                                                                  ~~~~~~~
      

    Found 2 errors in the same file, starting at: node_modules/@graphql-codegen/plugin-helpers/oldVisit.d.ts:5

    
    Only happens when TS compiler options `strictNullChecks: true` and `skipLibCheck: false`.
    
    `Partial<T>` includes `{}`, therefore `NewVisitor[keyof NewVisitor]` includes `undefined`, and indexing `undefined` is error.
    Eliminate `undefined` by wrapping it inside `NonNullable<...>`.
    
    Related #7519
    
    ## 2.4.2
    
    ### Patch Changes
    
    - a521216d6: broken links within documentation
    
    ## 2.4.1
    
    ### Patch Changes
    
    - cb9adeb96: Cache validation of documents
    
    ## 2.4.0
    
    ### Minor Changes
    
    - 754a33715: Performance Profiler --profile
    
    ## 2.3.2
    
    ### Patch Changes
    
    - 6002feb3d: Fix exports in package.json files for react-native projects
    
    ## 2.3.1
    
    ### Patch Changes
    
    - bcc5636fc: fix wrong dependency version range
    
    ## 2.3.0
    
    ### Minor Changes
    
    - 97ddb487a: feat: GraphQL v16 compatibility
    
    ## 2.2.0
    
    ### Minor Changes
    
    - 7c60e5acc: feat(core): ability to skip some specific validation rules with skipDocumentsValidation option
    
    ## 2.1.1
    
    ### Patch Changes
    
    - 6470e6cc9: fix(plugin-helpers): remove unnecessary import
    - 35199dedf: Fix module not found bug in resolveExternalModuleAndFn
    
    ## 2.1.0
    
    ### Minor Changes
    
    - 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils
    - 440172cfe: support ESM
    
    ### Patch Changes
    
    - 24185985a: bump graphql-tools package versions
    
    ## 2.0.0
    
    ### Major Changes
    
    - b0cb13df4: Update to latest `graphql-tools` and `graphql-config` version.
    
    ‼️ ‼️ ‼️ Please note ‼️ ‼️ ‼️:
    
    This is a breaking change since Node 10 is no longer supported in `graphql-tools`, and also no longer supported for Codegen packages.
    
    ## 1.18.8
    
    ### Patch Changes
    
    - 470336a1: don't require plugins for for config if preset provides plugin. Instead the preset should throw if no plugins were provided.
    
    ## 1.18.7
    
    ### Patch Changes
    
    - dfd25caf: chore(deps): bump graphql-tools versions
    
    ## 1.18.6
    
    ### Patch Changes
    
    - 637338cb: fix: make lifecycle hooks definition a partial
    
    ## 1.18.5
    
    ### Patch Changes
    
    - d9212aa0: fix(visitor-plugin-common): guard for a runtime type error
    
    ## 1.18.4
    
    ### Patch Changes
    
    - 23862e7e: fix(naming-convention): revert and pin change-case-all dependency for workaround #3256
    
    ## 1.18.3
    
    ### Patch Changes
    
    - 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention
    
    ## 1.18.2
    
    ### Patch Changes
    
    - 1183d173: Bump all packages to resolve issues with shared dependencies
    
    ## 1.18.1
    
    ### Patch Changes
    
    - eaf45d1f: fix issue with inline fragment without typeCondition
    
    ## 1.18.0
    
    ### Minor Changes
    
    - 857c603c: Adds the --errors-only flag to the cli to print errors only.
    
    ## 1.17.9
    
    ### Patch Changes
    
    - da8bdd17: Allow hooks to be defined as partial object
    
    ## 1.17.8
    
    ### Patch Changes
    
    - 1d7c6432: Bump all packages to allow "^" in deps and fix compatibility issues
    - 1d7c6432: Bump versions of @graphql-tools/ packages to fix issues with loading schemas and SDL comments
    
    
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • 754a33715: Performance Profiler --profile

    Patch Changes

    • f13d3554e: #5064 Display detailed errors from CLI
    • be7cb3a82: Performance work: resolvers plugins, documents loading
    • Updated dependencies [754a33715]
    Open source →
  39. 2.5.0-alpha-fc06eb8e7.02 Feb 2022pre-release

    Nothing published for this version

  40. 2.5.0-alpha-c9cbc7d69.02 Feb 2022pre-release

    Nothing published for this version

  41. 2.5.0-alpha-bc33c031d.030 Jan 2022pre-release

    Nothing published for this version

  42. 2.4.1-alpha-7b61b3baf.01 Feb 2022pre-release

    Nothing published for this version

  43. 2.4.1-alpha-5081829d6.01 Feb 2022pre-release

    Nothing published for this version

  44. 2.4.1-alpha-06d103feb.01 Feb 2022pre-release

    Nothing published for this version

  45. 2.4.1-alpha-05252ae4a.01 Feb 2022pre-release

    Nothing published for this version

  46. 2.4.021 Jan 2022
    Release notes

    Minor Changes

    • da252a6f3: Expose plugin config type definition as same convension as typescript-resolvers
    Open source →
    Additional notes

    Minor Changes

    • 2cbcbb371: Add new flag to emit legacy common js imports. Default it will be true this way it ensure that generated code works with non-compliant bundlers.

      You can use the option in your config:

      schema: 'schema.graphql'
       documents:
         - 'src/**/*.graphql'
       emitLegacyCommonJSImports: true
      

      Alternative you can use the CLI to set this option:

      $ codegen --config-file=config.yml --emit-legacy-common-js-imports
      

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • 4c42e2a71: Performance optimizations in schema and documents loading (shared promises)
    Open source →
  47. 2.4.0-alpha-6cdbcf02e.03 Jan 2022pre-release

    Nothing published for this version

  48. 2.4.0-alpha-23d229715.029 Dec 2021pre-release

    Nothing published for this version

  49. 2.3.130 Dec 2021
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 525ad580b: Revert breaking change for Next.js applications that are incapable of resolving an import with a .js extension.
    • Updated dependencies [525ad580b]
    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 6002feb3d: Fix exports in package.json files for react-native projects
    • Updated dependencies [8643b3bf3]
    • Updated dependencies [b61dc57cf]
    • Updated dependencies [6002feb3d]
    Open source →
  50. 2.3.015 Nov 2021
    Release notes

    Minor Changes

    Patch Changes

    • Updated dependencies [68bb30e19]
    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    • bc1c932e6: Avoid enforcing return/get the complete object
    • d84afec09: Don't depend on schema AST for cache update generation.
    • Updated dependencies [68bb30e19]
    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    • 4f38d8461: Ensure optional fields are marked as optional in TypeScript
    • Updated dependencies [68bb30e19]
    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    • 68bb30e19: Attach .js extension to relative file imports for compliance with ESM module resolution. Since in CommonJS the .js extension is optional, this is not a breaking change.

      If you have path configuration within your configuration, consider attaching .js if you are migrating to ESM.

      mappers:
        MyOtherType: './my-file.js#MyCustomOtherType',
      
    • d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").

      More information on the TypeScript Release Notes.

    Patch Changes

    • Updated dependencies [68bb30e19]
    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    • 68bb30e19: Attach .js extension to relative file imports for compliance with ESM module resolution. Since in CommonJS the .js extension is optional, this is not a breaking change.

      If you have path configuration within your configuration, consider attaching .js if you are migrating to ESM.

      mappers:
        MyOtherType: './my-file.js#MyCustomOtherType',
      
    • d84afec09: Support TypeScript ESM modules ("module": "node16" and "moduleResolution": "node16").

      More information on the TypeScript Release Notes.

    Patch Changes

    • 1de927e6f: Don't emit imports to the same location, resulting in name clashes.
    • Updated dependencies [68bb30e19]
    • Updated dependencies [d84afec09]
    • Updated dependencies [a4fe5006b]
    • Updated dependencies [8e44df58b]
    Open source →
    Additional notes

    Minor Changes

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • 50c1d3247: feat(cli): export loadCodegenConfig to load codegen configuration files

    Patch Changes

    • 04e2d833b: export generateSearchPlaces
    Open source →
  51. 2.3.0-alpha-f3053e3b7.027 Oct 2021pre-release

    Nothing published for this version

  52. 2.3.0-alpha-5ed8c1163.027 Oct 2021pre-release

    Nothing published for this version

  53. 2.3.0-alpha-166ea3cc1.027 Oct 2021pre-release

    Nothing published for this version

  54. 2.2.229 Oct 2021
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  55. 2.2.113 Oct 2021
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  56. 2.2.1-alpha-e6eb2d6cf.013 Oct 2021pre-release

    Nothing published for this version

  57. 2.2.1-alpha-e04750ad3.013 Oct 2021pre-release

    Nothing published for this version

  58. 2.2.1-alpha-c52eccd72.012 Oct 2021pre-release

    Nothing published for this version

  59. 2.2.1-alpha-b24e050a5.013 Oct 2021pre-release

    Nothing published for this version

  60. 2.2.1-alpha-a09853373.013 Oct 2021pre-release

    Nothing published for this version