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-operations](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/operations) from 3.0.4 to 4.0.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/typescript/operations/CHANGELOG.md"><code>@graphql-codegen/typescript-operations</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/operations/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/operations/issues/9304">#9304</a>)</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/5950f5a6843cdd92b9d5b8ced3a97b68eadf9f30"><code>5950f5a</code></a> fix: Don't generate invalid type names with mergeFragmentTypes (<a href="https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/operations/issues/9369">#9369</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/operations/issues/9196">#9196</a>)</li>
<li>See full diff in <a href="https://github.com/dotansimha/graphql-code-generator/commits/@graphql-codegen/typescript-operations@4.0.0/packages/plugins/typescript/operations">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>
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-operations from 3.0.4 to 4.0.0.
Changelog
Sourced from
@graphql-codegen/typescript-operations's changelog.... (truncated)
Commits
5c7b3b3Upcoming Release Changes (#9355)e1dc75fAdded support forenumSuffix(#9304)ba84a3aUpdate typescript, typescript-operations and typescript-resolvers plugins Sca...5950f5afix: Don't generate invalid type names with mergeFragmentTypes (#9369)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$dependabot recreate
⚠️
dependabot-gitlabis recreating merge request. All changes will be overwritten! ⚠️✅
dependabot-gitlabsuccessfully recreated merge request!added 6 commits
masterc16c2c59- Build(deps): bump @graphql-codegen/typescript-operationsCompare with previous version
resolved all threads