Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump react-router-dom from 6.15.0 to 6.18.0 (#863)
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.15.0 to 6.18.0. <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>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies <ul> <li><code>[email protected]</code></li> <li><code>[email protected]</code></li> </ul> </li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>44bce3c6: Fix <code>react-router-dom</code> peer dependency version <ul> <li>[email protected]</li> <li>[email protected]</li> </ul> </li> </ul> <h2>[email protected]</h2> <!-- 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.18.0</h2> <h3>Minor Changes</h3> <ul> <li> <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> <ul> <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> </ul> </li> <li> <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> <ul> <li>Invoking a fetcher in this way is ephemeral and stateless</li> <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> </ul> </li> </ul> <h3>Patch Changes</h3> <ul> <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> <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> <li>Updated dependencies: <ul> <li><code>@remix-run/[email protected]</code></li> <li><code>[email protected]</code></li> </ul> </li> </ul> <h2>6.17.0</h2> <h3>Minor Changes</h3> <ul> <li> <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> <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> <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> <pre lang="jsx"><code>function ImageLink(to, src, alt) { let isTransitioning = unstable_useViewTransitionState(to); return ( <Link to={to} unstable_viewTransition> <img src={src} alt={alt} style={{ viewTransitionName: isTransitioning ? "image-expand" : "", }} /> </Link> ); } </code></pre> <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> </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/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> <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> <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> <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> <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> <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> <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> <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> <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> <li><a href="https://github.com/remix-run/react-router/commit/a71b4e296776ef3b4fcada1f2a0b9fb52f03cfed"><code>a71b4e2</code></a> Merge branch 'release-next' into dev</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 /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-router-dom&package-manager=npm_and_yarn&previous-version=6.15.0&new-version=6.18.0)](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> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caleb Kniffen <[email protected]>
- Loading branch information