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

Commit a5500c4

Browse files
build(deps): Bump react-hook-form from 7.41.3 to 7.43.4 in /api-editor/gui (#1249)
Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.41.3 to 7.43.4. <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.43.4</h2> <p>🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10021">#10021</a> issue with <code>.next</code> runtime error and fix cypress action (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10026">#10026</a>)</p> <h2>Version 7.43.3</h2> <p>📐 fix <code>resetField</code> defaultValue type and reduce any type (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10024">#10024</a>) 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9997">#9997</a> issue on the mounted state is updated with values prop (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10001">#10001</a>) Revert &quot;🏍 delete dirty fields node instead of marking as false (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9156">#9156</a>)&quot; (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9996">#9996</a>) 💅 improve state subscription consistency (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9984">#9984</a>)</p> <h2>Version 7.43.2</h2> <p>🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9972">#9972</a> input focus with submitted form (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9978">#9978</a>) 💉 improve perf &amp; save some bytes (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9968">#9968</a>) 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9955">#9955</a> useForm values prop keepDirtyValues not update <code>isDirty</code> (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9959">#9959</a>) 🗑️ remove JSX message check (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9921">#9921</a>)</p> <h2>Version 7.43.1</h2> <p>🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9871">#9871</a> issue with error type (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9873">#9873</a>) 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9842">#9842</a> <code>clearErrors</code> method does not support global error (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9843">#9843</a>)</p> <h2>Version 7.43.0</h2> <p>🌏 feature: support global error type <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9746">#9746</a></p> <pre lang="tsx"><code>const onSubmit = async () =&gt; { const response = await fetch(...) if (response.statusCode &gt; 200) { setError('root.serverError', { type: response.statusCode, }) } } <p>const onClick = () =&gt; { setError('root.random', { type: 'random', }) }</p> <p>return ( &lt;&gt; {errors.root.serverError.type === 400 &amp;&amp; &lt;p&gt;server response message&lt;/p&gt;} &lt;p&gt;{errors.root?.serverError?.message}&lt;/p&gt; &lt;p&gt;{errors.root?.random?.message}&lt;/p&gt; &lt;/&gt; ) </code></pre></p> <p>🪜 fix set <code>values</code> for controlled components (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9780">#9780</a>)</p> <pre lang="tsx"><code>const { control } = useForm({ values: { test: '' } }) &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/553ebacfa9a7f598aec90d56dac4f82c58533de3"><code>553ebac</code></a> 7.43.4</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/33810a6ba6ce9f1b764f1ed993d556a79d4019fd"><code>33810a6</code></a> 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10021">#10021</a> issue with .next runtime error and fix cypress action (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10026">#10026</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/a178533ed7bea016a18a45cfea4577fc49179d36"><code>a178533</code></a> 7.43.3</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/ba919be824f4470b7ee2ab7258df8e900786ae2d"><code>ba919be</code></a> 📦 fix cypress tests (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10025">#10025</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/41f03c0748d34f32708f1512cd5e2349fb00383c"><code>41f03c0</code></a> 📐 fix <code>resetField</code> <code>defaultValue</code> type and reduce <code>any</code> type (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10024">#10024</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/f4577b7d79810b6631d4f665ae7acbea5c90d00f"><code>f4577b7</code></a> 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9997">#9997</a> issue on mounted state is updated with values prop (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/10001">#10001</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/6721510cce55612ef916f90727d812037d678f7d"><code>6721510</code></a> Revert &quot;🏍 delete dirty fields node instead of mark as false (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9156">#9156</a>)&quot; (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9996">#9996</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/a8fb1a1ca7e9ab98545aaf1040a36f9c043cc69c"><code>a8fb1a1</code></a> 💅 improve state subscription consistency (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9984">#9984</a>)</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/6de47e95c8d5c5bf11190faedeb55e31d0e61c7d"><code>6de47e9</code></a> 7.43.2</li> <li><a href="https://github.com/react-hook-form/react-hook-form/commit/695f62314e45d676903afd461220204f76394073"><code>695f623</code></a> 🐞 fix <a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9972">#9972</a> input focus with submitted form (<a href="https://github-redirect.dependabot.com/react-hook-form/react-hook-form/issues/9978">#9978</a>)</li> <li>Additional commits viewable in <a href="https://github.com/react-hook-form/react-hook-form/compare/v7.41.3...v7.43.4">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.41.3&new-version=7.43.4)](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> Co-authored-by: Lars Reimann <[email protected]>
1 parent d6959eb commit a5500c4

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
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.3",
33-
"react-hook-form": "^7.41.3",
33+
"react-hook-form": "^7.43.4",
3434
"react-icons": "^4.7.1",
3535
"react-markdown": "^8.0.5",
3636
"react-redux": "^8.0.5",

api-editor/gui/src/features/annotations/forms/BoundaryForm.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
import React, { useEffect } from 'react';
2020
import { useForm } from 'react-hook-form';
2121
import { useAppDispatch, useAppSelector } from '../../../app/hooks';
22-
import { numberPattern } from '../../../common/validation';
2322
import { PythonDeclaration } from '../../packageData/model/PythonDeclaration';
2423
import { AnnotationForm } from './AnnotationForm';
2524
import { Optional } from '../../../common/util/types';
@@ -169,7 +168,6 @@ export const BoundaryForm: React.FC<BoundaryFormProps> = function ({ target }) {
169168
<NumberInput
170169
{...register('interval.lowerIntervalLimit', {
171170
required: 'This is required.',
172-
pattern: numberPattern,
173171
valueAsNumber: true,
174172
disabled: watch('interval.lowerLimitType') === ComparisonOperator.UNRESTRICTED,
175173
validate: {
@@ -243,7 +241,6 @@ export const BoundaryForm: React.FC<BoundaryFormProps> = function ({ target }) {
243241
<NumberInput
244242
{...register('interval.upperIntervalLimit', {
245243
required: 'This is required.',
246-
pattern: numberPattern,
247244
valueAsNumber: true,
248245
disabled: watch('interval.upperLimitType') === ComparisonOperator.UNRESTRICTED,
249246
validate: {

0 commit comments

Comments
 (0)