Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 6, 2023

This PR contains the following updates:

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

Release Notes

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

v3.9.1

Compare Source

v3.9.0

Compare Source

Features
  • fluentvalidation-ts: add fluentvalidation-ts resolver (#​702) (5fc1e63)

v3.8.0

Compare Source

v3.7.0

Compare Source

Bug Fixes
  • zodResolver: cannot read properties of undefined (reading 'length') (a3e50c6)
Features

v3.6.0

Compare Source

Features

v3.5.0

Compare Source

Features

v3.4.2

Compare Source

Bug Fixes

v3.4.1

Compare Source

Bug Fixes

v3.4.0

Compare Source

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Add or update dependencies label Apr 6, 2023
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch 2 times, most recently from 237442d to 25f19da Compare April 28, 2023 08:17
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch from 25f19da to 3a90d93 Compare June 21, 2023 14:11
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch from 3a90d93 to 2c0aa0a Compare September 1, 2023 14:03
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch 2 times, most recently from aec8d85 to ea15e3f Compare October 5, 2023 21:54
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch from ea15e3f to 4a0f071 Compare October 24, 2023 11:10
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch 2 times, most recently from 2955b81 to c0f6c1d Compare January 10, 2024 10:15
@renovate renovate bot force-pushed the deps-hookform-resolvers-3.x branch from c0f6c1d to ad28927 Compare January 18, 2024 23:28
@renovate renovate bot changed the title Update dependency @hookform/resolvers to v3 Update dependency @hookform/resolvers to v3 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the deps-hookform-resolvers-3.x branch December 8, 2024 18:40
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Add or update dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant