Skip to content

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

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-graphqlcodegenerator-monorepo
Open

chore(deps): update graphqlcodegenerator monorepo (major)#96
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-graphqlcodegenerator-monorepo

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Aug 6, 2021

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@graphql-codegen/cli (source) 1.21.87.0.0 age confidence
@graphql-codegen/introspection (source) 1.18.26.0.0 age confidence
@graphql-codegen/typescript (source) 1.23.06.0.1 age confidence
@graphql-codegen/typescript-operations (source) 1.18.46.0.2 age confidence
@graphql-codegen/typescript-react-apollo (source) 2.3.14.4.2 age confidence

Release Notes

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

v7.0.0

Compare Source

Major Changes
  • #​10496
    afaace6
    Thanks @​eddeee888! - BREAKING CHANGE: Update deps to latest, some
    only support ESM

    Node 20 support is dropped in this release. Node 22 comes with require() support for ESM, which
    means it's easier to integrate ES modules into applications. Therefore, it is safe to start using
    ESM-only packages.

    If you are a user, please upgrade to Node 22. If you are a lib maintainer and see ESM vs CJS
    issues when running Jest tests, try using Vitest.

  • #​10496
    afaace6
    Thanks @​eddeee888! - BREAKING CHANGE: Drop Node 20 support

  • #​10496
    afaace6
    Thanks @​eddeee888! - BREAKING CHANGE: Set noSilentErrors: true
    by default

    When multiple files match documents pattern, and there are syntax errors in some but not others,
    then the operations with errors are not included in the loaded documents list by default
    (noSilentErrors: false). This is annoying for users as there is no feedback loop during
    development.

    noSilentErrors: true is used as the default for Codegen users to make the feedback loop faster.
    It can still overriden in Codegen Config if desired.

Patch Changes

v6.3.1

Compare Source

Patch Changes
  • #​10737
    be85118
    Thanks @​eddeee888! - Fix issue where same SDL in different
    documents are ignored when handling documents vs externalDocuments

v6.3.0

Compare Source

Minor Changes
  • #​10659
    e65d303
    Thanks @​ikusakov2! - Add support for externalDocuments

    externalDocuments declares GraphQL documents that will be read but will not have type files
    generated for them. These documents are available to plugins for type resolution (e.g. fragment
    types), but no output files will be generated based on them. Accepts the same formats as
    documents.

    This config option is useful for monorepos where each project may want to generate types for its
    own documents, but some may need to read shared fragments from across projects.

Patch Changes

v6.2.1

Compare Source

Patch Changes
  • #​10618 e804925 Thanks @​PalmerTurley34! - Honor per-output preset importExtension and emitLegacyCommonJSImports config instead of always using the root config values.

v6.2.0

Compare Source

Minor Changes
Patch Changes

v6.1.3

Compare Source

Patch Changes

v6.1.2

Compare Source

Patch Changes
  • #​10590 e173e11 Thanks @​ya2s! - Fix GraphQL Config loading to forward nested extensions.codegen.config options
    when loading schemas/documents, matching codegen.ts behavior.

v6.1.1

Compare Source

Patch Changes
  • #​10569 8cb7d43 Thanks @​etr2460! - fix(graphql-codegen-cli): Don't hang when 0 CPUs are found

    Fixes generation when 0 CPUs are returned by os.cpus(), which occurs in sandbox environments.

v6.1.0

Compare Source

Minor Changes
Patch Changes

v6.0.2

Compare Source

Patch Changes

v6.0.1

Compare Source

Patch Changes
  • #​10468 cb1b9d9 Thanks @​eddeee888! - In watch mode, do not write output on failure

    Previously, on partial or full failure, watch mode still write to output. However, since the output'd be an empty array, it will then call removeStaleFiles internally to remove all previously generated files.

    This patch puts a temporary fix to avoid writing output on any failure to fix the described behaviour.

    This also means the config.allowPartialOutputs does not work in watch mode for now.

v6.0.0

Compare Source

Major Changes
Patch Changes

v5.0.7

Compare Source

Patch Changes

v5.0.6

Compare Source

Patch Changes

v5.0.5

Compare Source

Patch Changes

v5.0.4

Compare Source

Patch Changes

v5.0.3

Compare Source

Patch Changes

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 } 

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • "on saturday"
  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Aug 6, 2021
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from be7c02a to 28a8751 Compare August 6, 2021 16:52
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 3 times, most recently from ba0f498 to eb4dd8c Compare August 20, 2021 09:41
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 3 times, most recently from 34dad81 to b8b0833 Compare August 25, 2021 20:02
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 4 times, most recently from 3d2c608 to 867c571 Compare September 7, 2021 12:15
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 3 times, most recently from b1146b0 to 846e9d9 Compare September 17, 2021 15:43
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 2 times, most recently from 27e30d9 to 2a41189 Compare September 29, 2021 15:41
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 2 times, most recently from 0d2362d to f361c53 Compare October 3, 2021 13:41
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 5 times, most recently from ed82939 to 366f66c Compare October 15, 2021 17:01
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 366f66c to f08b4e6 Compare October 22, 2021 17:20
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 5 times, most recently from 2a3b06d to 959cc61 Compare November 5, 2021 17:25
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 4 times, most recently from 810e9c2 to dcafca0 Compare February 17, 2022 09:17
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from dcafca0 to fbc9977 Compare March 26, 2022 15:27
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from fbc9977 to 66a52b5 Compare May 15, 2022 20:11
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 66a52b5 to 156ae63 Compare June 18, 2022 16:48
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 156ae63 to 01b0b72 Compare September 25, 2022 19:07
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 01b0b72 to 732d3fd Compare November 20, 2022 16:50
@renovate renovate Bot changed the title chore(deps): update graphqlcodegenerator monorepo (major) chore(deps): update graphqlcodegenerator monorepo to v2 (major) Nov 24, 2022
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 3 times, most recently from 382369e to 9ac47e5 Compare November 30, 2022 13:09
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 2 times, most recently from f5cc959 to d8eba09 Compare December 7, 2022 23:48
@renovate renovate Bot changed the title chore(deps): update graphqlcodegenerator monorepo to v2 (major) Update graphqlcodegenerator monorepo to v2 (major) Dec 17, 2022
@renovate renovate Bot changed the title Update graphqlcodegenerator monorepo to v2 (major) chore(deps): update graphqlcodegenerator monorepo to v2 (major) Dec 17, 2022
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from d8eba09 to 81bab5e Compare December 27, 2022 21:25
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch 2 times, most recently from 9759a43 to 055f51e Compare January 10, 2023 22:59
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 055f51e to 22d5967 Compare January 14, 2023 07:50
@renovate renovate Bot changed the title chore(deps): update graphqlcodegenerator monorepo to v2 (major) chore(deps): update graphqlcodegenerator monorepo (major) Jan 14, 2023
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 22d5967 to 71ac11f Compare March 16, 2023 23:57
@renovate renovate Bot changed the title chore(deps): update graphqlcodegenerator monorepo (major) chore(deps): update graphqlcodegenerator monorepo to v3 (major) Mar 16, 2023
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 71ac11f to 5491e56 Compare April 17, 2023 12:25
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from 5491e56 to a0036ad Compare May 28, 2023 11:27
@renovate renovate Bot changed the title chore(deps): update graphqlcodegenerator monorepo to v3 (major) chore(deps): update graphqlcodegenerator monorepo (major) May 28, 2023
@renovate renovate Bot force-pushed the renovate/major-graphqlcodegenerator-monorepo branch from a0036ad to 9934119 Compare June 2, 2023 17:31
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Sep 5, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants