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 fastify (major) #123

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

Update fastify (major) #123

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/cli (source) 2.2.0 -> 5.0.2 age adoption passing confidence
@graphql-codegen/typescript (source) 2.2.2 -> 4.0.7 age adoption passing confidence
@graphql-codegen/typescript-operations (source) 2.1.4 -> 4.2.1 age adoption passing confidence
@graphql-codegen/typescript-react-apollo (source) 3.1.4 -> 4.3.0 age adoption passing confidence
@graphql-tools/schema (source) 8.2.0 -> 10.0.4 age adoption passing confidence
fastify (source) 3.21.2 -> 4.27.0 age adoption passing confidence
mercurius (source) 8.2.1 -> 14.1.0 age adoption passing confidence
mercurius-codegen 3.0.0 -> 5.0.4 age adoption passing confidence
mercurius-integration-testing 3.2.0 -> 8.2.0 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

Minor Changes
Patch Changes

v2.12.2

Compare Source

Patch Changes

v2.12.1

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "every 2 months on the 1 day of the month" (UTC), Automerge - 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 Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-fastify branch 2 times, most recently from e772d39 to b366481 Compare March 10, 2022 12:41
@renovate renovate bot changed the title Update fastify (major) Update dependency mercurius-integration-testing to v4 Mar 24, 2022
@renovate renovate bot changed the title Update dependency mercurius-integration-testing to v4 Update fastify (major) Mar 25, 2022
@renovate renovate bot force-pushed the renovate/major-fastify branch 17 times, most recently from 28a1255 to 253bea1 Compare May 4, 2022 11:53
@renovate renovate bot force-pushed the renovate/major-fastify branch from 253bea1 to 0dffb2a Compare May 23, 2022 13:21
@renovate renovate bot force-pushed the renovate/major-fastify branch 2 times, most recently from b61768b to 2fea264 Compare June 1, 2022 16:40
@renovate renovate bot force-pushed the renovate/major-fastify branch 4 times, most recently from 15ef7bd to bde362c Compare June 11, 2022 19:26
@renovate renovate bot force-pushed the renovate/major-fastify branch 2 times, most recently from e21a056 to e7c4eda Compare February 2, 2024 19:43
@renovate renovate bot force-pushed the renovate/major-fastify branch 4 times, most recently from 60e5605 to b8c487e Compare February 12, 2024 16:02
@renovate renovate bot force-pushed the renovate/major-fastify branch 3 times, most recently from 7855bc1 to b0fb3a3 Compare February 23, 2024 17:15
@renovate renovate bot force-pushed the renovate/major-fastify branch 4 times, most recently from 9fdb5db to 1fa54ae Compare March 6, 2024 19:45
@renovate renovate bot force-pushed the renovate/major-fastify branch 2 times, most recently from 030f6e9 to 81c56b2 Compare March 19, 2024 14:55
@renovate renovate bot force-pushed the renovate/major-fastify branch 10 times, most recently from da9f15c to 93599bb Compare May 7, 2024 14:39
@renovate renovate bot force-pushed the renovate/major-fastify branch from 93599bb to 27cae67 Compare May 17, 2024 17:34
@renovate renovate bot force-pushed the renovate/major-fastify branch from 27cae67 to f0c3a9e Compare May 27, 2024 13:18
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