linearis icon indicating copy to clipboard operation
linearis copied to clipboard

chore(deps): update graphqlcodegenerator monorepo (major)

Open renovate[bot] opened this issue 6 months ago • 0 comments

This PR contains the following updates:

Package Change Age Confidence
@graphql-codegen/cli (source) ^6.1.1 → ^7.0.0 age confidence
@graphql-codegen/client-preset (source) ^5.2.2 → ^6.0.0 age confidence
@graphql-codegen/introspection (source) 5.0.2 → 6.0.1 age confidence
@graphql-codegen/schema-ast (source) ^5.0.0 → ^6.0.0 age confidence

Release Notes

dotansimha/graphql-code-generator (@​graphql-codegen/cli)

v7.1.2

Compare Source

Patch Changes

v7.1.1

Compare Source

Patch Changes

v7.1.0

Compare Source

Minor Changes
Patch Changes

v7.0.1

Compare Source

Patch Changes

v7.0.0

Compare Source

Major Changes
  • #​10496 afaace6 Thanks @​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, 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 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: Drop Node 20 support

  • #​10496 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: Set noSilentErrors: true by 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 during development.

    noSilentErrors: true is used as the default for Codegen users to make the feedback loop faster. It can still overriden in Codegen Config if desired.

Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/client-preset)

v6.0.1

Compare Source

Patch Changes

v6.0.0

Compare Source

Major Changes
  • #​10496 afaace6 Thanks @​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, and not undefined (both missing from the object OR undefined). The only exceptions are when fields are deferred (using @defer directive) or marked as conditional (using @skip or @include).

    Now, a nullable Result field cannot be optional unless the exceptions are met. This also limits avoidOptionals to only target Variables input, since some users may want to force explicit null when providing operation variables.

  • #​10496 afaace6 Thanks @​eddeee888! - Conditionally generate input types and output enums into target file

  • #​10496 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: make unknown instead of any the default custom scalar type

  • #​10496 afaace6 Thanks @​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, 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 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: Drop Node 20 support

  • #​10496 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: typescript plugin no longer generates Exact utility type. Instead, typescript-operations generates said utility type for every file it creates. This is because it is used only for Variables, so we only need to generate it once for every generated operation file.

  • #​10496 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: Operation plugin and Client Preset no longer generates optional __typename for result type

    __typenam should 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: true and skipTypeNameForRoot: true to ensure generated types match the runtime behaviour.

  • #​10496 afaace6 Thanks @​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 afaace6 Thanks @​eddeee888! - Integrate new typescript-operations into client-preset

  • #​10496 afaace6 Thanks @​eddeee888! - BREAKING CHANGE: config.avoidOptionals now only supports object, inputValue, defaultValue

Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/introspection)

v6.0.1

Compare Source

Patch Changes

v6.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/schema-ast)

v6.0.1

Compare Source

Patch Changes

v6.0.0

Compare Source

Major Changes
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.

renovate[bot] avatar May 04 '26 05:05 renovate[bot]