Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 8abbc82

Browse files
build(deps): bump react-hook-form from 7.34.0 to 7.37.0 in /api-editor/gui (#1084)
Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.34.0 to 7.37.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/react-hook-form/react-hook-form/releases">react-hook-form's releases</a>.</em></p> <blockquote> <h2>Version 7.37.0</h2> <p>🍨 feature: include <code>defaultValues</code> inside formState (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/8966">#8966</a>)</p> <pre lang="tsx"><code>const { formState, watch } = useForm({ defaultValues: { name: 'test' } }) const { defaultValues } = useFormState() <p>const name = watch('name')</p> <p>return ( &lt;div&gt; &lt;p&gt;Your name was {defaultValues.name}&lt;/p&gt; &lt;p&gt;Updated name is {name}&lt;/p&gt; &lt;/div&gt; ) </code></pre></p> <p><a href="https://user-images.githubusercontent.com/10513364/194426053-454e8e5b-f1c1-4a9d-8428-ac33296c813f.mov">https://user-images.githubusercontent.com/10513364/194426053-454e8e5b-f1c1-4a9d-8428-ac33296c813f.mov</a></p> <p>🖨 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9058">#9058</a> avoid clone object when contains prototype methods</p> <pre lang="tsx"><code>class DataModel { constructor() { this.firstName = null } } const formData = new DataModel({ firstName: &quot;Bob&quot; }) <p>useForm({ defaultValues: formData // no longer get clone internally }) </code></pre></p> <p>🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9134">#9134</a> useFieldArray validation action inconsistency (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9136">#9136</a>) 🥷 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9126">#9126</a> useController ref overwrite under strict mode (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9130">#9130</a>) 😵‍💫 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9105">#9105</a> improve input focus method check (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9109">#9109</a>) 📖 fix UseFieldArrayAppend types example (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9093">#9093</a>) 🖇 change link (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9159">#9159</a>) 🙌 improve naming of options forEach local (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9152">#9152</a>)</p> <p>thanks to <a href="https://github.com/arieloO"><code>@​arieloO</code></a> <a href="https://github.com/Ilaygoldman"><code>@​Ilaygoldman</code></a> and <a href="https://github.com/simenbrekken-visma"><code>@​simenbrekken-visma</code></a></p> <h2>Version 7.37.0-next.0</h2> <p>🍨 feature: include <code>defaultValues</code> inside formState (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/8966">#8966</a>)</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md">react-hook-form's changelog</a>.</em></p> <blockquote> <h2>[7.37.0] - 2022-10-07</h2> <h2>Added</h2> <ul> <li>new formState <code>defaultValues</code></li> </ul> <pre lang="tsx"><code>const { formState, watch } = useForm({ defaultValues: { name: 'test' }, }); const { defaultValues } = useFormState(); <p>const name = watch('name');</p> <p>return ( &lt;div&gt; &lt;p&gt;Your name was {defaultValues.name}&lt;/p&gt; &lt;p&gt;Updated name is {name}&lt;/p&gt; &lt;/div&gt; ); </code></pre></p> <h2>Changed</h2> <ul> <li>defaultValues: complex object data contains prototype methods will not be cloned internally</li> </ul> <h2>[7.36.0] - 2022-9-20</h2> <h2>Added</h2> <ul> <li>reset to support callback syntax</li> </ul> <pre lang="tsx"><code>reset((formValues) =&gt; { return { ...formValues, partialData: 'onlyChangeThis', }; }); </code></pre> <h2>[7.35.0] - 2022-9-10</h2> <h2>Added</h2> <ul> <li>new type <code>FieldPathByValue</code> field path by value generic implementation</li> </ul> <pre lang="tsx"><code>function CustomFormComponent&lt; TFieldValues extends FieldValues, &lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/c0da17318a4b7cfe40d0ede858dc5100014f5327"><code>c0da173</code></a> 7.37.0</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/ca54b7819ea2565a2c0d19e23308023a0376cbd4"><code>ca54b78</code></a> 🖇 change link (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9159">#9159</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/8b3c2b66c6ecd892b8e27f1d761375e77949c69c"><code>8b3c2b6</code></a> 🙌 improve naming of options forEach local (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9152">#9152</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/ab90f27438d9711c2279edd8357b812ccfa66cde"><code>ab90f27</code></a> 📖 update readme</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/dd5495a29d10da5ce1dd2f2d2ac44e32e8730a2e"><code>dd5495a</code></a> 💔 update sponsors list</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/2d5ee0e4e521663080ed806b173a1e13049f23b4"><code>2d5ee0e</code></a> 🖨 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9058">#9058</a> avoid clone object contains prototype methods (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9080">#9080</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/bd21a8626391581e044fbd1d959dfd01fb0adea3"><code>bd21a86</code></a> 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9134">#9134</a> <code>useFieldArray</code> validation action inconsistency (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9136">#9136</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/d961a32708aa68efa7c1573937947275d99f85f8"><code>d961a32</code></a> 🥷 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9126">#9126</a> useController ref overwrite under strict mode (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9130">#9130</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/2063a48251d78b9bf9e7f094e59ab513b0c8d85e"><code>2063a48</code></a> 📖 update readme quick start example</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/c5edeb2a92f1b34593f3a5665cfbb0cb08920322"><code>c5edeb2</code></a> 😵‍💫 close <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9105">#9105</a> improve input focus method check (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9109">#9109</a>)</li> <li>Additional commits viewable in <a href="https://github.com/react-hook-form/react-hook-form/compare/v7.34.0...v7.37.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-hook-form&package-manager=npm_and_yarn&previous-version=7.34.0&new-version=7.37.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent be080fc commit 8abbc82

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

api-editor/gui/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-editor/gui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"react-chartjs-2": "^4.3.1",
3131
"react-dom": "^18.2.0",
3232
"react-dropzone": "^14.2.2",
33-
"react-hook-form": "^7.34.0",
33+
"react-hook-form": "^7.37.0",
3434
"react-icons": "^4.4.0",
3535
"react-markdown": "^8.0.3",
3636
"react-redux": "^8.0.4",

0 commit comments

Comments
 (0)