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

fix(deps): update dependency react-hook-form to v7.35.0 #6377

Merged
merged 1 commit into from
Sep 10, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 10, 2022

Mend Renovate

This PR contains the following updates:

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

Release Notes

react-hook-form/react-hook-form

v7.35.0

Compare Source

🎉 feature: new type FieldPathByValue field path by value generic implementation

function CustomFormComponent<
  TFieldValues extends FieldValues,
  Path extends FieldPathByValue<TFieldValues, Date>
>({ control, name }: { control: Control<FieldValues>; name: Path }) {
  const { field } = useController({
    control,
    name,
  });
}

function App() {
  const { control } = useForm<{
    foo: Date;
    baz: string;
  }>();

  return (
    <form>
      <CustomFormComponent control={control} name="foo" /> {/* no error */}
      <CustomFormComponent control={control} name="baz" /> {/*  throw an error since baz is string */}
    </form>
  );
}

🛵 close #​8969 improve type for useFieldArray rules validate prop #​8974

image

🛗 upgrade to TS 4.8.0 and Jest 29 #​8620
🐞 fix #​8970 register field array cause render issue #​8972
🐞 fix: typings for useWatch() with no arguments #​8923
🐞 fix #​8919 make useController fieldState properties enumerable

const { fieldState } = useController({ name: 'test' })
const copy = {...fieldState} 

👶🏻 close #​8909 form context children prop type (https://github.com/react-hook-form/react-hook-form/pull/8910)

<FormProvider {...methods}>
  <div /> // ✅
  <div /> // ✅
</FormProvider>

🐌 allow field errors to escape type check when provided with any type
🔐 github workflows security hardening #​8965
💚 ci: stop csb ci from publishing a comment on PR (https://github.com/react-hook-form/react-hook-form/pull/8977)

thanks to @​Moshyfawn, @​sashashura, @​carvalheiro, @​chetvishal and @​MicaelRodrigues


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, click this checkbox.

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

@renovate renovate bot added the release:chore This PR is a chore (means nothing for users) label Sep 10, 2022
@jtoar jtoar merged commit 6f7f95b into main Sep 10, 2022
@jtoar jtoar deleted the renovate/react-hook-form-7.x branch September 10, 2022 10:50
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Sep 10, 2022
jtoar pushed a commit that referenced this pull request Sep 13, 2022
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@jtoar jtoar modified the milestones: next-release, v3.0.0 Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant