- #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