mirror of
https://github.com/evroon/bracket.git
synced 2026-02-24 18:58:30 -05:00
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) => m.shouldLoad); <p>// After const matchesToLoad = matches.filter((m) => 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) => { 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><HydratedRouter unstable_transition></code>/<code><RouterProvider unstable_transition></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="4a5e3332aa"><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="99244df399"><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="1f8fee408d"><code>1f8fee4</code></a> Update source code docs</li> <li><a href="d037c1129c"><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="75bdd9b9f7"><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="e04ad2badb"><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="1dbf8e39bb"><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="3df0dded4a"><code>3df0dde</code></a> Fix test console warn</li> <li><a href="a6182f555d"><code>a6182f5</code></a> Fix internal type error in useRoute types that surfaces when skipLibCheck is ...</li> <li><a href="87a455f49d"><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/react-router@7.10.0/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 /> [](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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>