Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

chore(deps-dev): bump @graphql-codegen/cli from 3.2.1 to 3.3.1 #162

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 23, 2023

Bumps @graphql-codegen/cli from 3.2.1 to 3.3.1.

Changelog

Sourced from @​graphql-codegen/cli's changelog.

3.3.1

Patch Changes

3.3.0

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

... (truncated)

Commits
  • 21050ae chore(release): update monorepo packages versions (#9269)
  • ca1d72c fix: output directory for init command (#9280)
  • 1837493 Fix watch mode to listen to changes below the "longest common directory prefi...
  • 6e3fd38 chore(release): update monorepo packages versions (#9132)
  • d318805 eslint fixes (#9247)
  • ef60e81 chore(deps): update dependency prettier to v2.8.7 (#9223)
  • 7de3c70 chore(deps): update dependency prettier to v2.8.6 (#9215)
  • 0f53581 chore(deps): update dependency prettier to v2.8.5 (#9204)
  • b7dacb2 [cli] Add watchPattern to generates config (#9151)
  • ac44d0c fix(deps): update graphql-tools (#9116)
  • 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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 23, 2023
@krtk6160
Copy link
Member

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/graphql-codegen/cli-3.3.1 branch from 8033923 to f04a1bd Compare April 23, 2023 18:27
@krtk6160 krtk6160 merged commit 116a469 into main Apr 23, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/graphql-codegen/cli-3.3.1 branch April 23, 2023 18:35
galoybot pushed a commit that referenced this pull request May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant