Open
Conversation
3e8a26d to
1180956
Compare
1180956 to
c8c027d
Compare
1d966e8 to
4b567a6
Compare
4b567a6 to
aba753f
Compare
aba753f to
72aeb6c
Compare
72aeb6c to
1769b61
Compare
1769b61 to
d3bc15a
Compare
d3bc15a to
bf06d83
Compare
bf06d83 to
e2b92dc
Compare
e2b92dc to
c38754e
Compare
c38754e to
3c5846a
Compare
3c5846a to
62ceedb
Compare
62ceedb to
e98b9e8
Compare
e98b9e8 to
9a2a4aa
Compare
2517ff4 to
e557cb7
Compare
e557cb7 to
625b104
Compare
37dec99 to
fc3bb83
Compare
4047f99 to
c1e857c
Compare
60b6660 to
e0b8cd6
Compare
fdceb95 to
2641c6f
Compare
2641c6f to
e25700c
Compare
819f125 to
cb4afd3
Compare
facf807 to
3bfecb4
Compare
69240f6 to
21ede89
Compare
f6283df to
afff0e3
Compare
0b2e963 to
bfcc451
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.8.1→6.3.11.8.1→6.0.11.8.1→5.0.21.8.1→5.0.101.8.1→5.1.01.8.1→4.4.212.11.1→24.12.216.9.7→19.2.1416.9.2→19.2.38.2.0→17.4.28.4.1→10.9.23.6.4→6.0.31.7.2→2.8.3Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
v6.3.1Compare Source
Patch Changes
be85118Thanks @eddeee888! - Fix issue where same SDL in different
documents are ignored when handling documents vs externalDocuments
v6.3.0Compare Source
Minor Changes
#10659
e65d303Thanks @ikusakov2! - Add support for
externalDocumentsexternalDocumentsdeclares GraphQL documents that will be read but will not have type filesgenerated for them. These documents are available to plugins for type resolution (e.g. fragment
types), but no output files will be generated based on them. Accepts the same formats as
documents.This config option is useful for monorepos where each project may want to generate types for its
own documents, but some may need to read shared fragments from across projects.
Patch Changes
[
9a66574,9a66574,9a66574,e65d303]:v6.2.1Compare Source
Patch Changes
e804925Thanks @PalmerTurley34! - Honor per-output presetimportExtensionandemitLegacyCommonJSImportsconfig instead of always using the root config values.v6.2.0Compare Source
Minor Changes
8c4db2aThanks @ikusakov2! - Allow GraphQLSchema to be passed directly to generate({schema: ...}) functionPatch Changes
8c4db2a]:v6.1.3Compare Source
Patch Changes
cdf5dc5Thanks @ardatan! - dependencies updates:@graphql-tools/apollo-engine-loader@^8.0.28↗︎ (from^8.0.0, independencies)@graphql-tools/code-file-loader@^8.1.28↗︎ (from^8.0.0, independencies)@graphql-tools/git-loader@^8.0.32↗︎ (from^8.0.0, independencies)@graphql-tools/github-loader@^9.0.6↗︎ (from^9.0.0, independencies)@graphql-tools/graphql-file-loader@^8.1.11↗︎ (from^8.0.0, independencies)@graphql-tools/json-file-loader@^8.0.26↗︎ (from^8.0.0, independencies)@graphql-tools/load@^8.1.8↗︎ (from^8.1.0, independencies)@graphql-tools/url-loader@^9.0.6↗︎ (from^9.0.0, independencies)@graphql-tools/utils@^11.0.0↗︎ (from^10.0.0, independencies)graphql-config@^5.1.6↗︎ (from^5.1.1, independencies)cdf5dc5,cdf5dc5,cdf5dc5]:v6.1.2Compare Source
Patch Changes
e173e11Thanks @ya2s! - Fix GraphQL Config loading to forward nestedextensions.codegen.configoptionswhen loading schemas/documents, matching
codegen.tsbehavior.v6.1.1Compare Source
Patch Changes
#10569
8cb7d43Thanks @etr2460! - fix(graphql-codegen-cli): Don't hang when 0 CPUs are foundFixes generation when 0 CPUs are returned by os.cpus(), which occurs in sandbox environments.
v6.1.0Compare Source
Minor Changes
9e70bcbThanks @nickmessing! - add importExtension configuration optionPatch Changes
9e70bcb]:v6.0.2Compare Source
Patch Changes
aad7f03Thanks @renovate! - dependencies updates:@graphql-tools/github-loader@^9.0.0↗︎ (from^8.0.0, independencies)@graphql-tools/url-loader@^9.0.0↗︎ (from^8.0.0, independencies)v6.0.1Compare Source
Patch Changes
#10468
cb1b9d9Thanks @eddeee888! - In watch mode, do not write output on failurePreviously, on partial or full failure, watch mode still write to output. However, since the output'd be an empty array, it will then call
removeStaleFilesinternally to remove all previously generated files.This patch puts a temporary fix to avoid writing output on any failure to fix the described behaviour.
This also means the
config.allowPartialOutputsdoes not work in watch mode for now.v6.0.0Compare Source
Major Changes
#10218
140298aThanks @eddeee888! - Drop @graphql-tools/prisma-loader#10218
140298aThanks @eddeee888! - AddallowPartialOutputsflag to partially write successful generation to files#10218
140298aThanks @eddeee888! - Migrate inquirer to @inquirer/prompts#10218
140298aThanks @eddeee888! - Bump dependencies major versions:#10218
140298aThanks @eddeee888! - Bump listr2 to v9#10218
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v5.0.7Compare Source
Patch Changes
#10150
e324382Thanks @ArminWiebigke! - Allow functions to be passed as valid values forUrlSchemaOptions.customFetch. This was already possible, but the type definitions did not reflect that correctly.#10358
157c823Thanks @eddeee888! - Remove extraneous error stacktrace if fails to load@parcel/watcherUpdated dependencies [
e324382,98392fc]:v5.0.6Compare Source
Patch Changes
#10338
5d1c4e1Thanks @eddeee888! - Fix ignoreNoDocuments=true swallowing all errors#10333
10ab58dThanks @eddeee888! - Improve syntax error messages whilst loading schema/documentUpdated dependencies [
c5efba3]:v5.0.5Compare Source
Patch Changes
7d7760dThanks @oprypkhantc! - Fix watcher watching project root when schema URL is usedv5.0.4Compare Source
Patch Changes
#10248
72eb86fThanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.10.0↗︎ (from^0.9.20, independencies)#10227
6f1741aThanks @eddeee888! - Fix schema pointers type to allow an array of pointersUpdated dependencies [
8737dd8,ed71811]:v5.0.3Compare Source
Patch Changes
#10069
8bb34e7Thanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.9.20↗︎ (from^0.8.0, independencies)graphql-config@^5.1.1↗︎ (from^5.0.2, independencies)e0092b5Thanks @ardatan! - Bump whatwg-node and graphql-configUpdated dependencies [
8471a18,67e7556]:v5.0.2Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v5.0.1Compare Source
Patch Changes
#9811
d8364e045Thanks @saihaj! - dependencies updates:@graphql-codegen/client-preset@^4.1.0↗︎ (todependencies)#9811
d8364e045Thanks @saihaj! - ignore events in.gitdirectory#9811
d8364e045Thanks @saihaj! - Surface error occurring during import of @parcel/watcher#9811
d8364e045Thanks @saihaj! - Include @graphql-codegen/client-preset in @graphql-codegen/cli by default#9811
d8364e045Thanks @saihaj! - fix watcher unable to find highest common directory on WindowsUpdated dependencies [
d8364e045,d8364e045,d8364e045,d8364e045]:v5.0.0Compare Source
Major Changes
dd9c7e148Thanks @valkum! - Make @parcel/watcher optionalPatch Changes
#9513
fdd19d24dThanks @cichelero! - Update yaml dependency to 2.3.1Updated dependencies [
bb1e0e96e]:v4.0.1Compare Source
Patch Changes
#9479
0aa444b5dThanks @gilgardosh! - dependencies updates:graphql-config@^5.0.2↗︎ (from^5.0.1, independencies)#9479
0aa444b5dThanks @gilgardosh! - Update graphql-config to v^5.0.2v4.0.0Compare Source
Major Changes
bb66c2a31Thanks @n1ru4l! - Require Node.js>= 16. Drop support for Node.js 14Patch Changes
#9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:graphql-config@^5.0.0↗︎ (from^4.5.0, independencies)#9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:@graphql-tools/apollo-engine-loader@^8.0.0↗︎ (from^7.3.6, independencies)@graphql-tools/code-file-loader@^8.0.0↗︎ (from^7.3.17, independencies)@graphql-tools/git-loader@^8.0.0↗︎ (from^7.2.13, independencies)@graphql-tools/github-loader@^8.0.0↗︎ (from^7.3.28, independencies)@graphql-tools/graphql-file-loader@^8.0.0↗︎ (from^7.5.0, independencies)@graphql-tools/json-file-loader@^8.0.0↗︎ (from^7.4.1, independencies)@graphql-tools/load@^8.0.0↗︎ (from^7.8.0, independencies)@graphql-tools/prisma-loader@^8.0.0↗︎ (from^7.2.69, independencies)@graphql-tools/url-loader@^8.0.0↗︎ (from^7.17.17, independencies)@graphql-tools/utils@^10.0.0↗︎ (from^9.0.0, independencies)cosmiconfig@^8.1.3↗︎ (from^7.0.0, independencies)graphql-config@^5.0.1↗︎ (from^4.5.0, independencies)#9371
d431f426eThanks @Axxxx0n! - Fixed option ignoreNoDocuments when using graphql configs#9275
2a5da5894Thanks @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]:v3.3.1Compare Source
Patch Changes
#9267
183749346Thanks @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
ca1d72c40Thanks @saihaj! - fix the default output directory for init commandv3.3.0Compare Source
Minor Changes
#9151
b7dacb21fThanks @'./user/schema.mappers#UserMapper',! - AddwatchPatternconfig option forgeneratessections.By default,
watchmode 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
generatessection now has awatchPatternoption 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.tsfiles. We want to re-run Codegen if the content of*.mappers.tsfiles 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.Then, run Codegen CLI in
watchmode:Now, updating
*.mappers.tsfiles re-runs Codegen! 🎉Note:
watchPatternis only used inwatchmode i.e. running CLI with--watchflag.Patch Changes
b7dacb21f,f104619ac]:v3.2.2Compare Source
Patch Changes
#9086
a34cef35bThanks @beerose! - dependencies updates:graphql-config@^4.5.0↗︎ (from^4.4.0, independencies)jiti@^1.17.1↗︎ (todependencies)cosmiconfig-typescript-loader@^4.3.0↗︎ (fromdependencies)ts-node@^10.9.1↗︎ (fromdependencies)#9086
a34cef35bThanks @beerose! - Supportcodegen.tsin ESM projectsv3.2.1Compare Source
Patch Changes
#9051
f7313f7caThanks @saihaj! - dependencies updates:micromatch@^4.0.5↗︎ (todependencies)#9051
f7313f7caThanks @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 executev3.2.0Compare Source
Minor Changes
288ed0977Thanks @saihaj! - use @parcel/watcher for improved watch functionalityPatch Changes
288ed0977Thanks @saihaj! - dependencies updates:@parcel/watcher@^2.1.0↗︎ (todependencies)chokidar@^3.5.2↗︎ (fromdependencies)v3.1.0Compare Source
Minor Changes
#8893
a118c307aThanks @n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset#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:For instance, to remove a
@localOnlyDirectivedirective fromdocuments, you can write the following code: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:
Then, you can specify the file name as follows:
Patch Changes
4c422ccf6Thanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.8.0↗︎ (from^0.6.0, independencies)8206b268d,8206b268d,a118c307a,a3309e63e]:v3.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
#8883
321d5112eThanks @Solo-steven! - Fix PluckConfig overwrite problem.Updated dependencies [
fc79b65d4,fd0b0c813]:v2.16.5Compare Source
Patch Changes
#8865
e4d073b16Thanks @n1ru4l! - dependencies updates:@graphql-codegen/core@^2.6.8↗︎ (from2.6.8, independencies)@graphql-tools/load@^7.8.0↗︎ (from7.8.0, independencies)cosmiconfig-typescript-loader@^4.3.0↗︎ (from4.3.0, independencies)graphql-config@^4.4.0↗︎ (from4.4.0, independencies)ts-node@^10.9.1↗︎ (todependencies)ts-node@>=10↗︎ (frompeerDependencies)#8808
884d25c4eThanks @rwu823! - fix:gqlMagicCommenttype#8865
e4d073b16Thanks @n1ru4l!Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.