tag:github.com,2008:https://github.com/react-hook-form/resolvers/releases Release notes from resolvers 2025-07-29T13:32:52Z tag:github.com,2008:Repository/257580194/v5.2.1 2025-07-29T13:36:52Z v5.2.1 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v5.2.0...v5.2.1">5.2.1</a> (2025-07-29)</h2> <h3>Bug Fixes</h3> <ul> <li>discriminated union for zod v4 mini (<a href="https://github.com/react-hook-form/resolvers/issues/784" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/784/hovercard">#784</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/49a0d7ba939f58e04ca2d01a98949fc70f50b53e">49a0d7b</a>)</li> <li>zod v4 peer deps (<a href="https://github.com/react-hook-form/resolvers/issues/798" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/798/hovercard">#798</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/2d28e6aca611b042e07da0ae4cf448adbe78e1f3">2d28e6a</a>)</li> <li><strong>zod:</strong> fix output type for Zod 4 resolver (<a href="https://github.com/react-hook-form/resolvers/issues/801" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/801/hovercard">#801</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/bc09647a5eec21d07097a8ccf89fb52ebf50a1ec">bc09647</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v5.2.0 2025-07-25T12:52:53Z v5.2.0 <h1><a href="https://github.com/react-hook-form/resolvers/compare/v5.1.1...v5.2.0">5.2.0</a> (2025-07-25)</h1> <h3>Features</h3> <ul> <li><strong>ajv:</strong> add ajv-formats for ajvResolver (<a href="https://github.com/react-hook-form/resolvers/issues/797" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/797/hovercard">#797</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/f04003972a3cc7875beb073ff88c942deb6a2086">f040039</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v5.1.1 2025-06-09T07:53:19Z v5.1.1 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v5.1.0...v5.1.1">5.1.1</a> (2025-06-09)</h2> <h3>Bug Fixes</h3> <ul> <li>zod peer dep issue (<a href="https://github.com/react-hook-form/resolvers/issues/780" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/780/hovercard">#780</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/79cd8b284da29a5a42cd5fdafa2e767747fcfcf7">79cd8b2</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v5.1.0 2025-06-07T13:43:06Z v5.1.0 <h1><a href="https://github.com/react-hook-form/resolvers/compare/v5.0.1...v5.1.0">5.1.0</a> (2025-06-07)</h1> <h3>Features</h3> <ul> <li>support Zod 4, Zod v4 mini, and retains compatibility with Zod v3. (<a href="https://github.com/react-hook-form/resolvers/issues/777" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/777/hovercard">#777</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/8d083bd5f5c3242afa1d59e10b1f72988e7b7e82">8d083bd</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v5.0.1 2025-04-02T05:50:34Z v5.0.1 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v5.0.0...v5.0.1">5.0.1</a> (2025-04-02)</h2> <h3>Bug Fixes</h3> <ul> <li>relax version constraint for react-hook-form 7.55.0 → ^7.55.0 (<a href="https://github.com/react-hook-form/resolvers/issues/758" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/758/hovercard">#758</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/6e8839343dcfea0fe9b874772a01f3bc551cbb5c">6e88393</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v5.0.0 2025-04-01T10:55:31Z v5.0.0 <h1><a href="https://github.com/react-hook-form/resolvers/compare/v4.1.3...v5.0.0">5.0.0</a> (2025-04-01)</h1> <h3>Features</h3> <ul> <li>infer input/output types from schema (<a href="https://github.com/react-hook-form/resolvers/issues/753" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/753/hovercard">#753</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/6124c59a99e9b05604196f8f0c310879033ed58d">6124c59</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Requires react-hook-form@7.55.0 or higher</li> </ul> <p><strong>Before</strong><br> Prior to V5, some projects used manual types like</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="useForm&lt;FormValues&gt;();"><pre><span class="pl-en">useForm</span><span class="pl-c1">&lt;</span><span class="pl-smi">FormValues</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p><strong>After</strong><br> With V5, the correct approach is:</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="useForm&lt;Input, Context, Output&gt;(); useForm&lt;FormInputValues, Context, FormOutputValues&gt;();"><pre><span class="pl-en">useForm</span><span class="pl-c1">&lt;</span><span class="pl-smi">Input</span><span class="pl-kos">,</span> <span class="pl-smi">Context</span><span class="pl-kos">,</span> <span class="pl-smi">Output</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">useForm</span><span class="pl-c1">&lt;</span><span class="pl-smi">FormInputValues</span><span class="pl-kos">,</span> <span class="pl-smi">Context</span><span class="pl-kos">,</span> <span class="pl-smi">FormOutputValues</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p>This update enables distinct outputs when utilizing features like <code>transform</code> from validation libraries.</p> <p>ℹ️ The best approach is to let the types be inferred from your schema, rather than manually defining them.</p> github-actions[bot] tag:github.com,2008:Repository/257580194/v4.1.3 2025-03-03T06:43:58Z v4.1.3 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v4.1.2...v4.1.3">4.1.3</a> (2025-03-03)</h2> <h3>Bug Fixes</h3> <ul> <li>escape square brackets in field name regex pattern (<a href="https://github.com/react-hook-form/resolvers/issues/752" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/752/hovercard">#752</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/50dd4add92d4f9837efa1f147870925672f01c15">50dd4ad</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v4.1.2 2025-02-24T09:58:45Z v4.1.2 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v4.1.1...v4.1.2">4.1.2</a> (2025-02-24)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>standard-schema:</strong> move @standard-schema/utils to dependencies (<a href="https://github.com/react-hook-form/resolvers/issues/748" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/748/hovercard">#748</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/ded1746ee88778232cd162cff91f3710e90195de">ded1746</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v4.1.1 2025-02-22T09:01:21Z v4.1.1 <h2><a href="https://github.com/react-hook-form/resolvers/compare/v4.1.0...v4.1.1">4.1.1</a> (2025-02-22)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>standard-schema:</strong> Propertly handle object path segments (<a href="https://github.com/react-hook-form/resolvers/issues/746" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/746/hovercard">#746</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/8ffada0c7a2026ad4d311ca167f15d5b86d63349">8ffada0</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/257580194/v4.1.0 2025-02-15T10:17:13Z v4.1.0 <h1><a href="https://github.com/react-hook-form/resolvers/compare/v4.0.0...v4.1.0">4.1.0</a> (2025-02-15)</h1> <h3>Features</h3> <ul> <li>automatically infer values from schema (<a href="https://github.com/react-hook-form/resolvers/issues/739" data-hovercard-type="pull_request" data-hovercard-url="/react-hook-form/resolvers/pull/739/hovercard">#739</a>) (<a href="https://github.com/react-hook-form/resolvers/commit/caaff8ddbac714c7c4de5a56287bdb9469bd0e9a">caaff8d</a>)</li> </ul> github-actions[bot]