Skip to content

Commit ca52431

Browse files
Bump react-router from 7.9.5 to 7.10.0 in /frontend (#1453)
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 7.9.5 to 7.10.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/releases">react-router's releases</a>.</em></p> <blockquote> <h2>v7.10.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7100">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7100</a></p> <h2>v7.9.6</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v796">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v796</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md">react-router's changelog</a>.</em></p> <blockquote> <h2>7.10.0</h2> <h3>Minor Changes</h3> <ul> <li> <p>Stabilize <code>fetcher.reset()</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/14545">#14545</a>)</p> <ul> <li>⚠️ This is a breaking change if you have begun using <code>fetcher.unstable_reset()</code></li> </ul> </li> <li> <p>Stabilize the <code>dataStrategy</code> <code>match.shouldRevalidateArgs</code>/<code>match.shouldCallHandler()</code> APIs. (<a href="https://redirect.github.com/remix-run/react-router/pull/14592">#14592</a>)</p> <ul> <li> <p>The <code>match.shouldLoad</code> API is now marked deprecated in favor of these more powerful alternatives</p> </li> <li> <p>If you're using this API in a custom <code>dataStrategy</code> today, you can swap to the new API at your convenience:</p> <pre lang="tsx"><code>// Before const matchesToLoad = matches.filter((m) =&gt; m.shouldLoad); <p>// After const matchesToLoad = matches.filter((m) =&gt; m.shouldCallHandler()); </code></pre></p> </li> <li> <p><code>match.shouldRevalidateArgs</code> is the argument that will be passed to the route <code>shouldRevaliate</code> function</p> </li> <li> <p>Combined with the parameter accepted by <code>match.shouldCallHandler</code>, you can define a custom revalidation behavior for your <code>dataStrategy</code>:</p> </li> </ul> <pre lang="tsx"><code>const matchesToLoad = matches.filter((m) =&gt; { const defaultShouldRevalidate = customRevalidationBehavior( match.shouldRevalidateArgs, ); return m.shouldCallHandler(defaultShouldRevalidate); // The argument here will override the internal `defaultShouldRevalidate` value }); </code></pre> </li> </ul> <h3>Patch Changes</h3> <ul> <li> <p>Fix a Framework Mode bug where the <code>defaultShouldRevalidate</code> parameter to <code>shouldRevalidate</code> would not be correct after <code>action</code> returned a 4xx/5xx response (<code>true</code> when it should have been <code>false</code>) (<a href="https://redirect.github.com/remix-run/react-router/pull/14592">#14592</a>)</p> <ul> <li>If your <code>shouldRevalidate</code> function relied on that parameter, you may have seen unintended revalidations</li> </ul> </li> <li> <p>Fix <code>fetcher.submit</code> failing with plain objects containing a <code>tagName</code> property (<a href="https://redirect.github.com/remix-run/react-router/pull/14534">#14534</a>)</p> </li> <li> <p>[UNSTABLE] Add <code>unstable_pattern</code> to the parameters for client side <code>unstable_onError</code>, refactor how it's called by <code>RouterProvider</code> to avoid potential strict mode issues (<a href="https://redirect.github.com/remix-run/react-router/pull/14573">#14573</a>)</p> </li> <li> <p>Add new <code>unstable_useTransitions</code> flag to routers to give users control over the usage of <a href="https://react.dev/reference/react/startTransition"><code>React.startTransition</code></a> and <a href="https://react.dev/reference/react/useOptimistic"><code>React.useOptimistic</code></a>. (<a href="https://redirect.github.com/remix-run/react-router/pull/14524">#14524</a>)</p> <ul> <li>Framework Mode + Data Mode: <ul> <li><code>&lt;HydratedRouter unstable_transition&gt;</code>/<code>&lt;RouterProvider unstable_transition&gt;</code></li> <li>When left unset (current default behavior) <ul> <li>Router state updates are wrapped in <code>React.startTransition</code></li> <li>⚠️ This can lead to buggy behaviors if you are wrapping your own navigations/fetchers in <code>React.startTransition</code></li> <li>You should set the flag to <code>true</code> if you run into this scenario to get the enhanced <code>useOptimistic</code> behavior (requires React 19)</li> </ul> </li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/remix-run/react-router/commit/4a5e3332aa20cdf7011d5ebd17c9b78a18123f5b"><code>4a5e333</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14618">#14618</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/99244df399bbd6b4d15a59683ed57de3f2420952"><code>99244df</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14606">#14606</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/1f8fee408db2f74dcc4b04eeb51009da5d51d8a6"><code>1f8fee4</code></a> Update source code docs</li> <li><a href="https://github.com/remix-run/react-router/commit/d037c1129cc8b4f92a0c88e764dfe4cf309450f6"><code>d037c11</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14599">#14599</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/75bdd9b9f7a2b7bed3a0c88c4539abad02f3d58e"><code>75bdd9b</code></a> Stabilize shouldCallHandler APIs (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14592">#14592</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/e04ad2badbcc4dd415ffc6ce30f9b5d82bf560f1"><code>e04ad2b</code></a> Test cleanups (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14589">#14589</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/1dbf8e39bb293779be7bfb2ace1ce0b2800e98ab"><code>1dbf8e3</code></a> Improve href() with a faster trim end splat (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14329">#14329</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/3df0dded4a56eca4def3fd8d4504f42b1e47733e"><code>3df0dde</code></a> Fix test console warn</li> <li><a href="https://github.com/remix-run/react-router/commit/a6182f555dbf9d9f76e60c2824a3d7662bd95381"><code>a6182f5</code></a> Fix internal type error in useRoute types that surfaces when skipLibCheck is ...</li> <li><a href="https://github.com/remix-run/react-router/commit/87a455f49dcf0534fd41aaa60920edb45f6527c2"><code>87a455f</code></a> Stabilize fetcher.reset() (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14545">#14545</a>)</li> <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for react-router since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-router&package-manager=npm_and_yarn&previous-version=7.9.5&new-version=7.10.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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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 356769f commit ca52431

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"react-i18next": "^16.3.1",
4141
"react-icons": "^5.5.0",
4242
"react-qr-code": "^2.0.12",
43-
"react-router": "^7.9.5",
43+
"react-router": "^7.10.0",
4444
"swr": "^2.3.0"
4545
},
4646
"devDependencies": {

frontend/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)