Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-hook-form from 5.7.2 to 6.0.2 in /app/app4-instagram #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps react-hook-form from 5.7.2 to 6.0.2.

Release notes

Sourced from react-hook-form's releases.

Version 6.0.2

🐞 fix #2050 update dirty when input unmount (#2054) πŸŽƒ fixed isDirty (#2055) πŸͺ’ remove unnecessary deps in useForm hook (#2047) 🐞 fix #2081 with useWatch and reset API (#2085) 🎷 close #2037 with RN handleSubmit arg empty object (#2093) πŸ›Ž close #2073 (#2092) export types from form types πŸš΄β€β™€οΈ close #1990 issue with setValue, getValues, watch and reset 🧠 improve watch API with useFieldArray delete (#2072) 🐞 fix #2112 controller re-render bug (#2115)

Version 6.0.1

🐞 fix unset nested array object (#2040) πŸ‘¨πŸ»β€πŸ’» export ValidationRules type (#2033) 🐞 fix #2017 issue with errors not getting swap in useFieldArray (#2018) 🐞 fix #1996 trigger validation result (#2006)

Version 6.0.0

image

🐞 fix #1963 with register type at context (#1970) 🐞 shouldUnregister will not clear error and internal form state (#1998) 🐞 fix useWatch defaultValue (#1968) 🐞 fix #1931 with reValidateMode (#1933) πŸ‘·πŸ»β€β™‚οΈ improve rollup config (#2001) πŸŽ– improve build settings (#1974) πŸ§œπŸ»β€β™‚οΈ change module name to index and remove npmignore (#1956)

Version 6.0.0-rc.5

⚑ feature/set value should not set dirty to true and give users option

setValue

Reason

The current API is confusing with support both name as string and array of values. In addition, programmatically set a field should give users the option to set dirty, we shouldn't set dirty to true when user setValue programmatically by default.

setValue(fieldName, values, config)

setValue('test', 'value', { shouldValidate: false, shouldDirty: false })


πŸ’ˆ fix/improve setError & clearError (#1907)

setError

setError will focus one error at a time and remove confusing set multiple errors, behavior change.

Changelog

Sourced from react-hook-form's changelog.

[6.0.2] - 2020-07-8

Added

  • export UseFormOptions, UseFieldArrayOptions, FieldError, Field and Mode type

[6.0.1] - 2020-07-3

Added

  • export ValidationRules type

[6.0.0] - 2020-07-1

Added

  • config for shouldUnregister which allow input to be persist even after unmount
useForm({
  shouldUnregister: false, // unmount input state will be remained
});
  • auto focus with useFieldArray
append({}, (autoFocus = true));
prepend({}, (autoFocus = true));
insert({}, (autoFocus = true));
  • TS: NestedValue
import { useForm, NestedValue } from 'react-hook-form';
type FormValues = {
key1: string;
key2: number;
key3: NestedValue<{
key1: string;
key2: number;
}>;
key4: NestedValue<string[]>;
};
const { errors } = useForm<FormValues>();
errors?.key1?.message; // no type error
</tr></table> ... (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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @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 your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • 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 Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants