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

fix(deps): update graphqlcodegenerator monorepo #10856

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 18, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/client-preset (source) 4.2.5 -> 4.3.0 age adoption passing confidence
@graphql-codegen/typed-document-node (source) 5.0.6 -> 5.0.7 age adoption passing confidence

Release Notes

dotansimha/graphql-code-generator (@​graphql-codegen/client-preset)

v4.3.0

Compare Source

Minor Changes
  • #​10001 1be6e65 Thanks @​n1ru4l! - Support discriminating null and undefined within the useFragment function.

    function MyComponent(props: FragmentType<typeof MyFragment> | null) {
      const data = useFragment(MyFragment, props);
      // data is `MyFragment | null`
    }
    
    function MyComponent(props: FragmentType<typeof MyFragment> | undefined) {
      const data = useFragment(MyFragment, props);
      // data is `MyFragment | undefined`
    }

    Before, the returned type from useFragment was always TType | null | undefined.

  • #​9804 5e594ef Thanks @​rachel-church! - Preserving Array<T> or ReadonlyArray<T> in useFragment() return type.

Patch Changes
  • #​9996 99f449c Thanks @​nahn20! - Added configuration to allow for custom hash functions for persisted documents in the client preset
Example
import { type CodegenConfig } from '@&#8203;graphql-codegen/cli';

const config: CodegenConfig = {
  schema: 'schema.graphql',
  documents: ['src/**/*.tsx'],
  generates: {
    './src/gql/': {
      preset: 'client',
      presetConfig: {
        persistedDocuments: {
          hashAlgorithm: operation => {
            const shasum = crypto.createHash('sha512');
            shasum.update(operation);
            return shasum.digest('hex');
          },
        },
      },
    },
  },
};

v4.2.6

Compare Source

Patch Changes
dotansimha/graphql-code-generator (@​graphql-codegen/typed-document-node)

