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

[Snyk] Upgrade react-hook-form from 7.4.0 to 7.35.0 #689

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

Conversation

NOUIY
Copy link
Owner

@NOUIY NOUIY commented Oct 1, 2022

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade react-hook-form from 7.4.0 to 7.35.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 149 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2022-09-09.
Release notes
Package name: react-hook-form
  • 7.35.0 - 2022-09-09

    🎉 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 (#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 (#8977)

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

  • 7.35.0-next.0 - 2022-08-25

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

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

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

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

    🐞 fix #8919 make useController fieldState properties enumerable

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

    👶🏻 close #8909 form context children prop type (#8910)

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

    🐌 allow field errors to escape type check when provided with any type

    thanks to @ carvalheiro, @ chetvishal and @ MicaelRodrigues

  • 7.34.2 - 2022-08-15

    Revert "🧳 let isSubmitting state update after valid form (#8829)"

  • 7.34.1 - 2022-08-12
    Read more
  • 7.34.0 - 2022-07-28
    Read more
  • 7.34.0-next.0 - 2022-07-10
    Read more
  • 7.33.1 - 2022-07-01
    Read more
  • 7.33.0 - 2022-06-24
    Read more
  • 7.32.2 - 2022-06-17
    Read more
  • 7.32.1 - 2022-06-14
    Read more
  • 7.32.0 - 2022-06-10
  • 7.31.3 - 2022-05-27
  • 7.31.2 - 2022-05-20
  • 7.31.1 - 2022-05-10
  • 7.31.0 - 2022-05-10
  • 7.30.0 - 2022-04-17
  • 7.29.0 - 2022-03-30
  • 7.28.1 - 2022-03-20
  • 7.28.0 - 2022-03-13
  • 7.28.0-next.0 - 2022-02-26
  • 7.27.1 - 2022-02-19
  • 7.27.0 - 2022-02-11
  • 7.26.1 - 2022-02-07
  • 7.26.0 - 2022-02-04
  • 7.25.3 - 2022-01-29
  • 7.25.2 - 2022-01-28
  • 7.25.1 - 2022-01-25
  • 7.25.0 - 2022-01-21
  • 7.24.2 - 2022-01-20
  • 7.24.1 - 2022-01-18
  • 7.24.0 - 2022-01-14
  • 7.23.0 - 2022-01-12
  • 7.23.0-next.1 - 2022-01-07
  • 7.23.0-next.0 - 2021-12-30
  • 7.22.5 - 2021-12-24
  • 7.22.4 - 2021-12-23
  • 7.22.3 - 2021-12-21
  • 7.22.2 - 2021-12-18
  • 7.22.1 - 2021-12-15
  • 7.22.0 - 2021-12-13
  • 7.21.3-beta.0 - 2021-12-11
  • 7.21.2 - 2021-12-10
  • 7.21.1 - 2021-12-10
  • 7.21.1-0 - 2021-12-09
  • 7.21.0 - 2021-12-06
  • 7.20.5 - 2021-11-30
  • 7.20.4 - 2021-11-26
  • 7.20.3 - 2021-11-26
  • 7.20.2 - 2021-11-20
  • 7.20.1 - 2021-11-19
  • 7.20.0 - 2021-11-19
  • 7.19.5 - 2021-11-12
  • 7.19.4 - 2021-11-11
  • 7.19.3 - 2021-11-10
  • 7.19.2 - 2021-11-10
  • 7.19.1 - 2021-11-07
  • 7.19.0 - 2021-11-05
  • 7.19.0-next.0 - 2021-10-30
  • 7.18.1 - 2021-11-01
  • 7.18.0 - 2021-10-27
  • 7.18.0-next.0 - 2021-10-09
  • 7.17.5 - 2021-10-20
  • 7.17.4 - 2021-10-14
  • 7.17.3 - 2021-10-13
  • 7.17.2 - 2021-10-08
  • 7.17.1 - 2021-10-05
  • 7.17.0 - 2021-10-02
  • 7.16.2 - 2021-09-30
  • 7.16.1 - 2021-09-27
  • 7.16.0 - 2021-09-24
  • 7.15.4 - 2021-09-19
  • 7.15.3 - 2021-09-12
  • 7.15.2 - 2021-09-09
  • 7.15.2-beta.0 - 2021-09-08
  • 7.15.1 - 2021-09-07
  • 7.15.0 - 2021-09-05
  • 7.14.3-beta.0 - 2021-09-01
  • 7.14.2 - 2021-08-31
  • 7.14.1 - 2021-08-30
  • 7.14.0 - 2021-08-27
  • 7.14.0-next.0 - 2021-08-25
  • 7.13.0 - 2021-08-22
  • 7.13.0-next.5 - 2021-08-15
  • 7.13.0-next.4 - 2021-08-15
  • 7.13.0-next.3 - 2021-08-13
  • 7.13.0-next.2 - 2021-08-09
  • 7.13.0-next.1 - 2021-08-08
  • 7.13.0-next.0 - 2021-07-31
  • 7.12.2 - 2021-07-30
  • 7.12.1 - 2021-07-27
  • 7.12.1-next.0 - 2021-07-26
  • 7.12.0 - 2021-07-24
  • 7.11.2-beta.0 - 2021-07-17
  • 7.11.1 - 2021-07-17
  • 7.11.0 - 2021-07-12
  • 7.10.2-beta.0 - 2021-07-11
  • 7.10.1 - 2021-07-05
  • 7.10.1-beta.0 - 2021-07-05
  • 7.10.0 - 2021-07-02
  • 7.9.0 - 2021-06-19
  • 7.8.9-beta.1 - 2021-06-17
  • 7.8.9-beta.0 - 2021-06-16
  • 7.8.8 - 2021-06-16
  • 7.8.7 - 2021-06-16
  • 7.8.6 - 2021-06-15
  • 7.8.5 - 2021-06-15
  • 7.8.4 - 2021-06-11
  • 7.8.4-beta.0 - 2021-06-10
  • 7.8.3 - 2021-06-09
  • 7.8.2 - 2021-06-08
  • 7.8.1 - 2021-06-05
  • 7.8.0 - 2021-06-05
  • 7.7.2-beta.1 - 2021-06-04
  • 7.7.2-beta.0 - 2021-05-30
  • 7.7.1 - 2021-05-30
  • 7.7.0 - 2021-05-29
  • 7.6.10 - 2021-05-28
  • 7.6.9 - 2021-05-28
  • 7.6.8 - 2021-05-27
  • 7.6.8-beta.0 - 2021-05-27
  • 7.6.7 - 2021-05-26
  • 7.6.7-beta.4 - 2021-05-26
  • 7.6.7-beta.3 - 2021-05-26
  • 7.6.7-beta.2 - 2021-05-26
  • 7.6.7-beta.1 - 2021-05-26
  • 7.6.7-beta.0 - 2021-05-25
  • 7.6.6 - 2021-05-24
  • 7.6.5 - 2021-05-23
  • 7.6.4 - 2021-05-21
  • 7.6.3 - 2021-05-20
  • 7.6.2 - 2021-05-18
  • 7.6.1 - 2021-05-18
  • 7.6.1-beta.1 - 2021-05-16
  • 7.6.0 - 2021-05-15
  • 7.5.3 - 2021-05-13
  • 7.5.3-beta.2 - 2021-05-13
  • 7.5.3-beta.1 - 2021-05-12
  • 7.5.3-beta.0 - 2021-05-12
  • 7.5.2 - 2021-05-10
  • 7.5.2-beta.0 - 2021-05-10
  • 7.5.1 - 2021-05-09
  • 7.5.0 - 2021-05-09
  • 7.4.3-beta.4 - 2021-05-09
  • 7.4.3-beta.3 - 2021-05-09
  • 7.4.3-beta.2 - 2021-05-08
  • 7.4.3-beta.1 - 2021-05-07
  • 7.4.3-beta.0 - 2021-05-07
  • 7.4.2 - 2021-05-07
  • 7.4.1 - 2021-05-06
  • 7.4.0 - 2021-05-04
from react-hook-form GitHub release notes
Commit messages
Package name: react-hook-form

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants