@graphcommerce/react-hook-form 9.0.4-canary.2 → 9.0.4-canary.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.4-canary.4
4
+
5
+ ## 9.0.4-canary.3
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2477](https://github.com/graphcommerce-org/graphcommerce/pull/2477) [`8015eab`](https://github.com/graphcommerce-org/graphcommerce/commit/8015eabc130dacf1f2703980cd5f0ad2c550aa4d) - Upgraded to @apollo/client 3.12.3 without impacting typescript compilation performance. ([@paales](https://github.com/paales))
10
+
3
11
  ## 9.0.4-canary.2
4
12
 
5
13
  ## 9.0.4-canary.1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/react-hook-form",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.4-canary.2",
5
+ "version": "9.0.4-canary.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "peerDependencies": {
15
15
  "@apollo/client": "*",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.2",
17
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.2",
18
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.2",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.4",
17
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.4",
18
+ "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.4",
19
19
  "@mui/utils": "^5",
20
20
  "graphql": "^16.6.0",
21
21
  "react": "^18.2.0",
@@ -2,6 +2,7 @@ import type {
2
2
  FetchResult,
3
3
  LazyQueryHookOptions,
4
4
  LazyQueryResultTuple,
5
+ MaybeMasked,
5
6
  MutationHookOptions,
6
7
  MutationTuple,
7
8
  TypedDocumentNode,
@@ -16,7 +17,10 @@ import type { UseGqlDocumentHandler } from './useGqlDocumentHandler'
16
17
  import { useGqlDocumentHandler } from './useGqlDocumentHandler'
17
18
  import { tryAsync } from './utils/tryTuple'
18
19
 
19
- export type OnCompleteFn<Q, V> = (data: FetchResult<Q>, variables: V) => void | Promise<void>
20
+ export type OnCompleteFn<Q, V> = (
21
+ data: FetchResult<MaybeMasked<Q>>,
22
+ variables: V,
23
+ ) => void | Promise<void>
20
24
 
21
25
  type UseFormGraphQLCallbacks<Q, V> = {
22
26
  /**
@@ -84,7 +88,7 @@ export type UseFormGqlMethods<Q, V extends FieldValues> = Omit<
84
88
  'encode' | 'type'
85
89
  > &
86
90
  Pick<UseFormReturn<V>, 'handleSubmit'> & {
87
- data?: Q | null
91
+ data?: MaybeMasked<Q> | null
88
92
  error?: ApolloError
89
93
  submittedVariables?: V
90
94
  }