chore(deps): update graphqlcodegenerator monorepo (major)
This PR contains the following updates:
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
v7.1.2
Patch Changes
- #10861
a2e1093Thanks @eddeee888! - Fix CLI'srequireflag when resolving module issue in ESM in native Windows
v7.1.1
Patch Changes
- #10858
3fa901bThanks @eddeee888! - Fix --version flag
v7.1.0
Minor Changes
- #10855
cfc4fc3Thanks @eddeee888! - Add disableFederationDirectiveAndScalarInjection config to better support Federation v2
Patch Changes
- Updated dependencies
[
cbf9544]:- @graphql-codegen/core@6.1.0
v7.0.1
Patch Changes
-
#10848
f3ce427Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/client-preset@workspace:^↗︎ (from^6.0.0, independencies)
- Updated dependency
-
#10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/core@workspace:^↗︎ (from^6.0.0, independencies) - Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
-
Updated dependencies [
f3ce427,55a4742,55a4742,f3ce427]:- @graphql-codegen/client-preset@6.0.1
- @graphql-codegen/core@6.0.1
v7.0.0
Major Changes
-
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Update deps to latest, some only support ESMNode 20 support is dropped in this release. Node 22 comes with
require()support for ESM, which means 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: SetnoSilentErrors: trueby defaultWhen 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 during development.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:- Updated dependency
@inquirer/prompts@^8.3.2↗︎ (from^7.8.2, independencies) - Updated dependency
chalk@^5.6.0↗︎ (from^4.1.0, independencies) - Updated dependency
debounce@^3.0.0↗︎ (from^2.0.0, independencies) - Updated dependency
detect-indent@^7.0.0↗︎ (from^6.0.0, independencies) - Updated dependency
listr2@​^10.2.1↗︎ (from^9.0.0, independencies) - Updated dependency
log-symbols@^7.0.0↗︎ (from^4.0.0, independencies) - Updated dependency
ts-log@^3.0.0↗︎ (from^2.2.3, independencies) - Updated dependency
yargs@^18.0.0↗︎ (from^17.0.0, independencies)
- Updated dependency
-
#10496
afaace6Thanks @eddeee888! - dependencies updates:- Updated dependency
chalk@^5.6.0↗︎ (from^4.1.0, independencies) - Updated dependency
debounce@^3.0.0↗︎ (from^2.0.0, independencies) - Updated dependency
detect-indent@^7.0.0↗︎ (from^6.0.0, independencies) - Updated dependency
listr2@​^10.2.1↗︎ (from^9.0.0, independencies) - Updated dependency
log-symbols@^7.0.0↗︎ (from^4.0.0, independencies) - Updated dependency
ts-log@^3.0.0↗︎ (from^2.2.3, independencies) - Updated dependency
yargs@^18.0.0↗︎ (from^17.0.0, independencies)
- Updated dependency
-
#10496
afaace6Thanks @eddeee888! - dependencies updates:- Updated dependency
@inquirer/prompts@^8.3.2↗︎ (from^7.8.2, independencies)
- Updated dependency
-
#10496
afaace6Thanks @eddeee888! - Use ESM for CLI instead of CJS;For backwards compatibility;
graphql-codegen-esmis reserved, and alsographql-codegen-cjsis added 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 new users. Will be removed in the future.gql-gen- ESM version, same asgraphql-codegengraphql-code-generator- ESM version, same asgraphql-codegenandgql-gen
-
Updated dependencies [
afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6]:- @graphql-codegen/client-preset@6.0.0
- @graphql-codegen/plugin-helpers@7.0.0
- @graphql-codegen/core@6.0.0
dotansimha/graphql-code-generator (@graphql-codegen/client-preset)
v6.0.1
Patch Changes
-
#10848
f3ce427Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/gql-tag-operations@^6.0.0↗︎ (from6.0.0, independencies)
- Updated dependency
-
#10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/add@workspace:^↗︎ (from^7.0.0, independencies) - Updated dependency
@graphql-codegen/gql-tag-operations@workspace:^↗︎ (from^6.0.0, independencies) - Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies) - Updated dependency
@graphql-codegen/typed-document-node@workspace:^↗︎ (from^7.0.0, independencies) - Updated dependency
@graphql-codegen/typescript@workspace:^↗︎ (from^6.0.0, independencies) - Updated dependency
@graphql-codegen/typescript-operations@workspace:^↗︎ (from^6.0.0, independencies) - Updated dependency
@graphql-codegen/visitor-plugin-common@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
-
#10848
f3ce427Thanks @eddeee888! - Fix package pinning -
Updated dependencies [
55a4742,55a4742,55a4742,55a4742,55a4742,55a4742]:
v6.0.0
Major Changes
-
#10496
afaace6Thanks @eddeee888! - Fix nullable field optionality in operationsPreviously, 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 benull, and notundefined(both missing from the object ORundefined). The only exceptions are when fields are 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! - Conditionally generate input types and output enums into target file -
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: makeunknowninstead ofanythe default custom scalar type -
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Update deps to latest, some only support ESMNode 20 support is dropped in this release. Node 22 comes with
require()support for ESM, which means 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:typescriptplugin no longer generatesExactutility type. Instead,typescript-operationsgenerates said utility type for every file it creates. This is because it is used only forVariables, so we only need to 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:- explicitly requested by the user
- automatically injected into the request by clients, such as Apollo Clients.
Note: Apollo Client users can still use
nonOptionalTypename: trueandskipTypeNameForRoot: trueto ensure generated types match the runtime behaviour. -
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGES: The default hashing algorithm is now sha256 instead of sha1. Generated sha256 format also follows the standard outlined in https://github.com/graphql/graphql-over-http/blob/52d56fb36d51c17e08a920510a23bdc2f6a720be/spec/Appendix%20A%20--%20Persisted%20Documents.md#sha256-hex-document-identifier -
#10496
afaace6Thanks @eddeee888! - Integrate new typescript-operations into client-preset -
#10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: config.avoidOptionals now only supports object, inputValue, defaultValue
Patch Changes
-
#10496
afaace6Thanks @eddeee888! - dependencies updates:- Removed dependency
@graphql-codegen/typescript@^5.0.8↗︎ (fromdependencies)
- Removed dependency
-
#10496
afaace6Thanks @eddeee888! - Remove @graphql-codegen/typescript from client-preset dep as the preset no longer uses the plugin. -
#10496
afaace6Thanks @eddeee888! - Abstract how enum imports are generated into visitor-plugin-common package -
Updated dependencies [
afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6,afaace6]:
dotansimha/graphql-code-generator (@graphql-codegen/introspection)
v6.0.1
Patch Changes
- #10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies) - Updated dependency
@graphql-codegen/visitor-plugin-common@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
- Updated dependencies
[
55a4742]:
v6.0.0
Major Changes
- #10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
Patch Changes
dotansimha/graphql-code-generator (@graphql-codegen/schema-ast)
v6.0.1
Patch Changes
- #10849
55a4742Thanks @eddeee888! - dependencies updates:- Updated dependency
@graphql-codegen/plugin-helpers@workspace:^↗︎ (from^7.0.0, independencies)
- Updated dependency
v6.0.0
Major Changes
- #10496
afaace6Thanks @eddeee888! - BREAKING CHANGE: Drop Node 20 support
Patch Changes
Configuration
📅 Schedule: (UTC)
- Branch creation
- "before 9am on monday"
- Automerge
- At any time (no schedule defined)
🚦 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.