151.md (10609B)
1 # PR #151 Bump react-router-dom from 6.16.0 to 6.17.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-10-20T09:20:07Z 6 - **Branch:** dependabot/npm_and_yarn/react-router-dom-6.17.0 → main 7 - **Closed:** 2023-11-01T09:24:44Z 8 - **Labels:** dependencies, javascript 9 - **Diff:** [151.diff](./151.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.17.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.17.0</h2> 98 <h3>Minor Changes</h3> 99 <ul> 100 <li> 101 <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> 102 <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> 103 <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> 104 <pre lang="jsx"><code>function ImageLink(to, src, alt) { 105 let isTransitioning = unstable_useViewTransitionState(to); 106 return ( 107 <Link to={to} unstable_viewTransition> 108 <img 109 src={src} 110 alt={alt} 111 style={{ 112 viewTransitionName: isTransitioning ? "image-expand" : "", 113 }} 114 /> 115 </Link> 116 ); 117 } 118 </code></pre> 119 <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> 120 <pre lang="css"><code>a.transitioning img { 121 view-transition-name: "image-expand"; 122 } 123 </code></pre> 124 <pre lang="jsx"><code><NavLink to={to} unstable_viewTransition> 125 <img src={src} alt={alt} /> 126 </NavLink> 127 </code></pre> 128 <p>For an example usage of View Transitions with React Router, check out <a href="https://github.com/brophdawg11/react-router-records">our fork</a> of the <a href="https://github.com/Charca/astro-records">Astro Records</a> demo.</p> 129 <p>For more information on using the View Transitions API, please refer to the <a href="https://developer.chrome.com/docs/web-platform/view-transitions/">Smooth and simple transitions with the View Transitions API</a> guide from the Google Chrome team.</p> 130 <p>Please note, that because the <code>ViewTransition</code> API is a DOM API, we now export a specific <code>RouterProvider</code> from <code>react-router-dom</code> with this functionality. If you are importing <code>RouterProvider</code> from <code>react-router</code>, then it will not support view transitions. (<a href="https://redirect.github.com/remix-run/react-router/pull/10928">#10928</a></p> 131 </li> 132 </ul> 133 <h3>Patch Changes</h3> 134 <ul> 135 <li>Log a warning and fail gracefully in <code>ScrollRestoration</code> when <code>sessionStorage</code> is unavailable (<a href="https://redirect.github.com/remix-run/react-router/pull/10848">#10848</a>)</li> 136 </ul> 137 <!-- raw HTML omitted --> 138 </blockquote> 139 <p>... (truncated)</p> 140 </details> 141 <details> 142 <summary>Commits</summary> 143 <ul> 144 <li><a href="https://github.com/remix-run/react-router/commit/edd9ad4957321cfb260cee21ad98aab2becfe250"><code>edd9ad4</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10935">#10935</a>)</li> 145 <li><a href="https://github.com/remix-run/react-router/commit/6cfbd0e571018bf1d8722c09d70e394d2602f5be"><code>6cfbd0e</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10934">#10934</a>)</li> 146 <li><a href="https://github.com/remix-run/react-router/commit/c48341d6b75f4fd5b0ec60ed32c3c45ebb1e532f"><code>c48341d</code></a> Lift startViewTransition implementation to react-router-dom (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10928">#10928</a>)</li> 147 <li><a href="https://github.com/remix-run/react-router/commit/b916689b4a211827cc324cf05994c334e25d380b"><code>b916689</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10931">#10931</a>)</li> 148 <li><a href="https://github.com/remix-run/react-router/commit/b09c5d09198b1ee4a8bfbf8a2a8910fc8eed7d2c"><code>b09c5d0</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10924">#10924</a>)</li> 149 <li><a href="https://github.com/remix-run/react-router/commit/feebfc0bf10614ba44ff43e2b9c69e22ad07a7a1"><code>feebfc0</code></a> Add startViewTransition support (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10916">#10916</a>)</li> 150 <li><a href="https://github.com/remix-run/react-router/commit/da57748644da6400e2d051b2aa004df47beda1cf"><code>da57748</code></a> fix(docs): add backticks to element names (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10874">#10874</a>)</li> 151 <li><a href="https://github.com/remix-run/react-router/commit/f8194fdb8e371b715d29d30a82e04a82a7648e9b"><code>f8194fd</code></a> Handle case when session storage is blocked (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom/issues/10848">#10848</a>)</li> 152 <li>See full diff in <a href="https://github.com/remix-run/react-router/commits/react-router-dom@6.17.0/packages/react-router-dom">compare view</a></li> 153 </ul> 154 </details> 155 <br /> 156 157 158 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 159 160 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`. 161 162 [//]: # (dependabot-automerge-start) 163 [//]: # (dependabot-automerge-end) 164 165 --- 166 167 <details> 168 <summary>Dependabot commands and options</summary> 169 <br /> 170 171 You can trigger Dependabot actions by commenting on this PR: 172 - `@dependabot rebase` will rebase this PR 173 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 174 - `@dependabot merge` will merge this PR after your CI passes on it 175 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 176 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 177 - `@dependabot reopen` will reopen this PR if it is closed 178 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 179 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency 180 - `@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) 181 - `@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) 182 - `@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) 183 - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency 184 - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions 185 186 187 </details> 188 189 190 ## Comments 191 192 ### @dependabot[bot] — 2023-11-01T09:24:44Z 193 194 Superseded by #160. 195