SocialGouv / sre-tools

https://socialgouv.github.io/sre-tools/
1 stars 1 forks source link

fix(deps): update dependency react-hook-form to v7 #59

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-hook-form (source) 6.15.8 -> 7.12.1 age adoption passing confidence

Release Notes

react-hook-form/react-hook-form ### [`v7.12.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.12.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.12.0...v7.12.1) ๐Ÿž fix [#​6090](https://togithub.com/react-hook-form/react-hook-form/issues/6090) issue with set `defaultValue` as `string` with `valueAs` ([#​6093](https://togithub.com/react-hook-form/react-hook-form/issues/6093)) ๐Ÿž make sure the field is set before setting it to mounted ([#​6084](https://togithub.com/react-hook-form/react-hook-form/issues/6084)) ๐Ÿž fix [#​6081](https://togithub.com/react-hook-form/react-hook-form/issues/6081) issue with delayError with formState ([#​6083](https://togithub.com/react-hook-form/react-hook-form/issues/6083)) ### [`v7.12.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​7120---2021-07-24) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.11.1...v7.12.0) ### [`v7.11.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.11.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.11.0...v7.11.1) ๐Ÿ› fix [#​5944](https://togithub.com/react-hook-form/react-hook-form/issues/5944) reset issue with unmounted useFieldArray ([#​5954](https://togithub.com/react-hook-form/react-hook-form/issues/5954)) ๐Ÿ› fix [#​5942](https://togithub.com/react-hook-form/react-hook-form/issues/5942) case when value is supplied as null/undefined โŒจ๏ธ close [#​5928](https://togithub.com/react-hook-form/react-hook-form/issues/5928) improve useWatch and watch types ([#​5945](https://togithub.com/react-hook-form/react-hook-form/issues/5945)) ๐ŸŽฎ fix [#​5936](https://togithub.com/react-hook-form/react-hook-form/issues/5936) regression with controller value transform ([#​5937](https://togithub.com/react-hook-form/react-hook-form/issues/5937)) ### [`v7.11.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​7110---2021-07-13) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.10.1...v7.11.0) ### [`v7.10.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.10.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.10.0...v7.10.1) ๐Ÿ—๏ธ fix [#​5808](https://togithub.com/react-hook-form/react-hook-form/issues/5808) DeepMap extend issue with File ([#​5813](https://togithub.com/react-hook-form/react-hook-form/issues/5813)) ๐Ÿ•ต๏ธ fix [#​5816](https://togithub.com/react-hook-form/react-hook-form/issues/5816) variable name typo in useController ### [`v7.10.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​7100---2021-07-02) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.9.0...v7.10.0) ### [`v7.9.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​790---2021-06-19) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.8...v7.9.0) ### [`v7.8.8`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.8) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.7...v7.8.8) ๐Ÿž fix [#​5627](https://togithub.com/react-hook-form/react-hook-form/issues/5627) defaultValue reset inconsistent with setValueAs ([#​5634](https://togithub.com/react-hook-form/react-hook-form/issues/5634)) ### [`v7.8.7`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.7) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.6...v7.8.7) ๐Ÿž fix [#​5623](https://togithub.com/react-hook-form/react-hook-form/issues/5623) Controller unmount to skip validation ([#​5624](https://togithub.com/react-hook-form/react-hook-form/issues/5624)) ### [`v7.8.6`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.6) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.5...v7.8.6) ๐Ÿž fix [#​5611](https://togithub.com/react-hook-form/react-hook-form/issues/5611) should not update dirty fields with blur event ([#​5614](https://togithub.com/react-hook-form/react-hook-form/issues/5614)) ๐Ÿž fix [#​5612](https://togithub.com/react-hook-form/react-hook-form/issues/5612) trigger() always return true ([#​5613](https://togithub.com/react-hook-form/react-hook-form/issues/5613)) ### [`v7.8.5`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​785---2021-06-15) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.4...v7.8.5) ##### Change - `useController` no longer access input `ref` except `focus` event for focus management ### [`v7.8.4`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.4) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.3...v7.8.4) ๐Ÿž fix [#​5555](https://togithub.com/react-hook-form/react-hook-form/issues/5555) register deeply nested field append with strict mode ([#​5580](https://togithub.com/react-hook-form/react-hook-form/issues/5580)) ๐Ÿ› fix [#​5566](https://togithub.com/react-hook-form/react-hook-form/issues/5566) should unregister inputs when useFieldArray unmounted ([#​5579](https://togithub.com/react-hook-form/react-hook-form/issues/5579)) ๐Ÿ”ข fix [#​5568](https://togithub.com/react-hook-form/react-hook-form/issues/5568) include . for a precise focus index lookup ([#​5578](https://togithub.com/react-hook-form/react-hook-form/issues/5578)) ๐Ÿ•ต๏ธโ€โ™€๏ธ improve logic on register absent inputs ([#​5556](https://togithub.com/react-hook-form/react-hook-form/issues/5556)) ๐Ÿ‘ฎ fix [#​5538](https://togithub.com/react-hook-form/react-hook-form/issues/5538) type error with setError shouldFocus ### [`v7.8.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.2...v7.8.3) ๐Ÿ› fix [#​5527](https://togithub.com/react-hook-form/react-hook-form/issues/5527) resolver switching ([#​5530](https://togithub.com/react-hook-form/react-hook-form/issues/5530)) ### [`v7.8.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.1...v7.8.2) ๐Ÿ› fix [#​5507](https://togithub.com/react-hook-form/react-hook-form/issues/5507) register with value issue ([#​5511](https://togithub.com/react-hook-form/react-hook-form/issues/5511)) ### [`v7.8.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.8.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.8.0...v7.8.1) ๐Ÿ› fix [#​5499](https://togithub.com/react-hook-form/react-hook-form/issues/5499) issue with controller defaultValue overwrite defaultValues at useForm ([#​5500](https://togithub.com/react-hook-form/react-hook-form/issues/5500)) ### [`v7.8.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​780---2021-06-5) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.7.1...v7.8.0) ##### Added - `setValue` support `shouldTouch` to update formState touchFields ```tsx setValue('firstName', 'value', { shouldTouch: true }); ``` - `register` now accept `value` as option ```tsx register('firstName', { value: 'value' }); ``` ### [`v7.7.1`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​771---2021-05-30) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.7.0...v7.7.1) ##### Fixed - `shouldUnregister: false` should not shallow merge or register absent input fields from `defaultValues` ### [`v7.7.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​770---2021-05-29) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.10...v7.7.0) ##### Added - `trigger` support focus with error input ```ts trigger('inputName', { shouldFocus: true }); ``` ##### Changed - `handleSubmit` will `throw` error within the onSubmit callback ### [`v7.6.10`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.10) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.9...v7.6.10) ๐Ÿž close [#​5379](https://togithub.com/react-hook-form/react-hook-form/issues/5379) getFieldValueAs return undefined when supplied with undefined ([#​5381](https://togithub.com/react-hook-form/react-hook-form/issues/5381)) ๐Ÿ› fix [#​5382](https://togithub.com/react-hook-form/react-hook-form/issues/5382) trigger() return incorrect valid state ([#​5383](https://togithub.com/react-hook-form/react-hook-form/issues/5383)) ### [`v7.6.9`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.9) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.8...v7.6.9) ๐Ÿ› fix [#​5366](https://togithub.com/react-hook-form/react-hook-form/issues/5366) inline defaultValue validation ([#​5376](https://togithub.com/react-hook-form/react-hook-form/issues/5376)) โŒจ๏ธ improve controller defaultValue prop type ([#​5375](https://togithub.com/react-hook-form/react-hook-form/issues/5375)) ๐Ÿ‹๐Ÿปโ€โ™€๏ธ reduce logic with value check ([#​5356](https://togithub.com/react-hook-form/react-hook-form/issues/5356)) ### [`v7.6.8`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.8) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.7...v7.6.8) ๐Ÿž fix [#​5361](https://togithub.com/react-hook-form/react-hook-form/issues/5361) remove check field logic for getFieldValues ([#​5363](https://togithub.com/react-hook-form/react-hook-form/issues/5363)) ๐Ÿž fix [#​5277](https://togithub.com/react-hook-form/react-hook-form/issues/5277) Update value when switch to enabled from initial disabled state ([#​5350](https://togithub.com/react-hook-form/react-hook-form/issues/5350)) ๐Ÿ“ฆ update typescript and remove object define in useController ([#​5353](https://togithub.com/react-hook-form/react-hook-form/issues/5353)) ### [`v7.6.7`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.7) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.6...v7.6.7) ๐Ÿž fix [#​5344](https://togithub.com/react-hook-form/react-hook-form/issues/5344) avoid re-register inputs ([#​5345](https://togithub.com/react-hook-form/react-hook-form/issues/5345)) ๐Ÿ‘Œ close [#​5283](https://togithub.com/react-hook-form/react-hook-form/issues/5283) useFieldArray issue with restrict mode ([#​5331](https://togithub.com/react-hook-form/react-hook-form/issues/5331)) ๐Ÿ‹๐Ÿปโ€โ™€๏ธ save esm bundle size ([#​5327](https://togithub.com/react-hook-form/react-hook-form/issues/5327)) โŒจ๏ธ accept readonly field path arrays ([#​5317](https://togithub.com/react-hook-form/react-hook-form/issues/5317)) ### [`v7.6.6`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.6) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.5...v7.6.6) ๐Ÿ› fix [#​5300](https://togithub.com/react-hook-form/react-hook-form/issues/5300) issue with register absent deep nested object ([#​5302](https://togithub.com/react-hook-form/react-hook-form/issues/5302)) ๐Ÿ•ต๏ธ close [#​5297](https://togithub.com/react-hook-form/react-hook-form/issues/5297) issue with get with empty path ([#​5298](https://togithub.com/react-hook-form/react-hook-form/issues/5298)) ### [`v7.6.5`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.5) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.4...v7.6.5) ๐Ÿž fix [#​5286](https://togithub.com/react-hook-form/react-hook-form/issues/5286) `useWatch` with fieldArray inconsistent behaviour ([#​5287](https://togithub.com/react-hook-form/react-hook-form/issues/5287)) ### [`v7.6.4`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.4) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.3...v7.6.4) ๐Ÿž fix [#​5276](https://togithub.com/react-hook-form/react-hook-form/issues/5276) setValue with null ([#​5278](https://togithub.com/react-hook-form/react-hook-form/issues/5278)) ### [`v7.6.3`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.3) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.2...v7.6.3) ๐Ÿž fix [#​5246](https://togithub.com/react-hook-form/react-hook-form/issues/5246) useFieldArray with nested arrays throws error ([#​5251](https://togithub.com/react-hook-form/react-hook-form/issues/5251)) ๐Ÿž fix [#​5262](https://togithub.com/react-hook-form/react-hook-form/issues/5262) register checkbox issue with absent register ([#​5263](https://togithub.com/react-hook-form/react-hook-form/issues/5263)) ### [`v7.6.2`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.2) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.1...v7.6.2) ๐Ÿž fix [#​5234](https://togithub.com/react-hook-form/react-hook-form/issues/5234) should render error logic for valid state ([#​5235](https://togithub.com/react-hook-form/react-hook-form/issues/5235)) โŒจ๏ธ fix missing-register-options-generic-type ([#​5238](https://togithub.com/react-hook-form/react-hook-form/issues/5238)) ### [`v7.6.1`](https://togithub.com/react-hook-form/react-hook-form/releases/v7.6.1) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.6.0...v7.6.1) ๐Ÿž fix [#​5229](https://togithub.com/react-hook-form/react-hook-form/issues/5229) issue with ref becomes undefined ([#​5233](https://togithub.com/react-hook-form/react-hook-form/issues/5233)) ๐ŸŽ improve multiple useWatch performances ([#​5210](https://togithub.com/react-hook-form/react-hook-form/issues/5210)) ๐Ÿ‘ close [#​5208](https://togithub.com/react-hook-form/react-hook-form/issues/5208) useFieldArray nested object with React.StrictMode ([#​5209](https://togithub.com/react-hook-form/react-hook-form/issues/5209)) ### [`v7.6.0`](https://togithub.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md#​760---2021-05-15) [Compare Source](https://togithub.com/react-hook-form/react-hook-form/compare/v7.5.3...v7.6.0) ##### Changed - `useForm` will `register` missing inputs from `defaultValues` ```tsx const App = () => { const { register, handleSubmit } = useForm({ defaultValues: { test: { firstName: 'bill', lastName: 'luo' }, }, }); const onSubmit = (data) => { // missing registered input will be included console.log(data); // { test: { firstName: 'bill', lastName: 'luo' } } }; return (

Configuration

๐Ÿ“… Schedule: "before 3am on the first day of the month" in timezone Europe/Paris.

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

โ™ป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

๐Ÿ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

codecov-commenter commented 3 years ago

Codecov Report

Merging #59 (b2f4c12) into master (9d06a01) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   84.37%   84.37%           
=======================================
  Files           3        3           
  Lines          32       32           
  Branches        6        6           
=======================================
  Hits           27       27           
  Misses          4        4           
  Partials        1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more ฮ” = absolute <relative> (impact), รธ = not affected, ? = missing data Powered by Codecov. Last update 1e4c40a...b2f4c12. Read the comment docs.

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.8.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: