dependabot[bot] opened a new pull request, #26719: URL: https://github.com/apache/superset/pull/26719
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 5.3.4 to 6.21.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/releases">react-router-dom's releases</a>.</em></p> <blockquote> <h2>v6.4.4</h2> <h2>What's Changed</h2> <ul> <li>Throw an error if an <code>action</code>/<code>loader</code> function returns <code>undefined</code> as revalidations need to know whether the loader has previously been executed. <code>undefined</code> also causes issues during SSR stringification for hydration. You should always ensure your <code>loader</code>/<code>action</code> returns a value, and you may return <code>null</code> if you don't wish to return anything. (<a href="https://redirect.github.com/remix-run/react-router/pull/9511">#9511</a>)</li> <li>Properly handle redirects to external domains (<a href="https://redirect.github.com/remix-run/react-router/pull/9590">#9590</a>, <a href="https://redirect.github.com/remix-run/react-router/pull/9654">#9654</a>)</li> <li>Preserve the HTTP method on 307/308 redirects (<a href="https://redirect.github.com/remix-run/react-router/pull/9597">#9597</a>)</li> <li>Support <code>basename</code> in static data routers (<a href="https://redirect.github.com/remix-run/react-router/pull/9591">#9591</a>)</li> <li>Enhanced <code>ErrorResponse</code> bodies to contain more descriptive text in internal 403/404/405 scenarios</li> <li>Fix issues with encoded characters in <code>NavLink</code> and descendant <code><Routes></code> (<a href="https://redirect.github.com/remix-run/react-router/pull/9589">#9589</a>, <a href="https://redirect.github.com/remix-run/react-router/pull/9647">#9647</a>)</li> <li>Properly serialize/deserialize <code>ErrorResponse</code> instances when using built-in hydration (<a href="https://redirect.github.com/remix-run/react-router/pull/9593">#9593</a>)</li> <li>Support <code>basename</code> in static data routers (<a href="https://redirect.github.com/remix-run/react-router/pull/9591">#9591</a>)</li> <li>Updated dependencies: <ul> <li><code>@remix-run/[email protected]</code></li> <li><code>[email protected]</code></li> </ul> </li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/[email protected]@6.4.4">https://github.com/remix-run/react-router/compare/[email protected]@6.4.4</a></p> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li> <p>fix: remove internal router singleton (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/9227">#9227</a>)</p> <p>This change removes the internal module-level <code>routerSingleton</code> we create and maintain inside our data routers since it was causing a number of headaches for non-simple use cases:</p> <ul> <li>Unit tests are a pain because you need to find a way to reset the singleton in-between tests <ul> <li>Use use a <code>_resetModuleScope</code> singleton for our tests</li> <li>...but this isn't exposed to users who may want to do their own tests around our router</li> </ul> </li> <li>The JSX children <code><Route></code> objects cause non-intuitive behavior based on idiomatic react expectations <ul> <li>Conditional runtime <code><Route></code>'s won't get picked up</li> <li>Adding new <code><Route></code>'s during local dev won't get picked up during HMR</li> <li>Using external state in your elements doesn't work as one might expect (see <a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/9225">#9225</a>)</li> </ul> </li> </ul> <p>Instead, we are going to lift the singleton out into user-land, so that they create the router singleton and manage it outside the react tree - which is what react 18 is encouraging with <code>useSyncExternalStore</code> anyways! This also means that since users create the router - there's no longer any difference in the rendering aspect for memory/browser/hash routers (which only impacts router/history creation) - so we can get rid of those and trim to a simple <code>RouterProvider</code></p> <pre lang="jsx"><code>// Before function App() { <DataBrowserRouter> <Route path="/" element={<Layout />}> <Route index element={<Home />}> </Route> <DataBrowserRouter> } <p>// After let router = createBrowserRouter([{ path: "/", element: <Layout />, children: [{ index: true, </code></pre></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md">react-router-dom's changelog</a>.</em></p> <blockquote> <h2>6.21.3</h2> <h3>Patch Changes</h3> <ul> <li>Fix <code>NavLink</code> <code>isPending</code> when a <code>basename</code> is used (<a href="https://redirect.github.com/remix-run/react-router/pull/11195">#11195</a>)</li> <li>Remove leftover <code>unstable_</code> prefix from <code>Blocker</code>/<code>BlockerFunction</code> types (<a href="https://redirect.github.com/remix-run/react-router/pull/11187">#11187</a>)</li> <li>Updated dependencies: <ul> <li><code>[email protected]</code></li> </ul> </li> </ul> <h2>6.21.2</h2> <h3>Patch Changes</h3> <ul> <li>Leverage <code>useId</code> for internal fetcher keys when available (<a href="https://redirect.github.com/remix-run/react-router/pull/11166">#11166</a>)</li> <li>Updated dependencies: <ul> <li><code>@remix-run/[email protected]</code></li> <li><code>[email protected]</code></li> </ul> </li> </ul> <h2>6.21.1</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies: <ul> <li><code>[email protected]</code></li> <li><code>@remix-run/[email protected]</code></li> </ul> </li> </ul> <h2>6.21.0</h2> <h3>Minor Changes</h3> <ul> <li> <p>Add a new <code>future.v7_relativeSplatPath</code> flag to implement a breaking bug fix to relative routing when inside a splat route. (<a href="https://redirect.github.com/remix-run/react-router/pull/11087">#11087</a>)</p> <p>This fix was originally added in <a href="https://redirect.github.com/remix-run/react-router/issues/10983">#10983</a> and was later reverted in <a href="https://redirect.github.com/remix-run/react-router/pull/11078">#11078</a> because it was determined that a large number of existing applications were relying on the buggy behavior (see <a href="https://redirect.github.com/remix-run/react-router/issues/11052">#11052</a>)</p> <p><strong>The Bug</strong> The buggy behavior is that without this flag, the default behavior when resolving relative paths is to <em>ignore</em> any splat (<code>*</code>) portion of the current route path.</p> <p><strong>The Background</strong> This decision was originally made thinking that it would make the concept of nested different sections of your apps in <code><Routes></code> easier if relative routing would <em>replace</em> the current splat:</p> <pre lang="jsx"><code><BrowserRouter> <Routes> <Route path="/" element={<Home />} /> <Route path="dashboard/*" element={<Dashboard />} /> </Routes> </BrowserRouter> </code></pre> <p>Any paths like <code>/dashboard</code>, <code>/dashboard/team</code>, <code>/dashboard/projects</code> will match the <code>Dashboard</code> route. The dashboard component itself can then render nested <code><Routes></code>:</p> </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/44b391ad27dacc07bb1298bd79315c00845d5a2c"><code>44b391a</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11203">#11203</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/b4bf9271bc3e2a5a1fec73485392563cf3c8a7e2"><code>b4bf927</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11196">#11196</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/b541b8dd5a582b1e95a2fd0111eeac2ab92f738b"><code>b541b8d</code></a> Fix NavLink isPending with a basename (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11195">#11195</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/552662ab867fd09e865adb33bb6631207a16ca53"><code>552662a</code></a> Remove leftover <code>unstable_</code> prefix from <code>Blocker</code>/<code>BlockerFunction</code> types (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/1">#1</a>...</li> <li><a href="https://github.com/remix-run/react-router/commit/04d653bcdb5b641485e4b9081fe196cfeac12716"><code>04d653b</code></a> Copy remix script to remove prereleases from changelogs (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11183">#11183</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/4e528c0bcee338c8f26d948affb3092257f6ee85"><code>4e528c0</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11182">#11182</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/c2c0826c6e4a9e213b4f43bc4e95d4f85bf2d96e"><code>c2c0826</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11178">#11178</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/e0d106bbe765ef12d3ad31e223127e2d08cab8e1"><code>e0d106b</code></a> Leverage useId for internal fetcher keys when available (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11166">#11166</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/08cda17f450ebe19481be3fc080d243ec5ef509f"><code>08cda17</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11132">#11132</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/e5d73cf2251bf99d3113695a57c34c84e0ac92e5"><code>e5d73cf</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11131">#11131</a>)</li> <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom">compare view</a></li> </ul> </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> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
