prettier / prettier-browser-extension

Prettier Browser Extension
https://chrome.google.com/webstore/detail/prettier/fbcfnmplppajblbmdehballiekfgdkhp
MIT License
200 stars 18 forks source link

Bump react-hook-form from 6.7.0 to 6.9.0 #355

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps react-hook-form from 6.7.0 to 6.9.0.

Release notes

Sourced from react-hook-form's releases.

Version 6.9.0

🐞 fix #3058 useFieldArray isValid issue (#3065) 🐞 fix #3023 issue with shouldUnregister:false with useFieldArray (#3064) 🐞 close #3032 defaultValues type (#3062) 🏑 feature:useFieldArray default values to empty array with shouldUnregister: false (#3027) 🐞 fix setValue's definition #3007 (#3008)

Version 6.8.6

revert ⌨️ refactor UseFormMethods to arrow functions (#2899)

Version 6.8.5

🐞 fix #2968 issue with shallowFieldsStateRef remain empty with append action (#2970) 🐞 fix #2972 issue around setValue's trigger not update async isValid (#2975) 🐞 fix UnpackNestedValue type (#2986) ⌨️ refactor UseFormMethods to arrow functions (#2899) 👨🏻‍💻 close #2990 improve dev mode warning (#2991) 🥂 improve useFieldArray and useWatch (#2997)

Version 6.8.4

🐞 fix #2961 with nested error with clearErrors API (#2962) 🐞 fix #2958 with reset useFieldArray (shouldUnregister false) (#2959) 🐞 fix #2955 with shallowFieldsStateRef get cached (#2956) 💁‍♂️ close #2937 improve unregister behaviour with dirty fields (#2949) 🐞 fix 2948 issue with isDirty formState reset by formValue (#2948) 🐞 fix #2938 issue around compare error object (#2943)

Version 6.8.3

Revert "👨🏻‍💻 throw warning when watched input is not found (#2890)" 🐞 fix #2918 isDirty/dirtyFields state with setValue/useFieldArray 🐞 fix #2917 set value with hidden input and update tests

Version 6.8.2

🍷 add declaration types for ie11 (#2870) 🐞 fix #2877 issue with dirtyFields with single node (#2882) 👨🏻‍💻 close #2884 & minor code improvement (#2883) 💁‍♂️ improve DX with a warning message for isValid 👨🏻‍💻 throw a warning when watched input is not found (#2890)

Version 6.8.1

🐞 fix #2859 async isSubmitSuccessful (#2867) 🥺 include missing reset isSubmitSuccessful (#2857)

Version 6.8.0

🍷 feature: is successfully submitted (#2798) 🥂 feature: useFieldArray support shouldUnregister (#2691) 🍺 close #949 focus error while setError (#2816) 💡 fix to output error message when as and render props are not given in Controller (#2854) 🐞 fix reset updateFormState replacing isSubmitting (#2830)

Version 6.7.2

... (truncated)

Changelog

Sourced from react-hook-form's changelog.

[6.9.0] - 2020-10-3

  • with shouldUnregister set to false, empty Field Array will default [] as submission result.
const { handlSubmit } = useForm({
  shouldUnregister: false,
})

useFieldArray({ name: 'test', })

handlSubmit((data) => { // shouldUnregister: false // result: { data: {test: []} }

// shouldUnregister: true // result: {} })

[6.8.4] - 2020-09-22

  • when input unmounts touched and dirtyFields will no longer get removed from formState (shouldUnregister: true).

[6.8.0] - 2020-09-09

Added

  • new formState isSubmitSuccessful to indicate successful submission
  • setError now support focus on the actual input
setError('test', { message: 'This is required', shouldFocus: true });

Changed

  • with shouldUnregister:false defaultValues data will be part of the submission data
  • with shouldUnregister:false conditional field is going to work with useFieldArray
  • setValue now support useFieldArray
- setValue('test', 'data')
+ setValue('test', [{ test: '123' }]) // make it work for useFieldArray and target a field array key
  • remove exact config at clearErrors

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 3 years ago

Superseded by #359.