Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 6, 2022

Bumps @hookform/resolvers from 2.8.0 to 2.9.0.

Release notes

Sourced from @​hookform/resolvers's releases.

v2.9.0

2.9.0 (2022-06-03)

Features

import { useForm } from 'react-hook-form';
import { ajvResolver } from '@hookform/resolvers/ajv';
// must use minLength: 1 to implement required field
const 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>
);
};
</tr></table>

... (truncated)

Commits
  • 0cad904 feat: add ajv (#408)
  • c560af3 fix: update for other resolvers with new option (#404)
  • 259b4dc fix(zod): add ability to skip zod's parsing (#401)
  • 350d255 build(deps-dev): bump @​types/react from 17.0.38 to 17.0.43 (#381)
  • 9017a82 build(deps-dev): bump zod from 3.14.1 to 3.14.3 (#383)
  • 1085de1 build(deps-dev): bump react-hook-form from 7.27.1 to 7.29.0 (#384)
  • f191368 build(deps-dev): bump @​typescript-eslint/eslint-plugin (#385)
  • 873baac build(deps-dev): bump prettier from 2.5.1 to 2.6.0 (#377)
  • 8667d5c build(deps-dev): bump lint-staged from 12.3.4 to 12.3.7 (#376)
  • 345e2da build(deps-dev): bump @​testing-library/react from 12.1.2 to 12.1.4 (#371)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@hookform/resolvers](https://github.com/react-hook-form/resolvers) from 2.8.0 to 2.9.0.
- [Release notes](https://github.com/react-hook-form/resolvers/releases)
- [Commits](react-hook-form/resolvers@v2.8.0...v2.9.0)

---
updated-dependencies:
- dependency-name: "@hookform/resolvers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 6, 2022
@dependabot dependabot bot requested a review from lalit2005 June 6, 2022 05:15
@vercel
Copy link

vercel bot commented Jun 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
staticshield ✅ Ready (Inspect) Visit Preview Jun 6, 2022 at 5:16AM (UTC)

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 13, 2022

Superseded by #190.

@dependabot dependabot bot closed this Jun 13, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/hookform/resolvers-2.9.0 branch June 13, 2022 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants