stateful / vscode-runme

DevOps Workflows Built with Markdown for VS Code
https://runme.dev
Apache License 2.0
182 stars 13 forks source link

Bump @graphql-codegen/client-preset from 4.2.6 to 4.3.0 #1438

Closed dependabot[bot] closed 6 days ago

dependabot[bot] commented 2 weeks ago

Bumps @graphql-codegen/client-preset from 4.2.6 to 4.3.0.

Release notes

Sourced from @​graphql-codegen/client-preset's releases.

Release 2022-08-04T13:12:01.667Z

@​graphql-codegen/graphql-modules-preset@​2.5.0

Minor Changes

Release 2022-08-04T13:05:23.977Z

No release notes provided.

Release 2022-08-04T13:02:57.827Z

No release notes provided.

Changelog

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

4.3.0

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 '@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'); }, }, }, }, }, };

... (truncated)

Commits
  • cac19e5 Upcoming Release Changes (#10000)
  • 1be6e65 feat: support discriminating null and undefined within useFragment (#10001)
  • 99f449c feat(client-preset): persisted document custom hash function (#9996)
  • 5e594ef feat(client-preset): preserving Array<T> or ReadonlyArray<T> in useFragment()...
  • See full diff 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
sourishkrout commented 2 weeks ago

@dependabot rebase

dependabot[bot] commented 2 weeks ago

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

sourishkrout commented 2 weeks ago

@dependabot rebase

dependabot[bot] commented 6 days ago

Superseded by #1461.