v5.0.7

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 enabled auto-merge (squash) June 18, 2024 23:37
@Josh-Walker-GM Josh-Walker-GM added this to the next-release milestone Jun 18, 2024
@Josh-Walker-GM Josh-Walker-GM added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels Jun 18, 2024
@renovate renovate bot force-pushed the renovate/graphqlcodegenerator-monorepo branch 3 times, most recently from f0b73ee to 4379735 Compare June 22, 2024 17:41
@renovate renovate bot force-pushed the renovate/graphqlcodegenerator-monorepo branch from 4379735 to d9b9a41 Compare June 24, 2024 18:57
@Josh-Walker-GM Josh-Walker-GM merged commit efcc7bb into main Jun 24, 2024
50 of 51 checks passed
@Josh-Walker-GM Josh-Walker-GM deleted the renovate/graphqlcodegenerator-monorepo branch June 24, 2024 21:44
Josh-Walker-GM pushed a commit that referenced this pull request Jun 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@graphql-codegen/client-preset](https://togithub.com/dotansimha/graphql-code-generator)
([source](https://togithub.com/dotansimha/graphql-code-generator/tree/HEAD/packages/presets/client))
| [`4.2.5` ->
`4.3.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2fclient-preset/4.2.5/4.3.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@graphql-codegen%2fclient-preset/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@graphql-codegen%2fclient-preset/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@graphql-codegen%2fclient-preset/4.2.5/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@graphql-codegen%2fclient-preset/4.2.5/4.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@graphql-codegen/typed-document-node](https://togithub.com/dotansimha/graphql-code-generator)
([source](https://togithub.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typed-document-node))
| [`5.0.6` ->
`5.0.7`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftyped-document-node/5.0.6/5.0.7)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@graphql-codegen%2ftyped-document-node/5.0.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@graphql-codegen%2ftyped-document-node/5.0.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@graphql-codegen%2ftyped-document-node/5.0.6/5.0.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@graphql-codegen%2ftyped-document-node/5.0.6/5.0.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>dotansimha/graphql-code-generator
(@&#8203;graphql-codegen/client-preset)</summary>

###
[`v4.3.0`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/presets/client/CHANGELOG.md#430)

[Compare
Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/client-preset@4.2.6...@graphql-codegen/client-preset@4.3.0)

##### Minor Changes

-
[#&#8203;10001](https://togithub.com/dotansimha/graphql-code-generator/pull/10001)
[`1be6e65`](https://togithub.com/dotansimha/graphql-code-generator/commit/1be6e65943b85162f3d465189d0a6df4b962df5d)
Thanks [@&#8203;n1ru4l](https://togithub.com/n1ru4l)! - Support
discriminating `null` and `undefined` within the `useFragment` function.

    ```ts
function MyComponent(props: FragmentType<typeof MyFragment> | null) {
      const data = useFragment(MyFragment, props);
      // data is `MyFragment | null`
    }

function MyComponent(props: FragmentType<typeof MyFragment> | undefined)
{
      const data = useFragment(MyFragment, props);
      // data is `MyFragment | undefined`
    }
    ```

Before, the returned type from `useFragment` was always `TType | null |
undefined`.

-
[#&#8203;9804](https://togithub.com/dotansimha/graphql-code-generator/pull/9804)
[`5e594ef`](https://togithub.com/dotansimha/graphql-code-generator/commit/5e594ef8f39b9e1036b6bcaa977f914a66fec03e)
Thanks [@&#8203;rachel-church](https://togithub.com/rachel-church)! -
Preserving `Array<T>` or `ReadonlyArray<T>` in `useFragment()` return
type.

##### Patch Changes

-
[#&#8203;9996](https://togithub.com/dotansimha/graphql-code-generator/pull/9996)
[`99f449c`](https://togithub.com/dotansimha/graphql-code-generator/commit/99f449c8dcd645d49eda26e4ddfcb8ad7056ecbf)
Thanks [@&#8203;nahn20](https://togithub.com/nahn20)! - Added
configuration to allow for custom hash functions for persisted documents
in the client preset

##### Example

```ts filename="codegen.ts" {10-12}
import { type CodegenConfig } from '@&#8203;graphql-codegen/cli';

const config: CodegenConfig = {
  schema: 'schema.graphql',
  documents: ['src/**/*.tsx'],
  generates: {
    './src/gql/': {
      preset: 'client',
      presetConfig: {
        persistedDocuments: {
          hashAlgorithm: operation => {
            const shasum = crypto.createHash('sha512');
            shasum.update(operation);
            return shasum.digest('hex');
          },
        },
      },
    },
  },
};
```

- Updated dependencies
\[[`5501c62`](https://togithub.com/dotansimha/graphql-code-generator/commit/5501c621f19eb5ef8e703a21f7367e07e41f199c)]:
-
[@&#8203;graphql-codegen/add](https://togithub.com/graphql-codegen/add)[@&#8203;5](https://togithub.com/5).0.3

###
[`v4.2.6`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/presets/client/CHANGELOG.md#426)

[Compare
Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/client-preset@4.2.5...@graphql-codegen/client-preset@4.2.6)

##### Patch Changes

- Updated dependencies
\[[`dfc5310`](https://togithub.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e),
[`156cc2b`](https://togithub.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431),
[`dfc5310`](https://togithub.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e),
[`b49457b`](https://togithub.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]:
-
[@&#8203;graphql-codegen/plugin-helpers](https://togithub.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://togithub.com/5).0.4
-
[@&#8203;graphql-codegen/visitor-plugin-common](https://togithub.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://togithub.com/5).2.0
-
[@&#8203;graphql-codegen/gql-tag-operations](https://togithub.com/graphql-codegen/gql-tag-operations)[@&#8203;4](https://togithub.com/4).0.7
-
[@&#8203;graphql-codegen/typescript-operations](https://togithub.com/graphql-codegen/typescript-operations)[@&#8203;4](https://togithub.com/4).2.1
-
[@&#8203;graphql-codegen/typed-document-node](https://togithub.com/graphql-codegen/typed-document-node)[@&#8203;5](https://togithub.com/5).0.7
-
[@&#8203;graphql-codegen/typescript](https://togithub.com/graphql-codegen/typescript)[@&#8203;4](https://togithub.com/4).0.7

</details>

<details>
<summary>dotansimha/graphql-code-generator
(@&#8203;graphql-codegen/typed-document-node)</summary>

###
[`v5.0.7`](https://togithub.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typed-document-node/CHANGELOG.md#507)

[Compare
Source](https://togithub.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typed-document-node@5.0.6...@graphql-codegen/typed-document-node@5.0.7)

##### Patch Changes

- Updated dependencies
\[[`dfc5310`](https://togithub.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e),
[`156cc2b`](https://togithub.com/dotansimha/graphql-code-generator/commit/156cc2b9a2a5129beba121cfa987b04e29899431),
[`dfc5310`](https://togithub.com/dotansimha/graphql-code-generator/commit/dfc5310ab476bed6deaefc608f311ff368722f7e),
[`b49457b`](https://togithub.com/dotansimha/graphql-code-generator/commit/b49457b5f29328d2dc23c642788a2e697cb8966e)]:
-
[@&#8203;graphql-codegen/plugin-helpers](https://togithub.com/graphql-codegen/plugin-helpers)[@&#8203;5](https://togithub.com/5).0.4
-
[@&#8203;graphql-codegen/visitor-plugin-common](https://togithub.com/graphql-codegen/visitor-plugin-common)[@&#8203;5](https://togithub.com/5).2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
dac09 added a commit to dac09/redwood that referenced this pull request Jun 26, 2024
…e/p2-web-esm

* 'chore/p2-web-esm' of github.com:dac09/redwood:
  fix(deps): update graphqlcodegenerator monorepo (redwoodjs#10856)
@Josh-Walker-GM Josh-Walker-GM added release:dependency This PR only updates dependencies and removed release:chore This PR is a chore (means nothing for users) labels Jul 31, 2024
@Josh-Walker-GM Josh-Walker-GM modified the milestones: next-release, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:dependency This PR only updates dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant