Build(deps): bump @graphql-codegen/typescript from 3.0.4 to 4.0.0 #1203

Merged
argoyle merged 1 commits from dependabot-npm_and_yarn-graphql-codegen-typescript-4.0.0 into master 2023-05-25 15:20:02 +00:00
argoyle commented 2023-05-25 04:39:03 +00:00 (Migrated from gitlab.com)

Bumps @graphql-codegen/typescript from 3.0.4 to 4.0.0.

Release notes

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

@​graphql-codegen/typescript-react-query@​4.0.0

Major Changes

  • 5c7592b4d: Introduces breaking changes to support react-query@4.0.0:

    • react query package is now @tanstack/react-query -> import changes
    • introduced a legacyMode flag (false by default)

    /!\ If you are using the 'react-query' package or react-query < 4, please set the legacyMode option to true. /!\

@​graphql-codegen/typescript-urql@​3.6.3

Patch Changes

  • ab66ba104: Add useQuery argument generic type

@​graphql-codegen/typescript-react-query@​3.6.2

Patch Changes

  • Updated dependencies [2cbcbb371]
    • @​graphql-codegen/visitor-plugin-common@​2.12.0
    • @​graphql-codegen/plugin-helpers@​2.6.0

@​graphql-codegen/typescript-urql@​3.6.2

Patch Changes

  • Updated dependencies [2cbcbb371]
    • @​graphql-codegen/visitor-plugin-common@​2.12.0
    • @​graphql-codegen/plugin-helpers@​2.6.0

@​graphql-codegen/typescript-react-apollo@​3.3.2

Patch Changes

  • Updated dependencies [2cbcbb371]
    • @​graphql-codegen/visitor-plugin-common@​2.12.0
    • @​graphql-codegen/plugin-helpers@​2.6.0

@​graphql-codegen/typescript-vue-apollo@​3.3.2

Patch Changes

  • Updated dependencies [2cbcbb371]
    • @​graphql-codegen/visitor-plugin-common@​2.12.0
    • @​graphql-codegen/plugin-helpers@​2.6.0
Changelog

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

4.0.0

