160.json (11918B)
1 { 2 "number": 160, 3 "title": "Bump react-router-dom from 6.16.0 to 6.18.0", 4 "state": "closed", 5 "diff_file": "160.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2023-11-01T09:24:41Z", 8 "closed_at": "2023-11-17T10:08:04Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/react-router-dom-6.18.0", 12 "labels": [ 13 "dependencies", 14 "javascript" 15 ], 16 "assignees": [], 17 "requested_reviewers": [], 18 "body": "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.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/remix-run/react-router/releases\">react-router-dom's releases</a>.</em></p>\n<blockquote>\n<h2>react-router-dom-v5-compat@6.4.0-pre.15</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li>react-router@6.4.0-pre.15</li>\n<li>react-router-dom@6.4.0-pre.15</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.11</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li>react-router@6.4.0-pre.11</li>\n<li>react-router-dom@6.4.0-pre.11</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.10</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li>react-router@6.4.0-pre.10</li>\n<li>react-router-dom@6.4.0-pre.10</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.9</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li>react-router@6.4.0-pre.9</li>\n<li>react-router-dom@6.4.0-pre.9</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.8</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li>react-router@6.4.0-pre.8</li>\n<li>react-router-dom@6.4.0-pre.8</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.7</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>Updated dependencies\n<ul>\n<li><code>react-router@6.4.0-pre.7</code></li>\n<li><code>react-router-dom@6.4.0-pre.7</code></li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.6</h2>\n<h3>Patch Changes</h3>\n<ul>\n<li>44bce3c6: Fix <code>react-router-dom</code> peer dependency version\n<ul>\n<li>react-router@6.4.0-pre.6</li>\n<li>react-router-dom@6.4.0-pre.6</li>\n</ul>\n</li>\n</ul>\n<h2>react-router-dom-v5-compat@6.4.0-pre.5</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Changelog</summary>\n<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>\n<blockquote>\n<h2>6.18.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<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>\n<ul>\n<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>\n</ul>\n</li>\n<li>\n<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>\n<ul>\n<li>Invoking a fetcher in this way is ephemeral and stateless</li>\n<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>\n</ul>\n</li>\n</ul>\n<h3>Patch Changes</h3>\n<ul>\n<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>\n<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>\n<li>Updated dependencies:\n<ul>\n<li><code>@remix-run/router@1.11.0</code></li>\n<li><code>react-router@6.18.0</code></li>\n</ul>\n</li>\n</ul>\n<h2>6.17.0</h2>\n<h3>Minor Changes</h3>\n<ul>\n<li>\n<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>\n<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>\n<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>\n<pre lang=\"jsx\"><code>function ImageLink(to, src, alt) {\n let isTransitioning = unstable_useViewTransitionState(to);\n return (\n <Link to={to} unstable_viewTransition>\n <img\n src={src}\n alt={alt}\n style={{\n viewTransitionName: isTransitioning ? "image-expand" : "",\n }}\n />\n </Link>\n );\n}\n</code></pre>\n<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>\n</li>\n</ul>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<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>\n<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>\n<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>\n<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>\n<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>\n<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>\n<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>\n<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>\n<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>\n<li><a href=\"https://github.com/remix-run/react-router/commit/a71b4e296776ef3b4fcada1f2a0b9fb52f03cfed\"><code>a71b4e2</code></a> Merge branch 'release-next' into dev</li>\n<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>\n</ul>\n</details>\n<br />\n\n\n[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot 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`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency\n- `@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)\n- `@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)\n- `@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)\n- `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency\n- `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions\n\n\n</details>", 19 "comments": [ 20 { 21 "author": "dependabot[bot]", 22 "created_at": "2023-11-17T10:08:03Z", 23 "body": "Superseded by #175." 24 } 25 ], 26 "review_comments": [] 27 }