prettier / prettier-browser-extension

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

Bump react-hook-form from 6.7.0 to 6.9.2 #359

Closed dependabot[bot] closed 4 years ago

dependabot[bot] commented 4 years ago

Bumps react-hook-form from 6.7.0 to 6.9.2.

Release notes

Sourced from react-hook-form's releases.

Version 6.9.2

🐞 fix #3098 issue on initial re-render with errors (#3102)

Version 6.9.1

πŸ‘¨πŸ»β€πŸ« fix reset useFieldArray's shallowFieldsStateRef (#3094) 🐞 fix issues #3085 #3090 (#3091) 🐞 fix #3082 issue with resolver not getting correct form values πŸ‘¨πŸ»β€πŸ’» close #3080 useFieldArray: should unregister false with append (#3081) πŸ‘¨πŸ»β€πŸ’» close #3066 improve resolver at input registration (#3069)

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)

... (truncated)

Changelog

Sourced from react-hook-form's changelog.

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

... (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 4 years ago

Superseded by #362.