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 devdependencies (major) #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/cli (source) 1.8.1 -> 5.0.2 age adoption passing confidence
@graphql-codegen/fragment-matcher (source) 1.8.1 -> 5.0.2 age adoption passing confidence
@graphql-codegen/introspection (source) 1.8.1 -> 4.0.3 age adoption passing confidence
@graphql-codegen/typescript (source) 1.8.1 -> 4.0.7 age adoption passing confidence
@graphql-codegen/typescript-operations (source) 1.8.1 -> 4.2.1 age adoption passing confidence
@graphql-codegen/typescript-react-apollo (source) 1.8.1 -> 4.3.0 age adoption passing confidence
@types/node (source) 12.11.1 -> 20.12.12 age adoption passing confidence
@types/react (source) 16.9.7 -> 18.3.3 age adoption passing confidence
@types/react-dom (source) 16.9.2 -> 18.3.0 age adoption passing confidence
dotenv 8.2.0 -> 16.4.5 age adoption passing confidence
ts-node (source) 8.4.1 -> 10.9.2 age adoption passing confidence
typescript (source) 3.6.4 -> 5.4.5 age adoption passing confidence
yaml (source) 1.7.2 -> 2.4.2 age adoption passing confidence

Release Notes

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

v5.0.2

Compare Source

Patch Changes

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Major Changes
Patch Changes

v3.3.1

Compare Source

Patch Changes

v3.3.0

Compare Source

Minor Changes
  • #​9151 b7dacb21f Thanks @​'./user/schema.mappers#UserMapper',! - Add watchPattern config option for generates sections.

    By default, watch mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.

    A user may want to run Codegen CLI when non-schema and non-document files are changed. Each generates section now has a watchPattern option to allow more file patterns to be added to the list of patterns to watch.

    In the example below, mappers are exported from schema.mappers.ts files. We want to re-run Codegen if the content of *.mappers.ts files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.

    // codegen.ts
    const config: CodegenConfig = {
      schema: 'src/schema/**/*.graphql',
      generates: {
        'src/schema/types.ts': {
          plugins: ['typescript', 'typescript-resolvers'],
          config: {
            mappers: {
    
              Book: './book/schema.mappers#BookMapper',
            },
          }
          watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']`
        },
      },
    };

    Then, run Codegen CLI in watch mode:

    yarn graphql-codegen --watch

    Now, updating *.mappers.ts files re-runs Codegen! 🎉

    Note: watchPattern is only used in watch mode i.e. running CLI with --watch flag.

Patch Changes

v3.2.2

Compare Source

Patch Changes

v3.2.1

Compare Source

Patch Changes

v3.2.0

Compare Source

Minor Changes
Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​8893 a118c307a Thanks @​n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset

  • #​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

v2.16.5

Compare Source

Patch Changes

v2.16.4

Compare Source

Patch Changes

v2.16.3

Compare Source

Patch Changes

v2.16.2

Compare Source

Patch Changes

v2.16.1

Compare Source

Patch Changes

v2.16.0

Compare Source

Minor Changes
Patch Changes

v2.15.0

Compare Source

Minor Changes

v2.14.1

Compare Source

Patch Changes

v2.14.0

Compare Source

Minor Changes
Patch Changes

v2.13.12

Compare Source

Patch Changes

v2.13.11

Compare Source

Patch Changes

v2.13.10

Compare Source

Patch Changes

v2.13.9

Compare Source

Patch Changes

v2.13.8

Compare Source

Patch Changes

v2.13.7

Compare Source

Patch Changes

v2.13.6

Compare Source

Patch Changes

v2.13.5

Compare Source

Patch Changes

v2.13.4

Compare Source

Patch Changes

v2.13.3

Compare Source

Patch Changes

v2.13.2

Compare Source

Patch Changes

v2.13.1

Compare Source

Patch Changes

v2.13.0

[Compare Source](https://togithub.com/dotansimha/graphql-code-generator


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone Asia/Tokyo, 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-devdependencies branch 3 times, most recently from 3e8a26d to 1180956 Compare February 11, 2021 09:03
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 1180956 to c8c027d Compare April 26, 2021 12:47
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from 1d966e8 to 4b567a6 Compare May 15, 2021 19:13
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 4b567a6 to aba753f Compare June 6, 2021 22:10
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from aba753f to 72aeb6c Compare June 15, 2021 14:09
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 72aeb6c to 1769b61 Compare October 18, 2021 20:36
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 1769b61 to d3bc15a Compare March 7, 2022 17:38
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from d3bc15a to bf06d83 Compare March 26, 2022 14:33
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from bf06d83 to e2b92dc Compare April 24, 2022 18:58
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from e2b92dc to c38754e Compare May 15, 2022 22:29
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from c38754e to 3c5846a Compare June 18, 2022 18:56
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 3c5846a to 62ceedb Compare September 25, 2022 13:55
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from 62ceedb to e98b9e8 Compare November 20, 2022 12:03
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from e98b9e8 to 9a2a4aa Compare March 16, 2023 11:48
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 7 times, most recently from 2517ff4 to e557cb7 Compare March 30, 2023 22:18
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from e557cb7 to 625b104 Compare April 3, 2023 10:50
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from 37dec99 to fc3bb83 Compare April 17, 2023 19:14
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 3 times, most recently from 4047f99 to c1e857c Compare May 31, 2023 02:45
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 5 times, most recently from 53f9249 to 77dfc01 Compare April 2, 2024 15:25
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 8 times, most recently from 822504d to 9f35cfe Compare April 9, 2024 22:21
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 5 times, most recently from e860fc8 to 7042f08 Compare April 15, 2024 22:53
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 4 times, most recently from 90e9ee2 to 06f3e20 Compare May 1, 2024 21:11
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 4 times, most recently from fd5bba5 to bd6b85c Compare May 11, 2024 14:41
@renovate renovate bot force-pushed the renovate/major-devdependencies branch 2 times, most recently from bcc4a4a to ec66720 Compare May 17, 2024 13:03
@renovate renovate bot force-pushed the renovate/major-devdependencies branch from ec66720 to b1b272c Compare May 23, 2024 22:30
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.

None yet

0 participants