Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-hook-form

Package Overview
Dependencies
Maintainers
1
Versions
1031
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-form - npm Package Versions

1
104

7.47.0

Diff

Changelog

Source

[7.47.0] - 2023-10-02

Added

  • reset api with keepIsSubmitSuccessful option, keep successfully submitted form state.
<Form
  onSubmit={() => {
    reset(formValues, {
      keepIsSubmitSuccessful: true,
    });
  }}
/>
bluebill1049
published 7.46.2 •

bluebill1049
published 7.46.1 •

bluebill1049
published 7.46.0 •

Changelog

Source

[7.46.0] - 2023-09-03

Added

  • Controller disabled prop
const [disabled, setDisabled] = useState(false);
useController({
  disabled,
});
  • Trigger passed names to construct resolver options
  • Add exact option for array name in useWatch

Changed

  • Update isDirty when setting disabled in register

Fixed

  • Prevent reset argument mutation
bluebill1049
published 7.46.0-next.0 •

bluebill1049
published 7.45.4 •

bluebill1049
published 7.45.3 •

bluebill1049
published 7.45.2 •

bluebill1049
published 7.45.1 •

bluebill1049
published 7.45.0 •

Changelog

Source

[7.45.0] - 2023-06-20

Changed

  • Controller with type check on onChange
- onChange: (...event: any[]) => void;
+ onChange: (event: ChangeEvent | FieldPathValue<TFieldValues, TName>) => void;
  • Include missing generic for useFormContext
- export const useFormContext: <TFieldValues extends FieldValues, TransformedValues extends FieldValues | undefined = undefined>() => UseFormReturn<TFieldValues>;
+ export const useFormContext: <TFieldValues extends FieldValues, TContext = any, TransformedValues extends FieldValues | undefined = undefined>() => UseFormReturn<TFieldValues, TContext, TransformedValues>;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc