Closed renovate[bot] closed 1 year ago
Latest commit: 67a2572be40dff20c59070ca0f0e8d4fdd6ec600
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR contains the following updates:
3.0.0
->3.2.1
3.0.0
->3.1.0
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
### [`v3.2.1`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#321) [Compare Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.2.0...@graphql-codegen/cli@3.2.1) ##### Patch Changes - [#9051](https://togithub.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://togithub.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@saihaj](https://togithub.com/saihaj)! - dependencies updates: - Added dependency [`micromatch@^4.0.5` ↗︎](https://www.npmjs.com/package/micromatch/v/4.0.5) (to `dependencies`) - [#9051](https://togithub.com/dotansimha/graphql-code-generator/pull/9051) [`f7313f7ca`](https://togithub.com/dotansimha/graphql-code-generator/commit/f7313f7cabd81ee708e3345b2934aeeb978f65a3) Thanks [@saihaj](https://togithub.com/saihaj)! - only run generate for files that users have listed in config to avoid running this over every change that codegen is not supposed to execute ### [`v3.2.0`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#320) [Compare Source](https://togithub.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e352f6864b8ebeb7322851b...@graphql-codegen/cli@3.2.0) ##### Minor Changes - [#9009](https://togithub.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://togithub.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@saihaj](https://togithub.com/saihaj)! - use [@parcel/watcher](https://togithub.com/parcel/watcher) for improved watch functionality ##### Patch Changes - [#9009](https://togithub.com/dotansimha/graphql-code-generator/pull/9009) [`288ed0977`](https://togithub.com/dotansimha/graphql-code-generator/commit/288ed097745f9c06dd74a9398a050866caa3942a) Thanks [@saihaj](https://togithub.com/saihaj)! - dependencies updates: - Added dependency [`@parcel/watcher@^2.1.0` ↗︎](https://www.npmjs.com/package/@parcel/watcher/v/2.1.0) (to `dependencies`) - Removed dependency [`chokidar@^3.5.2` ↗︎](https://www.npmjs.com/package/chokidar/v/3.5.2) (from `dependencies`) ### [`v3.1.0`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/graphql-codegen-cli/CHANGELOG.md#310) [Compare Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/cli@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Minor Changes - [#8893](https://togithub.com/dotansimha/graphql-code-generator/pull/8893) [`a118c307a`](https://togithub.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c) Thanks [@n1ru4l](https://togithub.com/n1ru4l)! - It is no longer mandatory to declare an empty plugins array when using a preset - [#8723](https://togithub.com/dotansimha/graphql-code-generator/pull/8723) [`a3309e63e`](https://togithub.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15) Thanks [@kazekyo](https://togithub.com/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: ```ts 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: ```js 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: ```js module.exports = { transform: ({ documents }) => { // Make some changes to the documents return documents; }, }; ``` Then, you can specify the file name as follows: ```ts 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 - [#9000](https://togithub.com/dotansimha/graphql-code-generator/pull/9000) [`4c422ccf6`](https://togithub.com/dotansimha/graphql-code-generator/commit/4c422ccf6384cfb0d0949ebe5567923973b1a044) Thanks [@renovate](https://togithub.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/fetch@^0.8.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.8.0) (from `^0.6.0`, in `dependencies`) - Updated dependencies \[[`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://togithub.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`a3309e63e`](https://togithub.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@graphql-codegen/core](https://togithub.com/graphql-codegen/core)[@3](https://togithub.com/3).1.0 - [@graphql-codegen/plugin-helpers](https://togithub.com/graphql-codegen/plugin-helpers)[@4](https://togithub.com/4).1.0dotansimha/graphql-code-generator (@graphql-codegen/typescript-resolvers)
### [`v3.1.0`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/resolvers/CHANGELOG.md#310) [Compare Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-resolvers@3.0.0...a1edaee674bf118f4e352f6864b8ebeb7322851b) ##### Minor Changes - [#8853](https://togithub.com/dotansimha/graphql-code-generator/pull/8853) [`b13aa7449`](https://togithub.com/dotansimha/graphql-code-generator/commit/b13aa7449637eaf28976ea7e31730b0290609919) Thanks [@KGAdamCook](https://togithub.com/KGAdamCook)! - Updated customResolveInfo to use the correct importType for external imports ##### Patch Changes - [#8879](https://togithub.com/dotansimha/graphql-code-generator/pull/8879) [`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491) Thanks [@renovate](https://togithub.com/apps/renovate)! - dependencies updates: - Updated dependency [`tslib@~2.5.0` ↗︎](https://www.npmjs.com/package/tslib/v/2.5.0) (from `~2.4.0`, in `dependencies`) - Updated dependencies \[[`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`8206b268d`](https://togithub.com/dotansimha/graphql-code-generator/commit/8206b268dfb485a748fd7783a163cb0ee9931491), [`a118c307a`](https://togithub.com/dotansimha/graphql-code-generator/commit/a118c307a35bbb97b7cbca0f178a88276032a26c), [`6b6fe3cbc`](https://togithub.com/dotansimha/graphql-code-generator/commit/6b6fe3cbcc7de748754703adce0f62f3e070a098), [`a3309e63e`](https://togithub.com/dotansimha/graphql-code-generator/commit/a3309e63efed880e6f74ce6fcbf82dd3d7857a15)]: - [@graphql-codegen/plugin-helpers](https://togithub.com/graphql-codegen/plugin-helpers)[@4](https://togithub.com/4).1.0 - [@graphql-codegen/typescript](https://togithub.com/graphql-codegen/typescript)[@3](https://togithub.com/3).0.1 - [@graphql-codegen/visitor-plugin-common](https://togithub.com/graphql-codegen/visitor-plugin-common)[@3](https://togithub.com/3).0.1Configuration
📅 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.
This PR has been generated by Mend Renovate. View repository job log here.