Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Bump react-hook-form from 4.9.3 to 6.12.0 #159

Conversation

dependabot-preview[bot]
Copy link

Bumps react-hook-form from 4.9.3 to 6.12.0.

Release notes

Sourced from react-hook-form's releases.

Version 6.12.0

⭐️ feature: valueAsNumber, valueAsDate & setValueAs (#3489)

register({ valueAsNumber: true });
register({ valueAsDate: true });
register({ setValueAs: (date) => data });

🤖 enhance #3439 with useWatch default value after reset (#3505) 👨🏻‍💻 fix controller type argument inference (#3501) 🐞 fix #3508 state update with watch (#3511)

Version 6.11.5

Revert "🔩 defaultValues test cases for useFieldArray (#3420)" (#3503)

Version 6.11.4

🐞 fix #3482 remove nested dirty fields (#3486) 👨🏻‍💻 reduce code + fix dirtyFields with field array + improve DX with fast refresh #1680 (#3474) 👨🏻‍💻 close #3642 issue with dev script (#3463) 👌 use useField internally for Controller (#3483)

Version 6.11.3

🐞 fix #3460 issue with nested schema (#3461)

Version 6.11.2

🐞 fix #3450 append focus index (#3453)

Version 6.11.1

🐞 fix #3440 setError with concurrent isSubmitting (#3443) 🐞 fix setValue name type and checkbox with shouldUnregister:false (#3432) 🐞 fix #3416 date compare (#3419) 📦 [other] Reduce npm package size (#3413) 🐞 fix #3404 reset isValid with resolver (#3410) 👨🏻‍💻 add warning on ref.current.focus when it is not a function (#3407) 👨🏻‍💻 close #3329 useWatch return value to skip extra re-render

Version 6.11.0

⌨️ fix #3363 UnpackNestedValue with extends primitive (#3375) 🚨 fix #3373 isDirty will only rely on defaultValues (#3374) 👨🏻‍💻 apply isDirty form check at useForm level for consistency (#3364) 🥶 memoize Controller props (#3324) 🐞 fix #3353 issue with useWatch/watch with Controller (#3361) 🥶 memo control object (#3362) 👨🏻‍💻 add verification if value is defined on FieldArray (#3356) 🐞 fix issue with combining watch/useWatch and clearErrors (#3334) 👓 improve array field checking with dot syntax (#3333) ⌨️ fix #3313 interface extend Record (#3318)

Version 6.10.1

🐞 fix #3321 deepEqual with null vs non-primitive data type (#3322)

Changelog

Sourced from react-hook-form's changelog.

[6.12.0] - 2020-11-28

Changed

  • useWatch will retrieve the latest value from reset(data) instead of return defaultValue
useWatch({
  name: 'test',
  defaultValue: 'data', // this value will only show on the inital render
});

Added

  • register function with additional options to transform value

    • valueAsDate
    • valueAsNumber
    • setValue
register({
  valueAsNumber: true,
});
register({
valueAsNumber: true,
});
register({
setValueAs: (value) => value,
});

Added

[6.11.0] - 2020-11-07

Changed

  • defaultValues is required to measure isDirty, keep a single source of truth to avoid multiple issues raised around isDirty
  • when watch with useFieldArray, fields object is no longer required as defaultValue
- watch('fieldArray', fields);
+ watch('fieldArray');

[6.10.0] - 2020-10-31

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 badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Nov 28, 2020
@codecov
Copy link

codecov bot commented Nov 28, 2020

Codecov Report

Merging #159 (f0f2f73) into master (2f457f2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #159   +/-   ##
=======================================
  Coverage   15.13%   15.13%           
=======================================
  Files          53       53           
  Lines         370      370           
  Branches      117      117           
=======================================
  Hits           56       56           
  Misses        314      314           

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 2f457f2...f0f2f73. Read the comment docs.

@dependabot-preview
Copy link
Author

Superseded by #160.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/react-hook-form-6.12.0 branch November 29, 2020 06:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants