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> -> 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 < 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 master2023-05-25 15:20:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps @graphql-codegen/typescript from 3.0.4 to 4.0.0.
Release notes
Sourced from
@graphql-codegen/typescript's releases.Changelog
Sourced from
@graphql-codegen/typescript's changelog.... (truncated)
Commits
5c7b3b3Upcoming Release Changes (#9355)e1dc75fAdded support forenumSuffix(#9304)9e8bd9dFix scalar input/output object bug when given external file or module pattern...ba84a3aUpdate typescript, typescript-operations and typescript-resolvers plugins Sca...c56724edocs: fixinputMaybeValueconfig typo (#9386)3848a2bAdd@deferdirective support (#9196)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR. Deprecated, use GitLab's native /rebase instead$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts