@graphcommerce/react-hook-form 6.2.0-canary.40 → 6.2.0-canary.42

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
+ ## 6.2.0-canary.42
4
+
5
+ ## 6.2.0-canary.41
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`f78caf5a8`](https://github.com/graphcommerce-org/graphcommerce/commit/f78caf5a83683f1ae4b901fb94bd22d50943fa2f) - Updated packages @apollo/client, react-hook-form, @emotion/\*, @lingui/\*, @mui/\* and various others. ([@paales](https://github.com/paales))
10
+
3
11
  ## 6.2.0-canary.40
4
12
 
5
13
  ## 6.2.0-canary.39
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": "6.2.0-canary.40",
5
+ "version": "6.2.0-canary.42",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,14 +12,14 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@apollo/client": "^3.7.10",
15
+ "@apollo/client": "^3.7.15",
16
16
  "graphql": "16.6.0",
17
- "react-hook-form": "7.43.5"
17
+ "react-hook-form": "7.44.3"
18
18
  },
19
19
  "devDependencies": {
20
- "@graphcommerce/eslint-config-pwa": "6.2.0-canary.40",
21
- "@graphcommerce/prettier-config-pwa": "6.2.0-canary.40",
22
- "@graphcommerce/typescript-config-pwa": "6.2.0-canary.40",
20
+ "@graphcommerce/eslint-config-pwa": "6.2.0-canary.42",
21
+ "@graphcommerce/prettier-config-pwa": "6.2.0-canary.42",
22
+ "@graphcommerce/typescript-config-pwa": "6.2.0-canary.42",
23
23
  "@testing-library/react": "^14.0.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from 'react'
2
- import { FieldValues, UseFormReturn, Path, FieldPathValue, FieldPath } from 'react-hook-form'
2
+ import { FieldValues, UseFormReturn, Path, FieldPath, PathValue } from 'react-hook-form'
3
3
 
4
4
  export type UseFormPersistOptions<
5
5
  TFieldValues extends FieldValues = FieldValues,
@@ -58,7 +58,7 @@ export function useFormPersist<V extends FieldValues>(options: UseFormPersistOpt
58
58
 
59
59
  const storedValues = JSON.parse(storedFormStr) as FieldValues
60
60
  if (storedValues) {
61
- const entries = Object.entries(storedValues) as [Path<V>, FieldPathValue<V, Path<V>>][]
61
+ const entries = Object.entries(storedValues) as [Path<V>, PathValue<V, Path<V>>][]
62
62
  entries.forEach(([entryName, value]) =>
63
63
  setValue(entryName, value, {
64
64
  shouldDirty: true,