Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update graphqlcodegenerator monorepo #55

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 7, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/cli 2.1.1 -> 2.2.0 age adoption passing confidence
@graphql-codegen/typescript 2.2.0 -> 2.2.1 age adoption passing confidence

Release Notes

dotansimha/graphql-code-generator

v2.2.0

Compare Source

Minor Changes
  • d6c2d4c: Allow declaring Argument and InputType field mappings based on directive annotations.

    WARNING: Using this option does only change the type definitions.

    For actually ensuring that a type is correct at runtime you will have to use schema transforms (e.g. with @​graphql-tools/utils mapSchema) that apply those rules! Otherwise, you might end up with a runtime type mismatch which could cause unnoticed bugs or runtime errors.

    Please use this configuration option with care!

    plugins:
      config:
        directiveArgumentAndInputFieldMappings:
          asNumber: number
    directive @​asNumber on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
    
    input MyInput {
      id: ID! @​asNumber
    }
    
    type User {
      id: ID!
    }
    
    type Query {
      user(id: ID! @​asNumber): User
    }

    Usage e.g. with typescript-resolvers

    const Query: QueryResolvers = {
      user(_, args) {
        // args.id is of type 'number'
      },
    };
  • 8261e41: Make futureProofEnums option work for all enum output types, (it worked only with enumsAsTypes)

Patch Changes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@renovate renovate bot merged commit 63f795b into main Sep 7, 2021
@renovate renovate bot deleted the renovate/graphqlcodegenerator-monorepo branch September 7, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant