Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

[Snyk] Upgrade react-hook-form from 7.31.1 to 7.38.0 #456

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

Conversation

laukvik
Copy link
Contributor

@laukvik laukvik commented Nov 15, 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.31.1 to 7.38.0.

ℹ️ 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 18 versions ahead of your current version.
  • The recommended version was released a month ago, on 2022-10-18.
Release notes
Package name: react-hook-form
  • 7.38.0 - 2022-10-18

    🕰 support validation for week and time input type (#9189)

    <input
      {...register("week", { min: "2022-W40", max: "2022-W50" })}
      type="week"
    />
    <input
      {...register("time", { min: "11:00", max: "12:00" })}
      type="time"
    />
    Screen.Recording.2022-10-19.at.8.21.56.am.mov
    Screen.Recording.2022-10-19.at.8.21.56.am.mov

    🧘🏻 enable focus error with disabled inputs while submitting (#9155)
    🧱 prevent runtime error startsWith called with undefined (#9223)
    🐞 fix #9216 isValid state not update with async form level trigger (#9218)
    🧦 fix accessibility issue on examples with input missing id (#9174)
    🚔 check field array value type before updating (#9170)
    📓 update TSDoc for useFieldArray (#9178)

    thanks to @ BogdanCerovac and @ leapful

  • 7.37.0 - 2022-10-06

    🍨 feature: include defaultValues inside formState (#8966)

    const { formState, watch } = useForm({
    defaultValues: { name: 'test' }
    })
    const { defaultValues } = useFormState()

    const name = watch('name')

    return (
    <div>
    <p>Your name was {defaultValues.name}</p>
    <p>Updated name is {name}</p>
    </div>
    )

    Screen.Recording.2022-10-07.at.8.55.56.am.mov
    Screen.Recording.2022-10-07.at.8.55.56.am.mov

    🖨 close #9058 avoid clone object when contains prototype methods

    class DataModel {
    constructor() {
    this.firstName = null
    }
    }
    const formData = new DataModel({ firstName: "Bob" })

    useForm({
    defaultValues: formData // no longer get clone internally
    })

    🐞 fix #9134 useFieldArray validation action inconsistency (#9136)
    🥷 close #9126 useController ref overwrite under strict mode (#9130)
    😵‍💫 close #9105 improve input focus method check (#9109)
    📖 fix UseFieldArrayAppend types example (#9093)
    🖇 change link (#9159)
    🙌 improve naming of options forEach local (#9152)

    thanks to @ arieloO @ Ilaygoldman and @ simenbrekken-visma

  • 7.37.0-next.0 - 2022-09-29
    Read more
  • 7.36.1 - 2022-09-23

    🪲 fix #9082 inconsistency between single/group of checkboxes disabled check state (#9083)
    🌡️ improve setFocus to prevent throw error (#9081)

  • 7.36.0 - 2022-09-20

    🚂 feature: reset to support callback syntax (#9051)

    reset with partial form values will require invoking getValues at the same time, here is an improvement 👇

    Convert your code from:

    reset({
      ...getValues(),
      partialData: 'onlyChangeThis'
    })

    to:

    reset((formValues) => {
      return {
        ...formValues,
        partialData: 'onlyChangeThis'
      }
    })
  • 7.35.0 - 2022-09-09
    Read more
  • 7.35.0-next.0 - 2022-08-25
    Read more
  • 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
  • 7.33.1 - 2022-07-01
  • 7.33.0 - 2022-06-24
  • 7.32.2 - 2022-06-17
  • 7.32.1 - 2022-06-14
  • 7.32.0 - 2022-06-10
  • 7.31.3 - 2022-05-27
  • 7.31.2 - 2022-05-20
  • 7.31.1 - 2022-05-10
from react-hook-form GitHub release notes
Commit messages
Package name: react-hook-form
  • fe6987b 7.38.0
  • 6758f15 ❤️ thank you for the sponsorship Formcarry
  • 55335fc 🧱 prevent runtime error `startsWith` called with `undefined` (#9223)
  • 8eeac44 🐞 fix #9216 isValid state not update with async form level trigger (#9218)
  • 5f032bd 🧦 fix accessibility issue on examples with input missing id (#9174)
  • deec703 🕰 support validation for week and time input type (#9189)
  • 58e0d30 🎬 fix stale bot and remove video
  • f1f2a67 ⏳ introduce lock issue workflow (#9179)
  • 699b715 📓 update TSDoc for `useFieldArray` (#9178)
  • dc8a71b 📖 update template and fix link
  • 62924c7 🚔 check field array value type before updating (#9170)
  • 4cc5418 💨 Bump vite from 2.9.6 to 2.9.13 in /app (#8949)
  • 62416f8 🧘🏻 enable focus error with disabled inputs while submitting (#9155)
  • 2a29943 🥼 update changelog v7.37.0
  • c0da173 7.37.0
  • ca54b78 🖇 change link (#9159)
  • 8b3c2b6 🙌 improve naming of options forEach local (#9152)
  • ab90f27 📖 update readme
  • dd5495a 💔 update sponsors list
  • 2d5ee0e 🖨 close #9058 avoid clone object contains prototype methods (#9080)
  • bd21a86 🐞 fix #9134 `useFieldArray` validation action inconsistency (#9136)
  • d961a32 🥷 close #9126 useController ref overwrite under strict mode (#9130)
  • 2063a48 📖 update readme quick start example
  • c5edeb2 😵‍💫 close #9105 improve input focus method check (#9109)

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

@laukvik laukvik requested a review from a team as a code owner November 15, 2022 13:54
@sonarcloud
Copy link

sonarcloud bot commented Nov 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants