160.md (11451B)
1 # PR #160 Bump react-router-dom from 6.16.0 to 6.18.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-11-01T09:24:41Z 6 - **Branch:** dependabot/npm_and_yarn/react-router-dom-6.18.0 → main 7 - **Closed:** 2023-11-17T10:08:04Z 8 - **Labels:** dependencies, javascript 9 - **Diff:** [160.diff](./160.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.18.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.18.0</h2> 98 <h3>Minor Changes</h3> 99 <ul> 100 <li> 101 <p>Add support for manual fetcher key specification via <code>useFetcher({ key: string })</code> so you can access the same fetcher instance from different components in your application without prop-drilling (<a href="https://github.com/remix-run/remix/discussions/7698">RFC</a>) (<a href="https://redirect.github.com/remix-run/react-router/pull/10960">#10960</a>)</p> 102 <ul> 103 <li>Fetcher keys are now also exposed on the fetchers returned from <code>useFetchers</code> so that they can be looked up by <code>key</code></li> 104 </ul> 105 </li> 106 <li> 107 <p>Add <code>navigate</code>/<code>fetcherKey</code> params/props to <code>useSumbit</code>/<code>Form</code> to support kicking off a fetcher submission under the hood with an optionally user-specified <code>key</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10960">#10960</a>)</p> 108 <ul> 109 <li>Invoking a fetcher in this way is ephemeral and stateless</li> 110 <li>If you need to access the state of one of these fetchers, you will need to leverage <code>useFetcher({ key })</code> to look it up elsewhere</li> 111 </ul> 112 </li> 113 </ul> 114 <h3>Patch Changes</h3> 115 <ul> 116 <li>Adds a fetcher context to <code>RouterProvider</code> that holds completed fetcher data, in preparation for the upcoming future flag that will change the fetcher persistence/cleanup behavior (<a href="https://redirect.github.com/remix-run/react-router/pull/10961">#10961</a>)</li> 117 <li>Fix the <code>future</code> prop on <code>BrowserRouter</code>, <code>HashRouter</code> and <code>MemoryRouter</code> so that it accepts a <code>Partial<FutureConfig></code> instead of requiring all flags to be included. (<a href="https://redirect.github.com/remix-run/react-router/pull/10962">#10962</a>)</li> 118 <li>Updated dependencies: 119 <ul> 120 <li><code>@remix-run/router@1.11.0</code></li> 121 <li><code>react-router@6.18.0</code></li> 122 </ul> 123 </li> 124 </ul> 125 <h2>6.17.0</h2> 126 <h3>Minor Changes</h3> 127 <ul> 128 <li> 129 <p>Add experimental support for the <a href="https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition">View Transitions API</a> via <code>document.startViewTransition</code> to enable CSS animated transitions on SPA navigations in your application. (<a href="https://redirect.github.com/remix-run/react-router/pull/10916">#10916</a>)</p> 130 <p>The simplest approach to enabling a View Transition in your React Router app is via the new <code><Link unstable_viewTransition></code> prop. This will cause the navigation DOM update to be wrapped in <code>document.startViewTransition</code> which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page.</p> 131 <p>If you need to apply more fine-grained styles for your animations, you can leverage the <code>unstable_useViewTransitionState</code> hook which will tell you when a transition is in progress and you can use that to apply classes or styles:</p> 132 <pre lang="jsx"><code>function ImageLink(to, src, alt) { 133 let isTransitioning = unstable_useViewTransitionState(to); 134 return ( 135 <Link to={to} unstable_viewTransition> 136 <img 137 src={src} 138 alt={alt} 139 style={{ 140 viewTransitionName: isTransitioning ? "image-expand" : "", 141 }} 142 /> 143 </Link> 144 ); 145 } 146 </code></pre> 147 <p>You can also use the <code><NavLink unstable_viewTransition></code> shorthand which will manage the hook usage for you and automatically add a <code>transitioning</code> class to the <code><a></code> during the transition:</p> 148 </li> 149 </ul> 150 <!-- raw HTML omitted --> 151 </blockquote> 152 <p>... (truncated)</p> 153 </details> 154 <details> 155 <summary>Commits</summary> 156 <ul> 157 <li><a href="https://github.com/remix-run/react-router/commit/667f9360759925adfc0e052b1c56e43447521f54"><code>667f936</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10981">#10981</a>)</li> 158 <li><a href="https://github.com/remix-run/react-router/commit/67af262448f66e08d794e2418699f7c1a7392a52"><code>67af262</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10978">#10978</a>)</li> 159 <li><a href="https://github.com/remix-run/react-router/commit/150028859ef8c3e116dc840c8bde043cc3060051"><code>1500288</code></a> Updates for v7_fetcherPersist post-processing logic (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10977">#10977</a>)</li> 160 <li><a href="https://github.com/remix-run/react-router/commit/cacc90b83cb2aa0f4b60f6ec5454f237633d9478"><code>cacc90b</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10966">#10966</a>)</li> 161 <li><a href="https://github.com/remix-run/react-router/commit/19af0cf7652f309a6a68c3c698f8eb36e733ce72"><code>19af0cf</code></a> Add future.v7_fetcherPersist flag (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10962">#10962</a>)</li> 162 <li><a href="https://github.com/remix-run/react-router/commit/cb2d911d20b6d3268cde61e5828097ce5166f05c"><code>cb2d911</code></a> Add fetcher data layer (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10961">#10961</a>)</li> 163 <li><a href="https://github.com/remix-run/react-router/commit/c0dbcd256df3d58cb07713e947ab8014886e76c7"><code>c0dbcd2</code></a> Add useFetcher(key) and <Form navigate={false}> (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10960">#10960</a>)</li> 164 <li><a href="https://github.com/remix-run/react-router/commit/805924dd2fd9003a3e9cb5e3534778e61ede6bbf"><code>805924d</code></a> Revert "Ensure Form contains splat portion of pathname when no action is spec...</li> 165 <li><a href="https://github.com/remix-run/react-router/commit/908a40a25382612b869638664e19a4aa7a977e53"><code>908a40a</code></a> Ensure Form contains splat portion of pathname when no action is specified (#...</li> 166 <li><a href="https://github.com/remix-run/react-router/commit/a71b4e296776ef3b4fcada1f2a0b9fb52f03cfed"><code>a71b4e2</code></a> Merge branch 'release-next' into dev</li> 167 <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/react-router-dom@6.18.0/packages/react-router-dom">compare view</a></li> 168 </ul> 169 </details> 170 <br /> 171 172 173 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 174 175 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`. 176 177 [//]: # (dependabot-automerge-start) 178 [//]: # (dependabot-automerge-end) 179 180 --- 181 182 <details> 183 <summary>Dependabot commands and options</summary> 184 <br /> 185 186 You can trigger Dependabot actions by commenting on this PR: 187 - `@dependabot rebase` will rebase this PR 188 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 189 - `@dependabot merge` will merge this PR after your CI passes on it 190 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 191 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 192 - `@dependabot reopen` will reopen this PR if it is closed 193 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 194 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency 195 - `@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) 196 - `@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) 197 - `@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) 198 - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency 199 - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions 200 201 202 </details> 203 204 205 ## Comments 206 207 ### @dependabot[bot] — 2023-11-17T10:08:03Z 208 209 Superseded by #175. 210