@graphql-codegen/core
Changelog for @graphql-codegen/core: every release with its changes and the pull requests behind them.
6.2.0
Minor Changes
- #10866
959915fThanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-tools/utils@^11.2.0↗︎ (from^11.0.0, independencies) - Updated dependency
graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0↗︎ (from^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0, inpeerDependencies)
- Updated dependency
Patch Changes
- Updated dependencies
[
959915f]:- @graphql-codegen/plugin-helpers@7.1.0
6.1.0
Minor Changes
- #10788
cbf9544Thanks @robertobadalamenti! - Add disableFederationDirectiveAndScalarInjection config to better support Federation v2
6.0.1
Patch Changes
- #10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
6.0.0
Major Changes
- #10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
Patch Changes
5.0.2
Patch Changes
- #10103
9a66574Thanks @renovate! - dependencies updates:- Updated dependency
tslib@^2.8.0↗︎ (from~2.6.0, independencies)
- Updated dependency
- Updated dependencies
[
9a66574,e65d303]:- @graphql-codegen/plugin-helpers@6.3.0
5.0.1
Patch Changes
- #10619
cdf5dc5Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^11.0.0↗︎ (from^10.0.0, independencies)
- Updated dependency
- Updated dependencies
[
cdf5dc5]:- @graphql-codegen/plugin-helpers@6.1.1
5.0.0
Major Changes
- #10218
140298aThanks @eddeee888! - Drop Node 18 support
Patch Changes
- Updated dependencies
[
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:- @graphql-codegen/plugin-helpers@6.0.0
4.0.2
Patch Changes
-
Updated dependencies [
4e69568]:- @graphql-codegen/plugin-helpers@5.0.3
4.0.1
Patch Changes
- #9811
d8364e045Thanks @saihaj! - dependencies updates:- Updated dependency
tslib@~2.6.0↗︎ (from~2.5.0, independencies)
- Updated dependency
- Updated dependencies
[
d8364e045]:- @graphql-codegen/plugin-helpers@5.0.2
4.0.0
Major Changes
Patch Changes
- #9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/schema@^10.0.0↗︎ (from^9.0.0, independencies) - Updated dependency
@graphql-tools/utils@^10.0.0↗︎ (from^9.1.1, independencies)
- Updated dependency
- Updated dependencies
[
4d9ea1a5a,f46803a8c,63827fabe,bb66c2a31]:- @graphql-codegen/plugin-helpers@5.0.0
3.1.0
Minor Changes
-
#8723
a3309e63eThanks @kazekyo! - Introduce a new feature called DocumentTransform.DocumentTransform is a functionality that allows you to modify
documentsbefore they are processed by plugins. You can use functions passed to thedocumentTransformsoption to make changes to GraphQL documents.To use this feature, you can write
documentTransformsas follows: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 configFor instance, to remove a
@localOnlyDirectivedirective fromdocuments, 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 configDocumentTransform 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
- #8879
8206b268dThanks @renovate! - dependencies updates:- Updated dependency
tslib@~2.5.0↗︎ (from~2.4.0, independencies)
- Updated dependency
- Updated dependencies
[
8206b268d,a118c307a,a3309e63e]:- @graphql-codegen/plugin-helpers@4.1.0
3.0.0
Major Changes
Patch Changes
2.6.8
Patch Changes
-
46f75304aThanks @saihaj! - fix the version of@graphql-codegen/plugin-helpers@3.1.1 -
Updated dependencies [
307a5d350]:- @graphql-codegen/plugin-helpers@3.1.1
2.6.7
Patch Changes
2.6.6
Patch Changes
-
#8606
45eb2b18aThanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-tools/utils@^9.1.1↗︎ (from9.0.0, independencies)
- Updated dependency
-
#8606
45eb2b18aThanks @charlypoly! - Fix validation issue on fragment/ops naming conflict
2.6.5
Patch Changes
- #8556
64e553c3fThanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-tools/utils@9.0.0↗︎ (from^8.8.0, independencies)
- Updated dependency
2.6.4
Patch Changes
-
#8548
516170ef6Thanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-tools/utils@9.0.0↗︎ (from^8.8.0, independencies)
- Updated dependency
-
#8548
516170ef6Thanks @charlypoly! - Improve codegen documents and schema validation
2.6.3
Patch Changes
-
#8525
63dc8f205Thanks @charlypoly! - removeDetailledError, not supported by Listr renderer -
Updated dependencies [
63dc8f205]:- @graphql-codegen/plugin-helpers@2.7.2
2.6.2
Patch Changes
- #8207
6c7d3e54bThanks @renovate! - ### Dependencies Updates- Updated dependency
(
@graphql-tools/schema@^9.0.0↗︎) (was^8.5.0, independencies)
- Updated dependency
(
2.6.1
Patch Changes
-
#8189
b408f8238Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolutionnode16ornodenext -
Updated dependencies [
b408f8238]:- @graphql-codegen/plugin-helpers@2.6.2
2.6.0
Minor Changes
-
d84afec09: Support TypeScript ESM modules (
"module": "node16"and"moduleResolution": "node16").
Patch Changes
- Updated dependencies [d84afec09]
- Updated dependencies [a4fe5006b]
- Updated dependencies [8e44df58b]
- @graphql-codegen/plugin-helpers@2.5.0
2.5.1
Patch Changes
- cb9adeb96: Cache validation of documents
- Updated dependencies [cb9adeb96]
- @graphql-codegen/plugin-helpers@2.4.1
2.5.0
Minor Changes
- 754a33715: Performance Profiler —profile
Patch Changes
- Updated dependencies [754a33715]
- @graphql-codegen/plugin-helpers@2.4.0
2.4.0
Minor Changes
- b61dc57cf: feat(core): add graphql@16 in peer dependencies
Patch Changes
- 8643b3bf3: Add GraphQL 16 as a peerDependency
- 6002feb3d: Fix exports in package.json files for react-native projects
- Updated dependencies [6002feb3d]
- @graphql-codegen/plugin-helpers@2.3.2
2.3.0
Minor Changes
- 97ddb487a: feat: GraphQL v16 compatibility
Patch Changes
- Updated dependencies [97ddb487a]
- @graphql-codegen/plugin-helpers@2.3.0
2.2.0
Minor Changes
- 7c60e5acc: feat(core): ability to skip some specific validation rules with skipDocumentsValidation option
Patch Changes
- Updated dependencies [7c60e5acc]
- @graphql-codegen/plugin-helpers@2.2.0
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
- Updated dependencies [24185985a]
- Updated dependencies [39773f59b]
- Updated dependencies [440172cfe]
- @graphql-codegen/plugin-helpers@2.1.0
2.0.0
Major Changes
-
b0cb13df4: Update to latest
graphql-toolsandgraphql-configversion.‼️ ‼️ ‼️ 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.
Patch Changes
- d80efdec4: Removed
typescript-compatiblitysince it’s no longer maintained. Please migrate your codebase to use the latest output of codegen. - Updated dependencies [b0cb13df4]
- @graphql-codegen/plugin-helpers@2.0.0
1.17.10
Patch Changes
- dfd25caf: chore(deps): bump graphql-tools versions
- Updated dependencies [dfd25caf]
- @graphql-codegen/plugin-helpers@1.18.7
1.17.9
Patch Changes
- 1183d173: Bump all packages to resolve issues with shared dependencies
- Updated dependencies [1183d173]
- @graphql-codegen/plugin-helpers@1.18.2
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
- ac067ea0: Filter
prependandappendcoming from plugins, make sure not to add empty lines when not needed - Updated dependencies [1d7c6432]
- Updated dependencies [1d7c6432]
- @graphql-codegen/plugin-helpers@1.17.8