- #10282
7d7760d
Thanks @oprypkhantc! - Fix watcher watching project root when schema URL is used
-
#10248
72eb86f
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.10.0
↗︎ (from^0.9.20
, independencies
)
- Updated dependency
-
#10227
6f1741a
Thanks @eddeee888! - Fix schema pointers type to allow an array of pointers -
Updated dependencies [
8737dd8
,ed71811
]:- @graphql-codegen/client-preset@4.6.0
-
#10069
8bb34e7
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.20
↗︎ (from^0.8.0
, independencies
) - Updated dependency
graphql-config@^5.1.1
↗︎ (from^5.0.2
, independencies
)
- Updated dependency
-
e0092b5
Thanks @ardatan! - Bump whatwg-node and graphql-config -
Updated dependencies [
8471a18
,67e7556
]:- @graphql-codegen/client-preset@4.4.0
-
Updated dependencies [
4e69568
]:- @graphql-codegen/client-preset@4.2.2
- @graphql-codegen/core@4.0.2
- @graphql-codegen/plugin-helpers@5.0.3
-
#9811
d8364e045
Thanks @saihaj! - dependencies updates:- Added dependency
@graphql-codegen/client-preset@^4.1.0
↗︎ (todependencies
)
- Added dependency
-
#9811
d8364e045
Thanks @saihaj! - ignore events in.git
directory -
#9811
d8364e045
Thanks @saihaj! - Surface error occurring during import of @parcel/watcher -
#9811
d8364e045
Thanks @saihaj! - Include @graphql-codegen/client-preset in @graphql-codegen/cli by default -
#9811
d8364e045
Thanks @saihaj! - fix watcher unable to find highest common directory on Windows -
Updated dependencies [
d8364e045
,d8364e045
,d8364e045
,d8364e045
]:- @graphql-codegen/client-preset@4.2.0
- @graphql-codegen/core@4.0.1
- @graphql-codegen/plugin-helpers@5.0.2
-
#9513
fdd19d24d
Thanks @cichelero! - Update yaml dependency to 2.3.1 -
Updated dependencies [
bb1e0e96e
]:- @graphql-codegen/plugin-helpers@5.0.1
-
#9479
0aa444b5d
Thanks @gilgardosh! - dependencies updates:- Updated dependency
graphql-config@^5.0.2
↗︎ (from^5.0.1
, independencies
)
- Updated dependency
-
#9479
0aa444b5d
Thanks @gilgardosh! - Update graphql-config to v^5.0.2
-
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:- Updated dependency
graphql-config@^5.0.0
↗︎ (from^4.5.0
, independencies
)
- Updated dependency
-
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/apollo-engine-loader@^8.0.0
↗︎ (from^7.3.6
, independencies
) - Updated dependency
@graphql-tools/code-file-loader@^8.0.0
↗︎ (from^7.3.17
, independencies
) - Updated dependency
@graphql-tools/git-loader@^8.0.0
↗︎ (from^7.2.13
, independencies
) - Updated dependency
@graphql-tools/github-loader@^8.0.0
↗︎ (from^7.3.28
, independencies
) - Updated dependency
@graphql-tools/graphql-file-loader@^8.0.0
↗︎ (from^7.5.0
, independencies
) - Updated dependency
@graphql-tools/json-file-loader@^8.0.0
↗︎ (from^7.4.1
, independencies
) - Updated dependency
@graphql-tools/load@^8.0.0
↗︎ (from^7.8.0
, independencies
) - Updated dependency
@graphql-tools/prisma-loader@^8.0.0
↗︎ (from^7.2.69
, independencies
) - Updated dependency
@graphql-tools/url-loader@^8.0.0
↗︎ (from^7.17.17
, independencies
) - Updated dependency
@graphql-tools/utils@^10.0.0
↗︎ (from^9.0.0
, independencies
) - Updated dependency
cosmiconfig@^8.1.3
↗︎ (from^7.0.0
, independencies
) - Updated dependency
graphql-config@^5.0.1
↗︎ (from^4.5.0
, independencies
)
- Updated dependency
-
#9371
d431f426e
Thanks @Axxxx0n! - Fixed option ignoreNoDocuments when using graphql configs -
#9275
2a5da5894
Thanks @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
,4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:- @graphql-codegen/core@4.0.0
- @graphql-codegen/plugin-helpers@5.0.0
-
#9267
183749346
Thanks @milesrichardson! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes #9266). -
#9280
ca1d72c40
Thanks @saihaj! - fix the default output directory for init command
-
#9151
b7dacb21f
Thanks @'./user/schema.mappers#UserMapper',! - AddwatchPattern
config option forgenerates
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 awatchPattern
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 inwatch
mode i.e. running CLI with--watch
flag.
-
#9086
a34cef35b
Thanks @beerose! - dependencies updates:- Updated dependency
graphql-config@^4.5.0
↗︎ (from^4.4.0
, independencies
) - Added dependency
jiti@^1.17.1
↗︎ (todependencies
) - Removed dependency
cosmiconfig-typescript-loader@^4.3.0
↗︎ (fromdependencies
) - Removed dependency
ts-node@^10.9.1
↗︎ (fromdependencies
)
- Updated dependency
-
#9086
a34cef35b
Thanks @beerose! - Supportcodegen.ts
in ESM projects
-
#9051
f7313f7ca
Thanks @saihaj! - dependencies updates:- Added dependency
micromatch@^4.0.5
↗︎ (todependencies
)
- Added dependency
-
#9051
f7313f7ca
Thanks @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
- #9009
288ed0977
Thanks @saihaj! - dependencies updates:- Added dependency
@parcel/watcher@^2.1.0
↗︎ (todependencies
) - Removed dependency
chokidar@^3.5.2
↗︎ (fromdependencies
)
- Added dependency
-
#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 thedocumentTransforms
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 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 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
- #9000
4c422ccf6
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.8.0
↗︎ (from^0.6.0
, independencies
)
- Updated dependency
- Updated dependencies [
8206b268d
,8206b268d
,a118c307a
,a3309e63e
]:- @graphql-codegen/core@3.1.0
- @graphql-codegen/plugin-helpers@4.1.0
-
#8883
321d5112e
Thanks @Solo-steven! - Fix PluckConfig overwrite problem. -
Updated dependencies [
fc79b65d4
,fd0b0c813
]:- @graphql-codegen/core@3.0.0
- @graphql-codegen/plugin-helpers@4.0.0
-
#8865
e4d073b16
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-codegen/core@^2.6.8
↗︎ (from2.6.8
, independencies
) - Updated dependency
@graphql-tools/load@^7.8.0
↗︎ (from7.8.0
, independencies
) - Updated dependency
cosmiconfig-typescript-loader@^4.3.0
↗︎ (from4.3.0
, independencies
) - Updated dependency
graphql-config@^4.4.0
↗︎ (from4.4.0
, independencies
) - Added dependency
ts-node@^10.9.1
↗︎ (todependencies
) - Removed dependency
ts-node@>=10
↗︎ (frompeerDependencies
)
- Updated dependency
-
#8865
e4d073b16
Thanks @n1ru4l! - move ts-node from peer dependencies to dependencies
-
#8770
4774247e9
Thanks @renovate! - dependencies updates:- Updated dependency
graphql-config@4.4.0
↗︎ (from4.3.6
, independencies
)
- Updated dependency
-
#8790
fe12b4826
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.6.0
↗︎ (from^0.5.0
, independencies
)
- Updated dependency
- #8779
ad5d83313
Thanks @louisscruz! - add ts-node as a peerDependency
-
#8715
b1512a59a
Thanks @renovate! - dependencies updates:- Updated dependency
cosmiconfig-typescript-loader@4.2.0
↗︎ (from4.1.1
, independencies
)
- Updated dependency
-
#8729
e6ff224fb
Thanks @renovate! - dependencies updates:- Updated dependency
cosmiconfig-typescript-loader@4.3.0
↗︎ (from4.2.0
, independencies
)
- Updated dependency
-
#8771
ed87c782b
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/utils@^9.0.0
↗︎ (from^8.9.0
, independencies
)
- Updated dependency
-
#8765
a9c5414d2
Thanks @aniketdd! - update @graphql-tools/prisma-loader -
Updated dependencies [
ed87c782b
,6c6b6f2df
]:- @graphql-codegen/plugin-helpers@3.1.2
- Updated dependencies [
307a5d350
,46f75304a
]:- @graphql-codegen/plugin-helpers@3.1.1
- @graphql-codegen/core@2.6.8
- #8662
c0183810f
Thanks @jantimon! - the life cycle hook beforeOneFileWrite is now able to modify the generated content
- Updated dependencies [
c0183810f
]:- @graphql-codegen/plugin-helpers@3.1.0
-
#8673
a07b6d6c1
Thanks @saihaj! - dependencies updates:- Removed dependency
ansi-escapes@^4.3.1
↗︎ (fromdependencies
)
- Removed dependency
-
#8706
8ff9b41bd
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.5.0
↗︎ (from^0.3.0
, independencies
)
- Updated dependency
-
#8652
c802a0c0b
Thanks @jantimon! - improve typings for life cycle hooks -
Updated dependencies [
a6c2097f4
,f79a00e8a
,c802a0c0b
]:- @graphql-codegen/plugin-helpers@3.0.0
- @graphql-codegen/core@2.6.7
- #8647
40a6761a6
Thanks @charlypoly! - Enable support for loading TS files with import assertions
- #8647
40a6761a6
Thanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-tools/code-file-loader@^7.3.13
↗︎ (from^7.3.1
, independencies
) - Updated dependency
@graphql-tools/git-loader@^7.2.13
↗︎ (from^7.2.1
, independencies
) - Updated dependency
@graphql-tools/github-loader@^7.3.20
↗︎ (from^7.3.6
, independencies
)
- Updated dependency
- #8556
64e553c3f
Thanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-codegen/core@2.6.4
↗︎ (from2.6.3
, independencies
)
- Updated dependency
- Updated dependencies [
64e553c3f
]:- @graphql-codegen/core@2.6.5
-
#8525
63dc8f205
Thanks @charlypoly! - removeDetailledError
, not supported by Listr renderer -
Updated dependencies [
63dc8f205
]:- @graphql-codegen/core@2.6.3
- @graphql-codegen/plugin-helpers@2.7.2
-
#8535
88aa38ff9
Thanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-tools/load@7.8.0
↗︎ (from^7.7.1
, independencies
)
- Updated dependency
-
#8535
88aa38ff9
Thanks @charlypoly! - Upgrade@graphql-tools/load
to get benefits of debug mode
- #8481
8473682c4
Thanks @charlypoly! - ensure to generatecodegen.ts
in a typescript setup
-
#8452
cb1f93618
Thanks @charlypoly! - dependencies updates:- Updated dependency
graphql-config@4.3.6
↗︎ (from^4.3.5
, independencies
)
- Updated dependency
-
#8452
cb1f93618
Thanks @charlypoly! - conflict withgraphql-config
also using TypeScriptLoader(), causing a doublets-node
register.
-
#8441
6785f7f0d
Thanks @charlypoly! - dependencies updates:- Added dependency
cosmiconfig-typescript-loader@4.1.1
↗︎ (todependencies
) - Removed dependency
cosmiconfig-typescript-swc-loader@0.0.2
↗︎ (fromdependencies
)
- Added dependency
-
#8441
6785f7f0d
Thanks @charlypoly! - fix(cli): revert tocosmiconfig-typescript-loader
-
#8415
15d500776
Thanks @charlypoly! - dependencies updates:- Added dependency
cosmiconfig-typescript-swc-loader@0.0.2
↗︎ (todependencies
) - Removed dependency
cosmiconfig-typescript-loader@4.0.0
↗︎ (fromdependencies
)
- Added dependency
-
#8415
15d500776
Thanks @charlypoly! - feat(cli): drop peerDep on "typescript" by usingcosmiconfig-typescript-swc-loader
- #8427
5524ac447
Thanks @charlypoly! - Fix issue withgraphql-codegen init
installation wizard
-
#8405
7f7e52bc2
Thanks @charlypoly! - dependencies updates:- Removed dependency
@graphql-codegen/client-preset@1.0.1
↗︎ (fromdependencies
)
- Removed dependency
-
#8405
7f7e52bc2
Thanks @charlypoly! - remove@graphql-codegen/client-preset
direct dependency
-
#8302
876844e76
Thanks @charlypoly! -@graphql-codegen/gql-tag-operations
and@graphql-codegen/gql-tag-operations-preset
Introduce a
gqlTagName
configuration option
@graphql-codegen/client-preset
New preset for GraphQL Code Generator v3, more information on the RFC: #8296
@graphql-codegen/cli
Update init wizard with 3.0 recommendations (
codegen.ts
,client
preset)
- #8302
876844e76
Thanks @charlypoly! - dependencies updates:- Updated dependency
@graphql-codegen/plugin-helpers@^2.6.2
↗︎ (from^2.7.1
, independencies
) - Updated dependency
@whatwg-node/fetch@^0.3.0
↗︎ (from^0.4.0
, independencies
) - Updated dependency
cosmiconfig-typescript-loader@4.0.0
↗︎ (from^4.0.0
, independencies
) - Added dependency
@babel/generator@^7.18.13
↗︎ (todependencies
) - Added dependency
@babel/template@^7.18.10
↗︎ (todependencies
) - Added dependency
@babel/types@^7.18.13
↗︎ (todependencies
) - Added dependency
@graphql-codegen/client-preset@1.0.1-alpha-20220823170145-c93d8aee3
↗︎ (todependencies
)
- Updated dependency
- Updated dependencies [
876844e76
]:- @graphql-codegen/client-preset@1.0.1
- #8384
9d3eedaea
Thanks @charlypoly! - CLI: properly print error that occurred during hook execution
-
#8335
3e121d92e
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.4.0
↗︎ (from^0.3.0
, independencies
)
- Updated dependency
-
#8368
4113b1bd3
Thanks @charlypoly! - fix(cli): support ApolloEngine loader in TypeScript config -
Updated dependencies [
4113b1bd3
]:- @graphql-codegen/plugin-helpers@2.7.1
- #8301
2ed21a471
Thanks @charlypoly! - Introduces support for TypeScript config file and a new preset lifecycle (required forclient-preset
)
-
#8291
d8b4012e1
Thanks @n1ru4l! - dependencies updates:- Updated dependency
graphql-config@^4.3.5
↗︎ (from^4.3.4
, independencies
)
- Updated dependency
-
#8301
2ed21a471
Thanks @charlypoly! - dependencies updates:- Added dependency
cosmiconfig-typescript-loader@^4.0.0
↗︎ (todependencies
)
- Added dependency
-
Updated dependencies [
2ed21a471
]:- @graphql-codegen/plugin-helpers@2.7.0
-
#8289
b5897fcad
Thanks @n1ru4l! - dependencies updates:- Updated dependency
graphql-config@^4.3.4
↗︎ (from^4.3.1
, independencies
)
- Updated dependency
-
#8289
b5897fcad
Thanks @n1ru4l! - resolve issue for loading typescript configs
-
#8274
b18a0319f
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.3.0
↗︎ (from^0.2.3
, independencies
)
- Updated dependency
- Updated dependencies [
6c7d3e54b
]:- @graphql-codegen/core@2.6.2
- #8198
1c7a8c0ad
Thanks @charlypoly! - fix(ci): regression on error output
-
#8189
b408f8238
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
ornodenext
-
Updated dependencies [
b408f8238
]:- @graphql-codegen/core@2.6.1
- @graphql-codegen/plugin-helpers@2.6.2
- b75ca4b48: Prevent cli from early returning when run init command.
- 8cd1526c4: chore(deps): update
@whatwg-node/fetch
to fix vulnerability
- 20bf4b225: support for path containing "&" characters
- fd6be805b: feat(cli): add a dry-run mode with
--check
cli flag
- 6a2e328e6: feat(cli):
--verbose
and--debug
flags - Updated dependencies [6a2e328e6]
- @graphql-codegen/plugin-helpers@2.6.1
- 273ad602f: Replace cross-undici-fetch with @whatwg-node/fetch to fix security vulnerability from undici
- cc18923d3: feat(hooks): forward hooks logs to debug logs
- e2cfc5c36: fix(cli): prevent duplicated error messages on fail (without watcher)
-
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
-
32c1560f1: getPluginByName fails unexpectedly when plugin is not prefixed with @graphq-codegen in ESM context
MODULE_NOT_FOUND is the error code you receive in a CommonJS context when you require() a module and it does not exist. ERR_MODULE_NOT_FOUND is the error code you receive in an ESM context when you import or import() ad module that does not exist.
-
Updated dependencies [2cbcbb371]
- @graphql-codegen/plugin-helpers@2.6.0
- 147e801bf: Add
tslib
as a dependency. See #8075
-
d84afec09: Add bin CLI command for running
graphql-code-generator
in ESM mode. You can now usegraphql-codegen-esm
instead ofgraphql-codegen
.GraphQL Code Generator will continue supporting both ESM and CommonJS in parallel.
-
d84afec09: Support TypeScript ESM modules (
"module": "node16"
and"moduleResolution": "node16"
). -
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
-
e7870ac28: Fix security vulnerability by removing
latest-version
dependency. -
dce40edeb: Allow to disable watch mode from CLI to overwrite the config. Now you can do:
$ graphql-codegen --watch=false
-
2e86ecb65: ### Summary
- Migrate to
listr2
- Remove custom renderer for
listr
- Remove unused dependencies
listr
is not actively maintained and we have to maintain our custom renderer for it to display errors. Migrating tolistr2
it just works out of the almost similar to how it was working in past and is a actively maintained.Big change for us is how errors were collected. In
listr
errors were thrown and were caught in theend
function of our customlistr
Renderer but withlistr2
we don't really getError
inend
function always so instead we use the context to collect errors from all the tasks and then show them after all the tasks are finished. - Migrate to
-
Updated dependencies [d84afec09]
-
Updated dependencies [a4fe5006b]
-
Updated dependencies [8e44df58b]
- @graphql-codegen/core@2.6.0
- @graphql-codegen/plugin-helpers@2.5.0
- e050230c0: Remove unnecessary browser check
- dfd9f07dc: Fix/multi project
- 2fb1d8b87: Remove unused
tryToBuildSchema
function - 4dce44263: Bumps
@graphql-tools/url-loader
to the latestcross-undici-fetch
version that has pinnedundici
to~5.5.0
in order to fix a bug/breaking-change introduced withundici@5.6.0
that causes aGET/HEAD requests cannot have 'body'
error. See ardatan/graphql-tools#4559 (comment) for more details.
- 92f714278: Revert "Upgrade latest version"
- c1fe7758a: Remove unused deps
- 52b41e90e: bump latest-version to patch vuln
- 1e3d37a34: resolve local presets
- cb9adeb96: Cache validation of documents
- Updated dependencies [cb9adeb96]
- @graphql-codegen/core@2.5.1
- @graphql-codegen/plugin-helpers@2.4.1
- 35566a02c: Use os.cpus to calculate concurrency limit
- acc62e548: fix(deps): remove unnecessary
dotenv
main dependency - 35566a02c: Async File System
- 754a33715: Performance Profiler --profile
- f13d3554e: #5064 Display detailed errors from CLI
- be7cb3a82: Performance work: resolvers plugins, documents loading
- Updated dependencies [754a33715]
- @graphql-codegen/core@2.5.0
- @graphql-codegen/plugin-helpers@2.4.0
- 4c42e2a71: Performance optimizations in schema and documents loading (shared promises)
- 6002feb3d: Fix exports in package.json files for react-native projects
- Updated dependencies [8643b3bf3]
- Updated dependencies [b61dc57cf]
- Updated dependencies [6002feb3d]
- @graphql-codegen/core@2.4.0
- @graphql-codegen/plugin-helpers@2.3.2
- 50c1d3247: feat(cli): export loadCodegenConfig to load codegen configuration files
- 04e2d833b: export generateSearchPlaces
- Updated dependencies [97ddb487a]
- @graphql-codegen/core@2.3.0
- @graphql-codegen/plugin-helpers@2.3.0
- Updated dependencies [7c60e5acc]
- @graphql-codegen/core@2.2.0
- @graphql-codegen/plugin-helpers@2.2.0
- 3e38de399: enhance: sort the schema before processing to have more consistent results. You can disable it with
sort: false
.
- 3e38de399: fix: handle convertExtensions properly with schema definitions
- d3c556f8e: fix: do not alter the indentation of documents
- 39773f59b: enhance(plugins): use getDocumentNodeFromSchema and other utilities from @graphql-tools/utils
- 440172cfe: support ESM
- 24185985a: bump graphql-tools package versions
- 72044c1bd: fix: do not alter the indentation of documents loaded via graphql-config
- Updated dependencies [24185985a]
- Updated dependencies [39773f59b]
- Updated dependencies [440172cfe]
- @graphql-codegen/core@2.1.0
- @graphql-codegen/plugin-helpers@2.1.0
- edd029e87: fix(graphql-modules-preset): do not parse SDL and use extendedSources that have parsed document already
-
b0cb13df4: Update to latest
graphql-tools
andgraphql-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.
- Updated dependencies [b0cb13df4]
- Updated dependencies [d80efdec4]
- @graphql-codegen/core@2.0.0
- @graphql-codegen/plugin-helpers@2.0.0
- e1643e6d4: Fix exception
loader.loaderId is not a function
caused by conflict with an internal dependency of Codegen.
- 470336a1: don't require plugins for for config if preset provides plugin. Instead the preset should throw if no plugins were provided.
- Updated dependencies [470336a1]
- @graphql-codegen/plugin-helpers@1.18.8
- 3b82d1bd: update chokidar
- dfd25caf: chore(deps): bump graphql-tools versions
- Updated dependencies [dfd25caf]
- @graphql-codegen/core@1.17.10
- @graphql-codegen/plugin-helpers@1.18.7
- d9212aa0: fix(visitor-plugin-common): guard for a runtime type error
- Updated dependencies [d9212aa0]
- @graphql-codegen/plugin-helpers@1.18.5
- 23862e7e: fix(naming-convention): revert and pin change-case-all dependency for workaround #3256
- Updated dependencies [23862e7e]
- @graphql-codegen/plugin-helpers@1.18.4
- 29b75b1e: enhance(namingConvention): use change-case-all instead of individual packages for naming convention
- Updated dependencies [29b75b1e]
- @graphql-codegen/plugin-helpers@1.18.3
- dfef1c7c: feat(cli): pass parameters to loaders from plugin config
- f86365c2: Dependencies cleanup
- 0e9ddb5a: Add
merge
(<<
) syntax foryaml
configurations
- bff3fa88: CLI with watch option will reload using new config on change
- 9ebf1877: Fix wrong MODULE_NOT_FOUND for missing dependencies
- aa955f15: fix hooks as single function
- 920d8e95: Allow loading configuration from package.json file
- 1183d173: Bump all packages to resolve issues with shared dependencies
- Updated dependencies [1183d173]
- @graphql-codegen/core@1.17.9
- @graphql-codegen/plugin-helpers@1.18.2
- faa13973: Fix issues with missing sources in loadSchema
- faa13973: fix(cli): use default options of codegen for graphql-config's load methods
- 4ad0319a: Resolve modules passed through the -r flag relative to the cwd
- 93e49f89: Correctly resolve relative to the cwd
- Updated dependencies [eaf45d1f]
- @graphql-codegen/plugin-helpers@1.18.1
- 857c603c: Adds the --errors-only flag to the cli to print errors only.
- Updated dependencies [857c603c]
- @graphql-codegen/plugin-helpers@1.18.0
- ceb9fe0c: Changes watch mode to not use polling by default and adds configurable override
- 186962c9: Use
fs.statSync
when creating custom require instead ofpath.extname
- 2900ee29: Check the error code instead of the error message to determine if a package wasn't found
- e7d56e32: fix issues with init command and missing versions
- 398b094b: Load user provided things relative to the config
- Updated dependencies [da8bdd17]
- @graphql-codegen/plugin-helpers@1.17.9
- 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
- Updated dependencies [1d7c6432]
- Updated dependencies [1d7c6432]
- Updated dependencies [ac067ea0]
- @graphql-codegen/core@1.17.8
- @graphql-codegen/plugin-helpers@1.17.8