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

chore(deps): update graphqlcodegenerator monorepo (major) #33

Merged
merged 7 commits into from
Mar 4, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 3, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/core (source) ^2.6.8 -> ^3.1.0 age adoption passing confidence
@graphql-codegen/plugin-helpers ^3.1.2 -> ^4.0.0 age adoption passing confidence
@graphql-codegen/typescript ^2.8.8 -> ^3.0.1 age adoption passing confidence
@graphql-codegen/typescript-resolvers ^2.7.13 -> ^3.1.0 age adoption passing confidence

Release Notes

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

v3.1.0

Compare Source

Minor Changes
  • #​8723 a3309e63e Thanks @​kazekyo! - Introduce a new feature called DocumentTransform.

    DocumentTransform is a functionality that allows you to modify documents before they are processed by plugins. You can use functions passed to the documentTransforms option to make changes to GraphQL documents.

    To use this feature, you can write documentTransforms as follows:

    import type { CodegenConfig } from '@​graphql-codegen/cli';
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: [
            {
              transform: ({ documents }) => {
                // Make some changes to the documents
                return documents;
              },
            },
          ],
        },
      },
    };
    export default config;

    For instance, to remove a @localOnlyDirective directive from documents, you can write the following code:

    import type { CodegenConfig } from '@​graphql-codegen/cli';
    import { visit } from 'graphql';
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: [
            {
              transform: ({ documents }) => {
                return documents.map(documentFile => {
                  documentFile.document = visit(documentFile.document, {
                    Directive: {
                      leave(node) {
                        if (node.name.value === 'localOnlyDirective') return null;
                      },
                    },
                  });
                  return documentFile;
                });
              },
            },
          ],
        },
      },
    };
    export default config;

    DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to documentTransforms.

    Let's create the document transform as a file:

    module.exports = {
      transform: ({ documents }) => {
        // Make some changes to the documents
        return documents;
      },
    };

    Then, you can specify the file name as follows:

    import type { CodegenConfig } from '@​graphql-codegen/cli';
    
    const config: CodegenConfig = {
      schema: 'https://localhost:4000/graphql',
      documents: ['src/**/*.tsx'],
      generates: {
        './src/gql/': {
          preset: 'client',
          documentTransforms: ['./my-document-transform.js'],
        },
      },
    };
    export default config;
Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/plugin-helpers)

v4.0.0

Compare Source

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

v3.0.1

Compare Source

Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/typescript-resolvers)

v3.1.0

Compare Source

Minor Changes
Patch Changes

v3.0.0

Compare Source

Major Changes
Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 846761c to 69a2c6e Compare February 21, 2023 18:04
@tobiasdiez
Copy link
Owner

Error: Cannot destructure property '__extends' of '_tslib.default' as it is undefined.

Maybe nuxt/bridge#25

@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 3 times, most recently from 420826b to 072e561 Compare March 4, 2023 15:17
@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 072e561 to 4e5f4c7 Compare March 4, 2023 15:39
@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 4e5f4c7 to be89458 Compare March 4, 2023 18:32
@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from be89458 to f5f1e38 Compare March 4, 2023 18:35
@renovate renovate bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from c09e794 to d0564b8 Compare March 4, 2023 18:39
@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2023

Codecov Report

Merging #33 (c09e794) into main (1a1901c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #33   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           10        10           
  Branches         2         2           
=========================================
  Hits            10        10           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tobiasdiez tobiasdiez force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from d0564b8 to c09e794 Compare March 4, 2023 18:42
@renovate
Copy link
Contributor Author

renovate bot commented Mar 4, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@tobiasdiez tobiasdiez merged commit 87077b5 into main Mar 4, 2023
@tobiasdiez tobiasdiez deleted the renovate/major-graphqlcodegenerator-monorepo branch March 4, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants