This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
[Snyk] Upgrade react-hook-form from 7.27.1 to 7.44.3 #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.27.1 to 7.44.3.
ℹ️ 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
🦉 fix: add named component export (#10486)
💭 fix React import inconsistency (#10479)
🏙️ fix: removed code from the README updater which was trying to read a non-existent
docs/Helpers.yaml
📝 fix doc: update urls from /api to /docs (#10468)
thanks to @ Moshyfawn @@ protofarer @ farfromrest
7.44.3-beta.0
🪟 fix #10456
object.hasown
replaced withhasOwnProperty
(#10458)🐞 fix
<Form />
component content-type json type missing (#10454)📄 New
<Form />
Component (#9735)https://react-hook-form.com/docs/useform/form
<Form
action="/api"
control={control}
onSuccess={() => {
alert("Great");
}}
/>
// Send post request with json form data
<Form action="/api" encType="application/json" headers={{ accessToken: 'test' }}>
{errors.root?.server.type === 500 && 'Error message'}
{errors.root?.server.type === 400 && 'Error message'}
</Form>
// Send post request with formData with fetch
<Form
onSubmit={async ({ formData, data, formDataJson, event }) => {
await fetch("api", {
method: "post",
body: formData,
});
}}
/>
🗝️ support TransformedValues with useFormContext (#10322)
🚔 added TTransformedValues to FormProvider (#10368)
🐞 fix #10139 with errors diff from the previous with field array action (#10216)
🐞 related #10238 return default values in watch and useWatch when reset is called with an empty object
🦮 remove unnecessary as unknown as cast (#10300)
🧛♂️ close #10277 remove pattern empty string check (#10279)
🐞 fix #9037 bugs that occur in the presence of Array polyfills (#10328)
🫥 close #10348 stop shouldUseNativeValidation pass down constraint props (#10350)
😵💫 close #10386 re-register controller input to fix strict mode (#10418)
✍️ update form.tsx for TSdoc (#10399)
thanks to @ yasamoka & @ Torvin @ ryota-murakami & @ devakrishna33
7.44.0-rc.5
👔 Improve Form component
onSubmit
and removefetcher
prop (#10425)😵💫 close #10386 re-register controller input to fix strict mode (#10418)
✍️ update form.tsx for TSdoc (#10399)
🐞 fix #9037 bugs that occur in the presence of Array polyfills (#10328)
🚔 added TTransformedValues to FormProvider (#10368)
🫥 close #10348 stop shouldUseNativeValidation pass down constraint props (#10350)
thanks to @ yasamoka & @ Torvin
Read more
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