-
Notifications
You must be signed in to change notification settings - Fork 198
chore(deps): Bump react-router from 5.3.4 to 7.5.2 (#1577) #1578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 5.3.4 to 7.5.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/releases">react-router's releases</a>.</em></p> <blockquote> <h2>v7.5.2</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v752">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v752</a></p> <h2>v7.5.1</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v751">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v751</a></p> <h2>v7.5.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v750">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v750</a></p> <h2>v7.4.1</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v741">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v741</a></p> <h2>v7.4.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v740">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v740</a></p> <h2>v7.3.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v730">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v730</a></p> <h2>v6.30.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6300">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6300</a></p> <h2>v7.2.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v720">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v720</a></p> <h2>v.7.1.5</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v715">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v715</a></p> <h2>v7.1.4</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v714">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v714</a></p> <h2>v6.29.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6290">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6290</a></p> <h2>v7.1.3</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v713">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v713</a></p> <h2>v7.1.2</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v712">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v712</a></p> <h2>v6.28.2</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6282">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6282</a></p> <h2>v7.1.1</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v711">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v711</a></p> <h2>v7.1.0</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v710">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v710</a></p> <h2>v6.28.1</h2> <p>See the changelog for release notes: <a href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6281">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6281</a></p> <!-- 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/CHANGELOG.md">react-router's changelog</a>.</em></p> <blockquote> <h2>7.5.2</h2> <h3>Patch Changes</h3> <ul> <li> <p>Update Single Fetch to also handle the 204 redirects used in <code>?_data</code> requests in Remix v2 (<a href="https://redirect.github.com/remix-run/react-router/pull/13364">#13364</a>)</p> <ul> <li>This allows applications to return a redirect on <code>.data</code> requests from outside the scope of React Router (i.e., an <code>express</code>/<code>hono</code> middleware)</li> <li>⚠️ Please note that doing so relies on implementation details that are subject to change without a SemVer major release</li> <li>This is primarily done to ease upgrading to Single Fetch for existing Remix v2 applications, but the recommended way to handle this is redirecting from a route middleware</li> </ul> </li> <li> <p>Adjust approach for Prerendering/SPA Mode via headers (<a href="https://redirect.github.com/remix-run/react-router/pull/13453">#13453</a>)</p> </li> </ul> <h2>7.5.1</h2> <h3>Patch Changes</h3> <ul> <li> <p>Fix single fetch bug where no revalidation request would be made when navigating upwards to a reused parent route (<a href="https://redirect.github.com/remix-run/react-router/pull/13253">#13253</a>)</p> </li> <li> <p>When using the object-based <code>route.lazy</code> API, the <code>HydrateFallback</code> and <code>hydrateFallbackElement</code> properties are now skipped when lazy loading routes after hydration. (<a href="https://redirect.github.com/remix-run/react-router/pull/13376">#13376</a>)</p> <p>If you move the code for these properties into a separate file, you can use this optimization to avoid downloading unused hydration code. For example:</p> <pre lang="ts"><code>createBrowserRouter([ { path: "/show/:showId", lazy: { loader: async () => (await import("./show.loader.js")).loader, Component: async () => (await import("./show.component.js")).Component, HydrateFallback: async () => (await import("./show.hydrate-fallback.js")).HydrateFallback, }, }, ]); </code></pre> </li> <li> <p>Properly revalidate prerendered paths when param values change (<a href="https://redirect.github.com/remix-run/react-router/pull/13380">#13380</a>)</p> </li> <li> <p>UNSTABLE: Add a new <code>unstable_runClientMiddleware</code> argument to <code>dataStrategy</code> to enable middleware execution in custom <code>dataStrategy</code> implementations (<a href="https://redirect.github.com/remix-run/react-router/pull/13395">#13395</a>)</p> </li> <li> <p>UNSTABLE: Add better error messaging when <code>getLoadContext</code> is not updated to return a <code>Map</code>" (<a href="https://redirect.github.com/remix-run/react-router/pull/13242">#13242</a>)</p> </li> <li> <p>Do not automatically add <code>null</code> to <code>staticHandler.query()</code> <code>context.loaderData</code> if routes do not have loaders (<a href="https://redirect.github.com/remix-run/react-router/pull/13223">#13223</a>)</p> <ul> <li>This was a Remix v2 implementation detail inadvertently left in for React Router v7</li> <li>Now that we allow returning <code>undefined</code> from loaders, our prior check of <code>loaderData[routeId] !== undefined</code> was no longer sufficient and was changed to a <code>routeId in loaderData</code> check - these <code>null</code> values can cause issues for this new check</li> <li>⚠️ This could be a "breaking bug fix" for you if you are doing manual SSR with <code>createStaticHandler()</code>/<code><StaticRouterProvider></code>, and using <code>context.loaderData</code> to control <code><RouterProvider></code> hydration behavior on the client</li> </ul> </li> <li> <p>Fix prerendering when a loader returns a redirect (<a href="https://redirect.github.com/remix-run/react-router/pull/13365">#13365</a>)</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/5819e0c45df69a0b4ac582497e5adb1c089385b5"><code>5819e0c</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13456">#13456</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/d0cac3395f004424e6afd17248d6ff166ecb6fa6"><code>d0cac33</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13454">#13454</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/c84302972a152d851cf5dd859ff332b354b70111"><code>c843029</code></a> Adjust approach for prerendering/SPA mode via headers (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13453">#13453</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/8e4963faece8dda24bf40dd04dd547c9959509d0"><code>8e4963f</code></a> Restore handling of 204 "soft" redirects on data requests (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13364">#13364</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/ed77157ed5a9faeb53787c3fbb092557e28e1872"><code>ed77157</code></a> update session documentation links (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13448">#13448</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/4281172339337fa449a98e93b2abeae18f055283"><code>4281172</code></a> Missed refactor updates</li> <li><a href="https://github.com/remix-run/react-router/commit/b166e483b2134ef67d6630521eb3fdb40d64e448"><code>b166e48</code></a> Minor refactors to support RSC (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13423">#13423</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/5dd7c1580f2d782bded3f906a66d57005b083db9"><code>5dd7c15</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13422">#13422</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/6ce4a79774f6f9734b7457463768bc2860398263"><code>6ce4a79</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13412">#13412</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/cd5681bd2fd66b8b9958deb1c1fb6bdb9af08366"><code>cd5681b</code></a> Slight refactor of fetchAndDecode for RSC (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13409">#13409</a>)</li> <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router">compare view</a></li> </ul> </details> <br /> [](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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/looker-open-source/sdk-codegen/network/alerts). </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @drstrangelooker, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
This pull request updates the react-router
dependency from version 5.3.4 to 7.5.2 in both the api-explorer
and embed-playground
packages. This involves changes to the package.json
files for these packages and updates the yarn.lock
file to reflect the new dependency version and its transitive dependencies.
Highlights
- Dependency Update: The primary change is bumping the
react-router
dependency from version 5.3.4 to 7.5.2. - Package.json Modification: The
package.json
files inapi-explorer
andembed-playground
are updated to reflect the newreact-router
version. - Yarn.lock Update: The
yarn.lock
file is updated to include the new version ofreact-router
and its dependencies, includingcookie
,parse-path
,react-is
,set-cookie-parser
, andturbo-stream
.
Changelog
- packages/api-explorer/package.json
- Updated
react-router
dependency from version 5.3.4 to 7.5.2.
- Updated
- packages/embed-playground/package.json
- Updated
react-router
dependency from version 5.3.4 to 7.5.2.
- Updated
- yarn.lock
- Updated
react-router
to version 7.5.2 and added/updated its dependencies:cookie
,parse-path
,react-is
,set-cookie-parser
, andturbo-stream
.
- Updated
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
A router's path, now redefined,
From five to seven, better aligned.
New features gleam,
A smoother stream,
For web apps, elegantly designed.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request bumps the react-router
dependency from version 5.3.4 to 7.5.2 in two packages: @looker/api-explorer
and @looker/embed-playground
. It also updates the yarn.lock
file to reflect these dependency changes. Overall, this looks like a straightforward dependency update.
Merge Readiness
This pull request updates a dependency, and there are no comments that would block merging. I am unable to directly approve the pull request, and users should have others review and approve this code before merging.
APIX Tests0 tests 0 ✅ 0s ⏱️ Results for commit 2d8ffb3. |
Typescript Tests0 tests 0 ✅ 0s ⏱️ Results for commit 2d8ffb3. |
Codegen Tests0 tests 0 ✅ 0s ⏱️ Results for commit 2d8ffb3. |
Bumps
react-router from 5.3.4 to 7.5.2.
Release notes
Sourced from react-router's releases.
... (truncated)
Changelog
Sourced from react-router's changelog.
... (truncated)
Commits
5819e0c
chore: Update version for release (#13456)d0cac33
chore: Update version for release (pre) (#13454)c843029
Adjust approach for prerendering/SPA mode via headers (#13453)8e4963f
Restore handling of 204 "soft" redirects on data requests (#13364)ed77157
update session documentation links (#13448)4281172
Missed refactor updatesb166e48
Minor refactors to support RSC (#13423)5dd7c15
chore: Update version for release (#13422)6ce4a79
chore: Update version for release (pre) (#13412)cd5681b
Slight refactor of fetchAndDecode for RSC (#13409)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 commands and options
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)You can disable automated security fix PRs for this repo from the Security Alerts
page.