chore(deps): update graphqlcodegenerator monorepo (major)#8144
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update graphqlcodegenerator monorepo (major)#8144renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: b0bd5583a5ce0f5ab4f5dbcc ✅ AI Style Review — No Changes DetectedNo MDX files were changed in this pull request. Review Log: View detailed log
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
491f84f to
09a2bca
Compare
9c75466 to
c83b745
Compare
63ec01a to
93a6247
Compare
93a6247 to
ed1fd21
Compare
cb2d73b to
6601b41
Compare
8e8d1a4 to
1c9beab
Compare
1c9beab to
fce9d72
Compare
abbf86d to
befceaf
Compare
befceaf to
eea4805
Compare
eea4805 to
70665a0
Compare
b49313d to
d2e3807
Compare
d2e3807 to
32effc9
Compare
32effc9 to
18e33ab
Compare
18e33ab to
c883705
Compare
c883705 to
1b6a947
Compare
0f12121 to
7fc55d3
Compare
3d2a1bb to
5663351
Compare
ba5a2d7 to
640be81
Compare
ad346a4 to
293af3e
Compare
293af3e to
e3eb477
Compare
20b0456 to
226c813
Compare
226c813 to
04d7f6a
Compare
df03600 to
a039717
Compare
a039717 to
b95346f
Compare
b95346f to
8cafa8a
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:
5.0.7→7.2.04.6.1→6.1.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
v7.2.0Compare Source
Minor Changes
959915fThanks @eddeee888! - dependencies updates:
@graphql-tools/utils@^11.2.0↗︎(from
^11.0.0, independencies)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,in
peerDependencies)Patch Changes
[
959915f,959915f,959915f]:v7.1.3Compare Source
Patch Changes
#10335
3280aceThanks @Diluka! - Fix graphql-config loading order to correctly
detect codegen projects
Previously, a
graphql-configfile like this failed:This is because the
defaultproject doesn't have acodegenextension, which caused previouslogic to short circuit before reading
project1's config.The fix reads every named project first, before reading the
defaultproject to exhaustively gothrough every single project.
v7.1.2Compare Source
Patch Changes
a2e1093Thanks @eddeee888! - Fix CLI's
requireflag when resolvingmodule issue in ESM in native Windows
v7.1.1Compare Source
Patch Changes
3fa901bThanks @eddeee888! - Fix --version flag
v7.1.0Compare Source
Minor Changes
cfc4fc3Thanks @eddeee888! - Add
disableFederationDirectiveAndScalarInjection config to better support Federation v2
Patch Changes
[
cbf9544]:v7.0.1Compare Source
Patch Changes
#10848
f3ce427Thanks @eddeee888! - dependencies updates:
@graphql-codegen/client-preset@workspace:^↗︎(from
^6.0.0, independencies)#10849
55a4742Thanks @eddeee888! - dependencies updates:
@graphql-codegen/core@workspace:^↗︎(from
^6.0.0, independencies)@graphql-codegen/plugin-helpers@workspace:^↗︎(from
^7.0.0, independencies)Updated dependencies
[
f3ce427,55a4742,55a4742,f3ce427]:v7.0.0Compare Source
Major Changes
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Update deps to latest, some
only support ESM
Node 20 support is dropped in this release. Node 22 comes with
require()support for ESM, whichmeans it's easier to integrate ES modules into applications. Therefore, it is safe to start using
ESM-only packages.
If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS
issues when running Jest tests, try using Vitest.
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Set
noSilentErrors: trueby default
When multiple files match documents pattern, and there are syntax errors in some but not others,
then the operations with errors are not included in the loaded documents list by default
(
noSilentErrors: false). This is annoying for users as there is no feedback loop duringdevelopment.
noSilentErrors: trueis used as the default for Codegen users to make the feedback loop faster.It can still overriden in Codegen Config if desired.
Patch Changes
#10496
afaace6Thanks @eddeee888! - dependencies updates:
@inquirer/prompts@^8.3.2↗︎ (from^7.8.2, independencies)chalk@^5.6.0↗︎ (from^4.1.0, independencies)debounce@^3.0.0↗︎ (from^2.0.0, independencies)detect-indent@^7.0.0↗︎ (from^6.0.0,in
dependencies)listr2@​^10.2.1↗︎ (from^9.0.0, independencies)log-symbols@^7.0.0↗︎(from
^4.0.0, independencies)ts-log@^3.0.0↗︎ (from^2.2.3, independencies)yargs@^18.0.0↗︎ (from^17.0.0, independencies)#10496
afaace6Thanks @eddeee888! - dependencies updates:
chalk@^5.6.0↗︎ (from^4.1.0, independencies)debounce@^3.0.0↗︎ (from^2.0.0, independencies)detect-indent@^7.0.0↗︎ (from^6.0.0,in
dependencies)listr2@​^10.2.1↗︎ (from^9.0.0, independencies)log-symbols@^7.0.0↗︎(from
^4.0.0, independencies)ts-log@^3.0.0↗︎ (from^2.2.3, independencies)yargs@^18.0.0↗︎ (from^17.0.0, independencies)#10496
afaace6Thanks @eddeee888! - dependencies updates:
@inquirer/prompts@^8.3.2↗︎ (from^7.8.2, independencies)#10496
afaace6Thanks @eddeee888! - Use ESM for CLI instead of CJS;
For backwards compatibility;
graphql-codegen-esmis reserved, and alsographql-codegen-cjsisadded for users who want to use CJS.
So the commands are;
graphql-codegen- ESM version, defaultgraphql-codegen-esm- ESM version, same as above, but reserved for backwards compatibilitygraphql-codegen-cjs- CJS version, for users who want to use CJS, but not recommended for newusers. Will be removed in the future.
gql-gen- ESM version, same asgraphql-codegengraphql-code-generator- ESM version, same asgraphql-codegenandgql-genUpdated dependencies
[
afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6]: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 preset
importExtensionandemitLegacyCommonJSImportsconfig instead of always using the root configvalues.
v6.2.0Compare Source
Minor Changes
8c4db2aThanks @ikusakov2! - Allow GraphQLSchema to be passed directly to
generate({schema: ...}) function
Patch 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 nested
extensions.codegen.configoptions when loading schemas/documents, matchingcodegen.tsbehavior.
v6.1.1Compare Source
Patch Changes
#10569
8cb7d43Thanks @etr2460! - fix(graphql-codegen-cli): Don't hang when 0 CPUs
are found
Fixes 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 option
Patch 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 failure
Previously, 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 allpreviously 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! - Add
allowPartialOutputsflag to partiallywrite 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 support
Patch Changes
[
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:dotansimha/graphql-code-generator (@graphql-codegen/typescript-operations)
v6.1.0Compare Source
Minor Changes
959915fThanks @eddeee888! - dependencies updates:
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,in
peerDependencies)Patch Changes
[
959915f,959915f,959915f]:v6.0.5Compare Source
Patch Changes
8a65a1bThanks @vkbansal-rubrik! - handles conditional spread of a
fragment whose top-level selections are fragment spreads or contain inline fragments
[
8a65a1b]:v6.0.4Compare Source
Patch Changes
16b9529Thanks @vinassefranche! - Fix Array used instead of
ReadonlyArray while immutableTypes config is true
v6.0.3Compare Source
Patch Changes
55a4742Thanks @eddeee888! - dependencies updates:
@graphql-codegen/plugin-helpers@workspace:^↗︎(from
^7.0.0, independencies)@graphql-codegen/schema-ast@workspace:^↗︎(from
^6.0.0, independencies)@graphql-codegen/visitor-plugin-common@workspace:^↗︎(from
^7.0.1, independencies)[
55a4742,55a4742]:v6.0.2Compare Source
Patch Changes
297c896Thanks @eddeee888! - Fix
typescript-operationsincosistentscalar overrides for native scalars
v6.0.1Compare Source
Patch Changes
#10781
5f035cbThanks @eddeee888! - Fix
constenum applyingtypesPrefixandtypesSuffixincorrectlyUpdated dependencies
[
5f035cb]:v6.0.0Compare Source
Major Changes
#10496
afaace6Thanks @eddeee888! - Fix nullable field optionality in operations
Previously, a nullable Result field is generated as optional (marked by
?TypeScript modifier)by default. This is not correct, because generally at runtime such field can only be
null, andnot
undefined(both missing from the object ORundefined). The only exceptions are when fieldsare deferred (using
@deferdirective) or marked as conditional (using@skipor@include).Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits
avoidOptionalsto only target Variables input, since some users may want to force explicitnullwhen providing operation variables.#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: visitors' config option are
moved based on their use case
base-visitor
there
correctly sync the enum type names. This is moved to base visitor
base-visitor there.
Refactors
usages now. The types now extend base-visitor types. This is now consistent with
documents-visitor extending base-visitor
plugin parses configOne, then the types for configOne must be in that class, rather than in
base-documents-visitor
Note: These visitors are rolled up into one type for simplicity
base-visitorbase-documents-visitorandtypescript-operationsvisitorbase-types-visitorandtypescriptvisitorbase-resolvers-visitorandtypescript-resolversvisitor#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: typescript-operations plugin
now generates enum if it is used in operation.
#10496
afaace6Thanks @eddeee888! - Conditionally generate input types and output
enums into target file
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: make
unknowninstead ofanythe default custom scalar type#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Update deps to latest, some
only support ESM
Node 20 support is dropped in this release. Node 22 comes with
require()support for ESM, whichmeans it's easier to integrate ES modules into applications. Therefore, it is safe to start using
ESM-only packages.
If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS
issues when running Jest tests, try using Vitest.
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Decouple
typescript-operationsplugin fromtypescriptpluginPreviously,
TypeScriptOperationVariablesToObjectfromtypescript-operationswas extending fromtypescriptplugin. This made it (1) very hard to read, as we need to jump from base class <->typescript class <-> typescript-operations class to understand the flow and (2) very hard to
evolve the two independently (which is the point of this work).
Since there's not much shared logic anyways, it's simpler to extend the
typescript-operationsclass from the base class directly.
#10496
afaace6Thanks @eddeee888! - The
typescript-operationsplugin no longergenerates InputMaybe and Scalars types; it now uses native Typescript types instead.
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE:
typescriptplugin nolonger generates
Exactutility type. Instead,typescript-operationsgenerates said utilitytype for every file it creates. This is because it is used only for
Variables, so we only needto generate it once for every generated operation file.
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Operation plugin and Client
Preset no longer generates optional
__typenamefor result type__typenamshould not be in the request unless:Note: Apollo Client users can still use
nonOptionalTypename: trueandskipTypeNameForRoot: trueto ensure generated types match the runtime behaviour.#10496
afaace6Thanks @eddeee888! - Integrate new typescript-operations into
client-preset
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: config.avoidOptionals now
only supports object, inputValue, defaultValue
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: rename avoidOptionals.object
to avoidOptionals.variableValue
Minor Changes
#10496
afaace6Thanks @eddeee888! - Add support for declarationKind for
typescript-operations
typeorinterfacetypebecause it's an alias e.g.Variables = Exact<{ something: type }>typeorinterfaceextractAllFieldsToTypes:trueorextractAllFieldsToTypesCompact:true, Resultsare used as type alias, so they are forced to be
type. There is a console warning for users.#10496
afaace6Thanks @eddeee888! - Add importSchemaTypesFrom support
#10496
afaace6Thanks @eddeee888! - Add generateOperationTypes to
typescript-operations to allow omitting operation types such as Variables,
Query/Mutation/Subscription selection set, and Fragment types
#10496
afaace6Thanks @eddeee888! - Fixing 2 bugs: 1) including enums from
external fragments; 2) extractAllFieldsToTypesCompact does not create duplicates
Patch Changes
#10496
afaace6Thanks @eddeee888! - dependencies updates:
auto-bind@^5.0.0↗︎ (from~4.0.0, independencies)@graphql-codegen/schema-ast@^5.0.1↗︎(to
dependencies)@graphql-codegen/typescript@^5.0.10↗︎(from
dependencies)#10496
afaace6Thanks @eddeee888! - dependencies updates:
@graphql-codegen/schema-ast@^5.0.0↗︎(to
dependencies)#10496
afaace6Thanks @eddeee888! - dependencies updates:
@graphql-codegen/typescript@^5.0.7↗︎(from
dependencies)#10496
afaace6Thanks @eddeee888! - dependencies updates:
auto-bind@^5.0.0↗︎ (from~4.0.0, independencies)#10496
afaace6Thanks @eddeee888! - Improve
namespacedImportNameusability bysetting a default when
importSchemaTypesFromis set#10496
afaace6Thanks @eddeee888! - Add internal utility type warning to deter
usage
#10496
afaace6Thanks @eddeee888! - Add
printTypeScriptMaybeTypeto handleprinting TS types, as there are special cases like
anyandunknown#10496
afaace6Thanks @eddeee888! - Re-implement inputMaybeValue
#10496
afaace6Thanks @eddeee888! - Only generate
Exactutility type at theConfiguration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.