[Snyk] Upgrade @hookform/resolvers from 2.8.8 to 2.9.8 #372
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.
Snyk has created this PR to upgrade @hookform/resolvers from 2.8.8 to 2.9.8.
ℹ️ 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: @hookform/resolvers
2.9.8 (2022-09-11)
Bug Fixes
2.9.7 (2022-07-26)
Bug Fixes
2.9.6 (2022-07-15)
Bug Fixes
2.9.5 (2022-07-08)
Bug Fixes
2.9.4 (2022-07-07)
Bug Fixes
2.9.3 (2022-06-24)
Breaking Change
BREAKING CHANGE: This change will update package dependency with react-hook-form to 7.33.0 above (52a6e07)
2.9.2 (2022-06-23)
Bug Fixes
fp-ts/Either
overfp-ts/lib/Either
(#419) (7951951)2.9.1 (2022-06-10)
Bug Fixes
2.9.0 (2022-06-03)
Features
import { ajvResolver } from '@ hookform/resolvers/ajv';
// must use
minLength: 1
to implement required fieldconst schema = {
type: 'object',
properties: {
username: {
type: 'string',
minLength: 1,
errorMessage: { minLength: 'username field is required' },
},
password: {
type: 'string',
minLength: 1,
errorMessage: { minLength: 'password field is required' },
},
},
required: ['username', 'password'],
additionalProperties: false,
};
const App = () => {
const {
register,
handleSubmit,
formState: { errors },
} = useForm({
resolver: ajvResolver(schema),
});
return (
<form onSubmit={handleSubmit((data) => console.log(data))}>
<input {...register('username')} />
{errors.username && <span>{errors.username.message}</span>}
<input {...register('password')} />
{errors.password && <span>{errors.password.message}</span>}
<button type="submit">submit</button>
</form>
);
};
2.8.10 - 2022-05-17
2.8.10 (2022-05-17)
Bug Fixes
Commit messages
Package name: @hookform/resolvers
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