dependabot[bot] opened a new pull request, #31589: URL: https://github.com/apache/superset/pull/31589
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 5.3.4 to 6.28.1. <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<br /> let router = createBrowserRouter([{<br /> path: "/",<br /> element: <Layout />,<br /> children: [{<br /> index: true,<br /> </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/CHANGELOG.md">react-router-dom's changelog</a>.</em></p> <blockquote> <h2>v6.28.1</h2> <p>Date: 2024-12-20</p> <h3>Patch Changes</h3> <ul> <li>Allow users to opt out of v7 deprecation warnings by setting flags to <code>false</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/12441">#12441</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/[email protected]@6.28.1"><code>v6.28.0...v6.28.1</code></a></p> <h2>v6.28.0</h2> <p>Date: 2024-11-06</p> <h3>What's Changed</h3> <ul> <li>In preparation for v7 we've added deprecation warnings for any future flags that you have not yet opted into. Please use the flags to better prepare for eventually upgrading to v7.</li> </ul> <h3>Minor Changes</h3> <ul> <li>Log deprecation warnings for v7 flags (<a href="https://redirect.github.com/remix-run/react-router/pull/11750">#11750</a>) <ul> <li>Add deprecation warnings to <code>json</code>/<code>defer</code> in favor of returning raw objects <ul> <li>These methods will be removed in React Router v7</li> </ul> </li> </ul> </li> </ul> <h3>Patch Changes</h3> <ul> <li>Update JSDoc URLs for new website structure (add /v6/ segment) (<a href="https://redirect.github.com/remix-run/react-router/pull/12141">#12141</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/[email protected]@6.28.0"><code>v6.27.0...v6.28.0</code></a></p> <h2>v6.27.0</h2> <p>Date: 2024-10-11</p> <h3>What's Changed</h3> <h4>Stabilized APIs</h4> <p>This release stabilizes a handful of "unstable" APIs in preparation for the <a href="https://x.com/remix_run/status/1841926034868077009">pending</a> React Router v7 release (see <a href="https://remix.run/blog/merging-remix-and-react-router">these</a> <a href="https://remix.run/blog/incremental-path-to-react-19">posts</a> for more info):</p> <ul> <li><code>unstable_dataStrategy</code> → <code>dataStrategy</code> (<code>createBrowserRouter</code> and friends) (<a href="https://reactrouter.com/v6/routers/create-browser-router#optsdatastrategy">Docs</a>)</li> <li><code>unstable_patchRoutesOnNavigation</code> → <code>patchRoutesOnNavigation</code> (<code>createBrowserRouter</code> and friends) (<a href="https://reactrouter.com/v6/routers/create-browser-router#optspatchroutesonnavigation">Docs</a>)</li> <li><code>unstable_flushSync</code> → <code>flushSync</code> (<code>useSubmit</code>, <code>fetcher.load</code>, <code>fetcher.submit</code>) (<a href="https://reactrouter.com/v6/hooks/use-submit#optionsflushsync">Docs</a>)</li> <li><code>unstable_viewTransition</code> → <code>viewTransition</code> (<code><Link></code>, <code><Form></code>, <code>useNavigate</code>, <code>useSubmit</code>) (<a href="https://reactrouter.com/v6/components/link#viewtransition">Docs</a>)</li> </ul> <h3>Minor Changes</h3> <ul> <li>Stabilize the <code>unstable_flushSync</code> option for navigations and fetchers (<a href="https://redirect.github.com/remix-run/react-router/pull/11989">#11989</a>)</li> <li>Stabilize the <code>unstable_viewTransition</code> option for navigations and the corresponding <code>unstable_useViewTransitionState</code> hook (<a href="https://redirect.github.com/remix-run/react-router/pull/11989">#11989</a>)</li> <li>Stabilize <code>unstable_dataStrategy</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/11974">#11974</a>)</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/fa65d7119801ced34fdb5d66b3d5cba226372c6e"><code>fa65d71</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12602">#12602</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/476a38bf1eb66ae91b08160c711f064692d1b3d7"><code>476a38b</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12579">#12579</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/315c80849335b31b673f7fa2fc0f8ce8e8452bde"><code>315c808</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12243">#12243</a>) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12254">#12254</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/93351795b386b781bc3c45d6ad1bffdcd3d8c3a3"><code>9335179</code></a> Fixup changelogs</li> <li><a href="https://github.com/remix-run/react-router/commit/8d05d653649c1b08bcac586aacc5fd205d1ab7a2"><code>8d05d65</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12201">#12201</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/caa08957de6bf3b92388a7822510686a2a6c19da"><code>caa0895</code></a> Add deprecation warnings for v7 flags in v6 (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11750">#11750</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/50c59ea86f7c3866c0a50e6ea655aa3d7489b46f"><code>50c59ea</code></a> Update jsdoc links to add new v6 segment (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12141">#12141</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/8cfb4a7ecfaade2ea115e741fc1df6e1d8aaeae4"><code>8cfb4a7</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12121">#12121</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/cde813905a2b634dbc3d9c1c60d7560778e20bae"><code>cde8139</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12112">#12112</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/9a62e35aa7168efa9aae44cc6f230bf69030acd6"><code>9a62e35</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/12101">#12101</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]
