Skip to content

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

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/hookform-resolvers-3.x
Open

fix(deps): update dependency @hookform/resolvers to v3#79
renovate[bot] wants to merge 1 commit intomainfrom
renovate/hookform-resolvers-3.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 28, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

react-hook-form/resolvers (@​hookform/resolvers)

v3.3.4

Compare Source

Bug Fixes
  • error handling for array errors with root error (1bfc6ab)

v3.3.3

Compare Source

Bug Fixes

v3.3.2

Compare Source

Bug Fixes

v3.3.1

Compare Source

Bug Fixes

v3.3.0

Compare Source

Bug Fixes
Features
  • add support for root errors for field array (#​621) (5f1a622)
  • pass field names and a context as arguments to a Vest suite (#​584) (3519701)
  • valibot: add more tests, support of criteriaMode and reduce size (#​620) (a9d319d)

v3.2.0

Compare Source

Features

v3.1.1

Compare Source

BREAKING CHANGES

Bug Fixes

You don't need to explicitly provide the type when using the useForm function because it automatically infers the types from the Yup schema.

Before

const schema = Yup.shape({ name: string });

const { register } = useForm<{name: string}>({ resolver: yupResolver(schema) });

After

const schema = Yup.shape({ name: string });

const { register } = useForm({ resolver: yupResolver(schema) });

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 '@&#8203;hookform/resolvers/typebox';
import { Type } from '@&#8203;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

v2.9.11

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" in timezone Australia/Perth, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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.

@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 6263f82 to 76bf809 Compare June 12, 2023 18:11
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 76bf809 to 55ac1fa Compare June 28, 2023 12:13
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 55ac1fa to 7a545a5 Compare July 20, 2023 12:46
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 7a545a5 to aa5bb7b Compare August 6, 2023 13:12
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch 2 times, most recently from 72dc0f7 to b403718 Compare August 29, 2023 02:20
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from b403718 to 8cda77b Compare October 11, 2023 21:36
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 8cda77b to 0121078 Compare December 26, 2023 13:38
@renovate renovate bot force-pushed the renovate/hookform-resolvers-3.x branch from 0121078 to 60c4c74 Compare January 4, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants