villivald / koripallopaikat

Koripallopaikat is a curated collection of public basketball courts in the Helsinki Metropolitan Area. Everyone is welcome to submit their local court.
https://koripallopaikat.com
6 stars 0 forks source link

[Snyk] Upgrade react-hook-form from 7.9.0 to 7.11.1 #3

Closed snyk-bot closed 2 years ago

snyk-bot commented 3 years ago

Snyk has created this PR to upgrade react-hook-form from 7.9.0 to 7.11.1.

merge advice :information_source: 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.


Release notes
Package name: react-hook-form
  • 7.11.1 - 2021-07-17

    🐛 fix #5944 reset issue with unmounted useFieldArray (#5954)
    🐛 fix #5942 case when value is supplied as null/undefined
    ⌨️ close #5928 improve useWatch and watch types (#5945)
    🎮 fix #5936 regression with controller value transform (#5937)

  • 7.11.0 - 2021-07-12

    🚅 update method for useFieldArray (#5835)

    const { update } = useFieldArray();
    
    update(0, data); // update an individual field array node

    🔄 fix #5911 issue with reset clear flag for Controller (#5912)
    ⌨️ fix #5839 issue with null type with deepMap (#5896)
    🚌 close #5857 setValue missing await with trigger validation (#5859)
    👨🏻‍💻 chore: allow readonly tuple in useWatch generic params (#5845)

  • 7.10.2-beta.0 - 2021-07-11

    7.10.2-beta.0

  • 7.10.1 - 2021-07-05

    🗝️ fix #5808 DeepMap extend issue with File (#5813)
    🕵️ fix #5816 variable name typo in useController

  • 7.10.1-beta.0 - 2021-07-05

    7.10.1-beta.0

  • 7.10.0 - 2021-07-02

    🍌 deprecated defaultValue at useFieldArray as a required prop (#5636)

    function Test() {
      const { control, register } = useForm();
      const { fields, append, prepend, remove, swap, move, insert } = useFieldArray({
        control,
        name: "test",
      });
    
      return (
        {fields.map((field, index) => (
          <input
            key={field.id} // important to include key with field's id
            {...register(`test.${index}.value`)} 
    -        defaultValue={field.value} // no longer required
          />
        ))}
      );
    }

    👨🏻‍💻 fix #5787 controller type for defaultValue (#5792)
    😿 fix #5777 regression on unmount defaultValue with shouldUnregister:true (#5778)
    📅 close #5724 setValue skip parse date time as object (#5729)
    🎮 #5712 enable controller with native validation (#5716)
    🐛 fix spread non-primitive values in nested array fields (#5705)
    🎪 batch single watch update (#5707)
    🏟️ batch unregister inputs (#5706)
    🐞 fix #5699 trigger not focusing first input with error (#5700)

  • 7.9.0 - 2021-06-19

    🥇 feature: support browser native form control (#5503)

    Screen Shot 2021-06-19 at 10 26 37 am

    export default function App() {
      const { register, handleSubmit } = useForm({
        shouldUseNativeValidation: true,
      });
      const onSubmit = (data) => console.log(data);
    
      return (
        <form onSubmit={handleSubmit(onSubmit)}>
          <input
            {...register("firstName", {
              required: "This is required from bill."
            })}
            autoComplete={"off"}
            placeholder="First Name"
          />
          <input type="submit" />
        </form>
      );
    }

    🐞 fix #5661 trigger throw error when the field is not found (#5664)
    🐞 fix #5678 reset with keep default values with Controller (#5688)

from react-hook-form GitHub release notes
Commit messages
Package name: react-hook-form
  • 2e8c343 7.11.1
  • 991fdbc 🐛 fix #5944 reset issue with unmounted useFieldArray (#5954)
  • 2efefc0 ❤️ thank you gpalrepo & PJ sponsorship
  • 9381fd0 🐛 fix #5942 case when value is supplied as null/undefined
  • f56a3f8 ⌨️ close #5928 improve useWatch and watch types (#5945)
  • 8487356 🎮 fix #5936 regression with controller value transform (#5937)
  • 6cb93c6 🥼 update change log
  • c4771ec 7.11.0
  • d6d1a84 🔄 fix #5911 issue with reset clear flag for Controller (#5912)
  • 2d9728e ⌨️ fix #5839 issue with null type with deepMap (#5896)
  • 5a9b886 7.10.2-beta.0
  • 6bd36fe 🚅 `update` method for useFieldArray (#5835)
  • a0a6cac 🚌 close #5857 setValue missing await with trigger validation (#5859)
  • a427749 👨🏻‍💻 chore: allow readonly tuple in useWatch generic params (#5845)
  • 90e3332 💉 #5838 include unit test coverage
  • 0ba65e3 7.10.1
  • 7064f5c 🥲 fix unit test snapshot
  • 14a5b4f 7.10.1-beta.0
  • 77be0a6 🕵️ fix #5816 variable name typo in useController
  • 5cc71b7 🗝️ fix #5808 DeepMap extend issue with File (#5813)
  • 472a488 🥼 update changelog
  • 1668631 7.10.0
  • d892e42 👨🏻‍💻 fix #5787 controller type for defaultValue (#5792)
  • 40a9d5d 👨‍🏭 chore: update packages to latest (#5768)
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

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

koripallo – ./

🔍 Inspect: https://vercel.com/villivald/koripallo/9D9hxqnMA7vXkmYX7eqiPkrxBoej
✅ Preview: https://koripallo-git-snyk-upgrade-21fea33ad22f22dd629-92c5ad-villivald.vercel.app

koripallopaikat – ./

🔍 Inspect: https://vercel.com/villivald/koripallopaikat/7xTfPs5SB8FECT3AgzTd9ogUmMPY
✅ Preview: https://koripallopaikat-git-snyk-upgrade-21fea33ad22f2-c33feb-villivald.vercel.app