204.md (10418B)
1 # PR #204 Bump react-router-dom from 6.16.0 to 6.21.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-12-14T09:14:05Z 6 - **Branch:** dependabot/npm_and_yarn/react-router-dom-6.21.0 → main 7 - **Closed:** 2023-12-22T09:56:17Z 8 - **Labels:** dependencies, javascript 9 - **Diff:** [204.diff](./204.diff) 10 11 --- 12 13 Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.16.0 to 6.21.0. 14 <details> 15 <summary>Release notes</summary> 16 <p><em>Sourced from <a href="https://github.com/remix-run/react-router/releases">react-router-dom's releases</a>.</em></p> 17 <blockquote> 18 <h2>react-router-dom-v5-compat@6.4.0-pre.15</h2> 19 <h3>Patch Changes</h3> 20 <ul> 21 <li>Updated dependencies 22 <ul> 23 <li>react-router@6.4.0-pre.15</li> 24 <li>react-router-dom@6.4.0-pre.15</li> 25 </ul> 26 </li> 27 </ul> 28 <h2>react-router-dom-v5-compat@6.4.0-pre.11</h2> 29 <h3>Patch Changes</h3> 30 <ul> 31 <li>Updated dependencies 32 <ul> 33 <li>react-router@6.4.0-pre.11</li> 34 <li>react-router-dom@6.4.0-pre.11</li> 35 </ul> 36 </li> 37 </ul> 38 <h2>react-router-dom-v5-compat@6.4.0-pre.10</h2> 39 <h3>Patch Changes</h3> 40 <ul> 41 <li>Updated dependencies 42 <ul> 43 <li>react-router@6.4.0-pre.10</li> 44 <li>react-router-dom@6.4.0-pre.10</li> 45 </ul> 46 </li> 47 </ul> 48 <h2>react-router-dom-v5-compat@6.4.0-pre.9</h2> 49 <h3>Patch Changes</h3> 50 <ul> 51 <li>Updated dependencies 52 <ul> 53 <li>react-router@6.4.0-pre.9</li> 54 <li>react-router-dom@6.4.0-pre.9</li> 55 </ul> 56 </li> 57 </ul> 58 <h2>react-router-dom-v5-compat@6.4.0-pre.8</h2> 59 <h3>Patch Changes</h3> 60 <ul> 61 <li>Updated dependencies 62 <ul> 63 <li>react-router@6.4.0-pre.8</li> 64 <li>react-router-dom@6.4.0-pre.8</li> 65 </ul> 66 </li> 67 </ul> 68 <h2>react-router-dom-v5-compat@6.4.0-pre.7</h2> 69 <h3>Patch Changes</h3> 70 <ul> 71 <li>Updated dependencies 72 <ul> 73 <li><code>react-router@6.4.0-pre.7</code></li> 74 <li><code>react-router-dom@6.4.0-pre.7</code></li> 75 </ul> 76 </li> 77 </ul> 78 <h2>react-router-dom-v5-compat@6.4.0-pre.6</h2> 79 <h3>Patch Changes</h3> 80 <ul> 81 <li>44bce3c6: Fix <code>react-router-dom</code> peer dependency version 82 <ul> 83 <li>react-router@6.4.0-pre.6</li> 84 <li>react-router-dom@6.4.0-pre.6</li> 85 </ul> 86 </li> 87 </ul> 88 <h2>react-router-dom-v5-compat@6.4.0-pre.5</h2> 89 <!-- raw HTML omitted --> 90 </blockquote> 91 <p>... (truncated)</p> 92 </details> 93 <details> 94 <summary>Changelog</summary> 95 <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> 96 <blockquote> 97 <h2>6.21.0</h2> 98 <h3>Minor Changes</h3> 99 <ul> 100 <li> 101 <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> 102 <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> 103 <p><strong>The Bug</strong> 104 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> 105 <p><strong>The Background</strong> 106 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> 107 <pre lang="jsx"><code><BrowserRouter> 108 <Routes> 109 <Route path="/" element={<Home />} /> 110 <Route path="dashboard/*" element={<Dashboard />} /> 111 </Routes> 112 </BrowserRouter> 113 </code></pre> 114 <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> 115 <pre lang="jsx"><code>function Dashboard() { 116 return ( 117 <div> 118 <h2>Dashboard</h2> 119 <nav> 120 <Link to="/">Dashboard Home</Link> 121 <Link to="team">Team</Link> 122 <Link to="projects">Projects</Link> 123 </nav> 124 <pre><code> &lt;Routes&gt; 125 &lt;Route path=&quot;/&quot; element={&lt;DashboardHome /&gt;} /&gt; 126 &lt;Route path=&quot;team&quot; element={&lt;DashboardTeam /&gt;} /&gt; 127 &lt;Route path=&quot;projects&quot; element={&lt;DashboardProjects /&gt;} /&gt; 128 &lt;/Routes&gt; 129 &lt;/div&gt; 130 </code></pre> 131 <p>); 132 } 133 </code></pre></p> 134 <p>Now, all links and route paths are relative to the router above them. This makes code splitting and compartmentalizing your app really easy. You could render the <code>Dashboard</code> as its own independent app, or embed it into your large app without making any changes to it.</p> 135 <p><strong>The Problem</strong></p> 136 </li> 137 </ul> 138 <!-- raw HTML omitted --> 139 </blockquote> 140 <p>... (truncated)</p> 141 </details> 142 <details> 143 <summary>Commits</summary> 144 <ul> 145 <li><a href="https://github.com/remix-run/react-router/commit/69ba50e06633fd4add234fb47f2d49b0a5ee41f9"><code>69ba50e</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11114">#11114</a>)</li> 146 <li><a href="https://github.com/remix-run/react-router/commit/ea0ffeef8a0c353f8ef402b5df2ac7c60a4d0b49"><code>ea0ffee</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11095">#11095</a>)</li> 147 <li><a href="https://github.com/remix-run/react-router/commit/fe3c071037b18f447dabb44fb24e4b1bce2a2a15"><code>fe3c071</code></a> Slight refactor to partial hydration to leverage state.initialized properly (...</li> 148 <li><a href="https://github.com/remix-run/react-router/commit/373b30cdfb4a770e77f6ded25e94ba72fbde4e23"><code>373b30c</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11091">#11091</a>)</li> 149 <li><a href="https://github.com/remix-run/react-router/commit/f9d7ed62904766013d05a1642232d73e47f3bc27"><code>f9d7ed6</code></a> Fix server future plumbing</li> 150 <li><a href="https://github.com/remix-run/react-router/commit/56b2944ef18307fa6d5e432b52eead38eeda3402"><code>56b2944</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11090">#11090</a>)</li> 151 <li><a href="https://github.com/remix-run/react-router/commit/558d7936cc8fe643374a2c9a9fdcf022e8c4c939"><code>558d793</code></a> Fix plumbing of future prop</li> 152 <li><a href="https://github.com/remix-run/react-router/commit/ee5fcd54af4784d58191d97a7117fa4d75378946"><code>ee5fcd5</code></a> Generate release notes</li> 153 <li><a href="https://github.com/remix-run/react-router/commit/ddc2b94c26ac4a12b5a8e37dc4179e1b10644e1b"><code>ddc2b94</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11089">#11089</a>)</li> 154 <li><a href="https://github.com/remix-run/react-router/commit/149ad65a8dfb90b18835ec784792b6a86e4427a9"><code>149ad65</code></a> Add future.v7_relativeSplatPath flag (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/11087">#11087</a>)</li> 155 <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/react-router-dom@6.21.0/packages/react-router-dom">compare view</a></li> 156 </ul> 157 </details> 158 <br /> 159 160 161 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 162 163 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`. 164 165 [//]: # (dependabot-automerge-start) 166 [//]: # (dependabot-automerge-end) 167 168 --- 169 170 <details> 171 <summary>Dependabot commands and options</summary> 172 <br /> 173 174 You can trigger Dependabot actions by commenting on this PR: 175 - `@dependabot rebase` will rebase this PR 176 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 177 - `@dependabot merge` will merge this PR after your CI passes on it 178 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 179 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 180 - `@dependabot reopen` will reopen this PR if it is closed 181 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 182 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency 183 - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) 184 - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) 185 - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) 186 - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency 187 - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions 188 189 190 </details> 191 192 193 ## Comments 194 195 ### @dependabot[bot] — 2023-12-22T09:56:16Z 196 197 Superseded by #210. 198