Skip to content

chore(deps): bump @graphql-codegen/visitor-plugin-common from 1.20.0 to 2.2.1#184

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/graphql-codegen/visitor-plugin-common-2.2.1
Closed

chore(deps): bump @graphql-codegen/visitor-plugin-common from 1.20.0 to 2.2.1#184
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/graphql-codegen/visitor-plugin-common-2.2.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2021

Bumps @graphql-codegen/visitor-plugin-common from 1.20.0 to 2.2.1.

Release notes

Sourced from @​graphql-codegen/visitor-plugin-common's releases.

@​graphql-codegen/visitor-plugin-common@​2.2.1

Patch Changes

  • 0b090e31a: Apply proper indentation to DirectiveArgs types

@​graphql-codegen/visitor-plugin-common@​2.2.0

Minor Changes

  • d6c2d4c09: 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'
      },
    };
  • 5086791ac: Allow overwriting the resolver type signature based on directive usages.

... (truncated)

Changelog

Sourced from @​graphql-codegen/visitor-plugin-common's changelog.

2.2.1

Patch Changes

  • 0b090e31a: Apply proper indentation to DirectiveArgs types

2.2.0

Minor Changes

  • d6c2d4c09: 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'
      },
    };

... (truncated)

Commits
  • f7566af chore(release): update monorepo packages versions (#6655)
  • 0b090e3 fix: proper indentation of DirectiveArgs (#6653)
  • ab89dcf fix(deps): update dependency @​graphql-tools/utils to v8.2.2 (#6617)
  • cc51006 chore(release): update monorepo packages versions (#6607)
  • 5086791 feat: map directive on FIELD_DEFINITION to custom field resolver type (#6330)
  • feeae1c fix(@​graphql-codegen/visitor-plugin-common): merging inline fragments correct...
  • b544d6b fix: typo in config options
  • d6c2d4c feat: allow overwriting argument and input field types based on directive ann...
  • 43ef571 chore(deps): update graphql-tools monorepo (#6595)
  • 0a7cf3a chore(release): update monorepo packages versions (#6556)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@graphql-codegen/visitor-plugin-common](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/other/visitor-plugin-common) from 1.20.0 to 2.2.1.
- [Release notes](https://github.com/dotansimha/graphql-code-generator/releases)
- [Changelog](https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/other/visitor-plugin-common/CHANGELOG.md)
- [Commits](https://github.com/dotansimha/graphql-code-generator/commits/@graphql-codegen/visitor-plugin-common@2.2.1/packages/plugins/other/visitor-plugin-common)

---
updated-dependencies:
- dependency-name: "@graphql-codegen/visitor-plugin-common"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 1, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 1, 2021

Superseded by #188.

@dependabot dependabot bot closed this Nov 1, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/graphql-codegen/visitor-plugin-common-2.2.1 branch November 1, 2021 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants