Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

fix(deps): update dependency @hookform/resolvers to v3 #161

Merged
merged 1 commit into from
May 1, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 1, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@hookform/resolvers (source) 2.9.11 -> 3.1.0 age adoption passing confidence

Release Notes

react-hook-form/resolvers

v3.1.0

Compare Source

Features

v3.0.1

Compare Source

Bug Fixes

v3.0.0

Compare Source

BREAKING CHANGES
  • Yup resolver require Yup v1
  • rename rawValues option to raw
  • classValidationResolver: schema options now includes validator and transformer options
  • Please note that ajv and ajv-errors need to be installed separately, as they are not bundled with resolvers

Before:

schemaOptions?: ValidatorOptions,

After:

schemaOptions?: {
    validator?: ValidatorOptions;
    transformer?: ClassTransformOptions;
  }
Bug Fixes
Features
import { useForm } from 'react-hook-form';
import { typeboxResolver } from '@​hookform/resolvers/typebox';
import { Type } from '@​sinclair/typebox';

const schema = Type.Object({
  username: Type.String({ minLength: 1 }),
  password: Type.String({ minLength: 1 }),
});

const App = () => {
  const { register, handleSubmit } = useForm({
    resolver: typeboxResolver(schema),
  });

  return (
    <form onSubmit={handleSubmit((d) => console.log(d))}>
      <input {...register('username')} />
      <input type="password" {...register('password')} />
      <input type="submit" />
    </form>
  );
};
Performance Improvements

Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@auto-assign auto-assign bot requested a review from aorumbayev May 1, 2023 00:03
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Merging #161 (48fbd13) into main (bdcdeab) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #161   +/-   ##
=======================================
  Coverage   54.56%   54.56%           
=======================================
  Files          83       83           
  Lines        2005     2005           
  Branches      184      184           
=======================================
  Hits         1094     1094           
  Misses        897      897           
  Partials       14       14           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@aorumbayev aorumbayev merged commit 324181c into main May 1, 2023
@aorumbayev aorumbayev deleted the renovate/hookform-resolvers-3.x branch May 1, 2023 17:22
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.

1 participant