Socket
Socket
Sign inDemoInstall

react-hook-form

Package Overview
Dependencies
Maintainers
1
Versions
1030
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
103

7.40.0-next.0

Diff

bluebill1049
published 7.39.4 •

bluebill1049
published 7.39.3 •

bluebill1049
published 7.39.2 •

bluebill1049
published 7.39.1 •

bluebill1049
published 7.39.0 •

Changelog

Source

[7.39.0] - 2022-11-2

Changed

  • isValid formState is no longer only applicable with onChange, onTouched, and onBlur mode.
bluebill1049
published 7.38.0 •

Changelog

Source

[7.38.0] - 2022-10-19

Added

  • support build-in validation with input type week and time
<input {...register("week", { min: "2022-W40" })} type="week" />
<input {...register("time", { min: "11:00" })} type="time" />
bluebill1049
published 7.37.0 •

Changelog

Source

[7.37.0] - 2022-10-07

Added

  • new formState defaultValues
const { formState, watch } = useForm({
  defaultValues: { name: 'test' },
});
const { defaultValues } = useFormState();

const name = watch('name');

return (
  <div>
    <p>Your name was {defaultValues.name}</p>
    <p>Updated name is {name}</p>
  </div>
);

Changed

  • defaultValues: complex object data contains prototype methods will not be cloned internally
bluebill1049
published 7.37.0-next.0 •

bluebill1049
published 7.36.1 •

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