Major Changes

  • #9375 ba84a3a27 Thanks @​eddeee888! - Implement Scalars with input/output types

    In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:

    • A client may send string or number in the input
    • A client receives string in its selection set (i.e output)
    • A server receives string in the resolver (GraphQL parses string or number received from the client to string)
    • A server may return string or number (GraphQL serializes the value to string before sending it to the client )

    Currently, we represent every Scalar with only one type. This is what codegen generates as base type:

    export type Scalars = {
      ID: string;
    };
    

    Then, this is used in both input and output type e.g.

    export type Book = {
      __typename?: 'Book';
      id: Scalars['ID']; // Output's ID can be `string` 👍
    };
    

    export type QueryBookArgs = { id: Scalars['ID']; // Input's ID can be string or number. However, the type is only string here 👎 };

    This PR extends each Scalar to have input and output:

    export type Scalars = {
      ID: {
        input: string | number;
        output: string;
      };
    };
    

    Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:

    export type Book = {
      __typename?: 'Book';
    

... (truncated)

Commits
  • 5c7b3b3 Upcoming Release Changes (#9355)
  • e1dc75f Added support for enumSuffix (#9304)
  • 9e8bd9d Fix scalar input/output object bug when given external file or module pattern...
  • ba84a3a Update typescript, typescript-operations and typescript-resolvers plugins Sca...
  • c56724e docs: fix inputMaybeValue config typo (#9386)
  • 3848a2b Add @defer directive support (#9196)
  • See full diff in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR. Deprecated, use GitLab's native /rebase instead
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [@graphql-codegen/typescript](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript) from 3.0.4 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dotansimha/graphql-code-generator/releases"><code>@​graphql-codegen/typescript</code>'s releases</a>.</em></p> <blockquote> <h2><code>@​graphql-codegen/typescript-react-query</code><a href="https://github.com/4"><code>@​4</code></a>.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p>5c7592b4d: Introduces breaking changes to support <code>react-query@4.0.0</code>:</p> <ul> <li>react query package is now <code>@tanstack/react-query</code> -&gt; import changes</li> <li>introduced a <code>legacyMode</code> flag (<code>false</code> by default)</li> </ul> <p>/!\ If you are using the 'react-query' package or <code>react-query &lt; 4</code>, please set the <code>legacyMode</code> option to <code>true</code>. /!\</p> </li> </ul> <h2><code>@​graphql-codegen/typescript-urql</code><a href="https://github.com/3"><code>@​3</code></a>.6.3</h2> <h3>Patch Changes</h3> <ul> <li>ab66ba104: Add useQuery argument generic type</li> </ul> <h2><code>@​graphql-codegen/typescript-react-query</code><a href="https://github.com/3"><code>@​3</code></a>.6.2</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [2cbcbb371] <ul> <li><code>@​graphql-codegen/visitor-plugin-common</code><a href="https://github.com/2"><code>@​2</code></a>.12.0</li> <li><code>@​graphql-codegen/plugin-helpers</code><a href="https://github.com/2"><code>@​2</code></a>.6.0</li> </ul> </li> </ul> <h2><code>@​graphql-codegen/typescript-urql</code><a href="https://github.com/3"><code>@​3</code></a>.6.2</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [2cbcbb371] <ul> <li><code>@​graphql-codegen/visitor-plugin-common</code><a href="https://github.com/2"><code>@​2</code></a>.12.0</li> <li><code>@​graphql-codegen/plugin-helpers</code><a href="https://github.com/2"><code>@​2</code></a>.6.0</li> </ul> </li> </ul> <h2><code>@​graphql-codegen/typescript-react-apollo</code><a href="https://github.com/3"><code>@​3</code></a>.3.2</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [2cbcbb371] <ul> <li><code>@​graphql-codegen/visitor-plugin-common</code><a href="https://github.com/2"><code>@​2</code></a>.12.0</li> <li><code>@​graphql-codegen/plugin-helpers</code><a href="https://github.com/2"><code>@​2</code></a>.6.0</li> </ul> </li> </ul> <h2><code>@​graphql-codegen/typescript-vue-apollo</code><a href="https://github.com/3"><code>@​3</code></a>.3.2</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [2cbcbb371] <ul> <li><code>@​graphql-codegen/visitor-plugin-common</code><a href="https://github.com/2"><code>@​2</code></a>.12.0</li> <li><code>@​graphql-codegen/plugin-helpers</code><a href="https://github.com/2"><code>@​2</code></a>.6.0</li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/typescript/typescript/CHANGELOG.md"><code>@​graphql-codegen/typescript</code>'s changelog</a>.</em></p> <blockquote> <h2>4.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p><a href="https://github.com/dotansimha/graphql-code-generator/pull/9375">#9375</a> <a href="https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929"><code>ba84a3a27</code></a> Thanks <a href="https://github.com/eddeee888"><code>@​eddeee888</code></a>! - Implement Scalars with input/output types</p> <p>In GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:</p> <ul> <li>A client may send <code>string</code> or <code>number</code> in the input</li> <li>A client receives <code>string</code> in its selection set (i.e output)</li> <li>A server receives <code>string</code> in the resolver (GraphQL parses <code>string</code> or <code>number</code> received from the client to <code>string</code>)</li> <li>A server may return <code>string</code> or <code>number</code> (GraphQL serializes the value to <code>string</code> before sending it to the client )</li> </ul> <p>Currently, we represent every Scalar with only one type. This is what codegen generates as base type:</p> <pre lang="ts"><code>export type Scalars = { ID: string; }; </code></pre> <p>Then, this is used in both input and output type e.g.</p> <pre lang="ts"><code>export type Book = { __typename?: 'Book'; id: Scalars['ID']; // Output's ID can be `string` 👍 }; <p>export type QueryBookArgs = { id: Scalars['ID']; // Input's ID can be <code>string</code> or <code>number</code>. However, the type is only <code>string</code> here 👎 }; </code></pre></p> <p>This PR extends each Scalar to have input and output:</p> <pre lang="ts"><code>export type Scalars = { ID: { input: string | number; output: string; }; }; </code></pre> <p>Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:</p> <pre lang="ts"><code>export type Book = { __typename?: 'Book'; </code></pre> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/5c7b3b34955a34f07906892abe39bba705fb5f5f"><code>5c7b3b3</code></a> Upcoming Release Changes (<a href="https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript/issues/9355">#9355</a>)</li> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/e1dc75f3c598bf7f83138ca533619716fc73f823"><code>e1dc75f</code></a> Added support for <code>enumSuffix</code> (<a href="https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript/issues/9304">#9304</a>)</li> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/9e8bd9d1039646217ef0e6007e3a349631bdd1a3"><code>9e8bd9d</code></a> Fix scalar input/output object bug when given external file or module pattern...</li> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/ba84a3a2758d94dac27fcfbb1bafdf3ed7c32929"><code>ba84a3a</code></a> Update typescript, typescript-operations and typescript-resolvers plugins Sca...</li> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/c56724eda3302c31305b01703df53a030857c68d"><code>c56724e</code></a> docs: fix <code>inputMaybeValue</code> config typo (<a href="https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript/issues/9386">#9386</a>)</li> <li><a href="https://github.com/dotansimha/graphql-code-generator/commit/3848a2b73339fe9f474b31647b71e75b9ca52a96"><code>3848a2b</code></a> Add <code>@defer</code> directive support (<a href="https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript/issues/9196">#9196</a>)</li> <li>See full diff in <a href="https://github.com/dotansimha/graphql-code-generator/commits/@graphql-codegen/typescript@4.0.0/packages/plugins/typescript/typescript">compare view</a></li> </ul> </details> <br /> --- <details> <summary>Dependabot commands</summary> <br /> You can trigger Dependabot actions by commenting on this MR - `$dependabot rebase` will rebase this MR. Deprecated, use GitLab's native /rebase instead - `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts </details>
argoyle (Migrated from gitlab.com) merged commit into master 2023-05-25 15:20:02 +00:00
Sign in to join this conversation.