@graphql-codegen/client-preset 6.1.1 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,11 +22,12 @@ export function makeFragmentData<
|
|
|
22
22
|
}`;
|
|
23
23
|
const defaultUnmaskFunctionName = 'useFragment';
|
|
24
24
|
const createUnmaskFunctionTypeDefinitions = (unmaskFunctionName = defaultUnmaskFunctionName) => [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
// FIXME: https://github.com/dotansimha/graphql-code-generator/pull/10904/changes#r3729881814
|
|
26
|
+
// `// return partial if \`fragmentType\` is partial e.g. because of conditional directives
|
|
27
|
+
// export function ${unmaskFunctionName}<TType>(
|
|
28
|
+
// _documentNode: DocumentTypeDecoration<TType, any>,
|
|
29
|
+
// fragmentType: FragmentType<DocumentTypeDecoration<Partial<TType>, any>>
|
|
30
|
+
// ): Partial<TType>;`,
|
|
30
31
|
`// return non-nullable if \`fragmentType\` is non-nullable
|
|
31
32
|
export function ${unmaskFunctionName}<TType>(
|
|
32
33
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
@@ -19,11 +19,12 @@ export function makeFragmentData<
|
|
|
19
19
|
}`;
|
|
20
20
|
const defaultUnmaskFunctionName = 'useFragment';
|
|
21
21
|
const createUnmaskFunctionTypeDefinitions = (unmaskFunctionName = defaultUnmaskFunctionName) => [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
// FIXME: https://github.com/dotansimha/graphql-code-generator/pull/10904/changes#r3729881814
|
|
23
|
+
// `// return partial if \`fragmentType\` is partial e.g. because of conditional directives
|
|
24
|
+
// export function ${unmaskFunctionName}<TType>(
|
|
25
|
+
// _documentNode: DocumentTypeDecoration<TType, any>,
|
|
26
|
+
// fragmentType: FragmentType<DocumentTypeDecoration<Partial<TType>, any>>
|
|
27
|
+
// ): Partial<TType>;`,
|
|
27
28
|
`// return non-nullable if \`fragmentType\` is non-nullable
|
|
28
29
|
export function ${unmaskFunctionName}<TType>(
|
|
29
30
|
_documentNode: DocumentTypeDecoration<TType, any>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/client-preset",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "GraphQL Code Generator preset for client.",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"@graphql-tools/utils": "^11.2.0",
|
|
19
19
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
20
20
|
"tslib": "^2.8.0",
|
|
21
|
-
"@graphql-codegen/add": "^7.1.0",
|
|
22
|
-
"@graphql-codegen/gql-tag-operations": "^6.1.0",
|
|
23
21
|
"@graphql-codegen/plugin-helpers": "^7.1.0",
|
|
24
22
|
"@graphql-codegen/typed-document-node": "^7.1.0",
|
|
23
|
+
"@graphql-codegen/add": "^7.1.0",
|
|
24
|
+
"@graphql-codegen/gql-tag-operations": "^6.1.0",
|
|
25
25
|
"@graphql-codegen/typescript": "^6.1.0",
|
|
26
|
-
"@graphql-codegen/typescript-operations": "^6.1.
|
|
27
|
-
"@graphql-codegen/visitor-plugin-common": "^7.2.
|
|
26
|
+
"@graphql-codegen/typescript-operations": "^6.1.5",
|
|
27
|
+
"@graphql-codegen/visitor-plugin-common": "^7.2.4"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|