Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 22, 2023

This PR contains the following updates:

Package Change Age Confidence
react-router (source) 6.19.06.30.3 age confidence
react-router-dom (source) 6.19.06.30.3 age confidence

Release Notes

remix-run/react-router (react-router)

v6.30.3: v6.30.3

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/v6/CHANGELOG.md#v6303

v6.30.2: v6.30.2

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/v6/CHANGELOG.md#v6302

v6.30.1: v6.30.1

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6301

v6.30.0: v6.30.0

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6300

v6.29.0: v6.29.0

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6290

v6.28.2: v6.28.2

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6282

v6.28.1: v6.28.1

Compare Source

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6281

v6.28.0

Compare Source

Minor Changes
    • Log deprecation warnings for v7 flags (#​11750)
    • Add deprecation warnings to json/defer in favor of returning raw objects
      • These methods will be removed in React Router v7
Patch Changes
  • Update JSDoc URLs for new website structure (add /v6/ segment) (#​12141)
  • Updated dependencies:
    • @remix-run/router@1.21.0

v6.27.0

Compare Source

Minor Changes
  • Stabilize unstable_patchRoutesOnNavigation (#​11973)
    • Add new PatchRoutesOnNavigationFunctionArgs type for convenience (#​11967)
  • Stabilize unstable_dataStrategy (#​11974)
  • Stabilize the unstable_flushSync option for navigations and fetchers (#​11989)
  • Stabilize the unstable_viewTransition option for navigations and the corresponding unstable_useViewTransitionState hook (#​11989)
Patch Changes
  • Fix bug when submitting to the current contextual route (parent route with an index child) when an ?index param already exists from a prior submission (#​12003)

  • Fix useFormAction bug - when removing ?index param it would not keep other non-Remix index params (#​12003)

  • Fix types for RouteObject within PatchRoutesOnNavigationFunction's patch method so it doesn't expect agnostic route objects passed to patch (#​11967)

  • Updated dependencies:

    • @remix-run/router@1.20.0

v6.26.2

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.19.2

v6.26.1

Compare Source

Patch Changes
  • Rename unstable_patchRoutesOnMiss to unstable_patchRoutesOnNavigation to match new behavior (#​11888)
  • Updated dependencies:
    • @remix-run/router@1.19.1

v6.26.0

Compare Source

Minor Changes
  • Add a new replace(url, init?) alternative to redirect(url, init?) that performs a history.replaceState instead of a history.pushState on client-side navigation redirects (#​11811)
Patch Changes
  • Fix initial hydration behavior when using future.v7_partialHydration along with unstable_patchRoutesOnMiss (#​11838)
    • During initial hydration, router.state.matches will now include any partial matches so that we can render ancestor HydrateFallback components
  • Updated dependencies:
    • @remix-run/router@1.19.0

v6.25.1

Compare Source

No significant changes to this package were made in this release. See the repo CHANGELOG.md for an overview of all changes in v6.25.1.

v6.25.0

Compare Source

Minor Changes
  • Stabilize future.unstable_skipActionErrorRevalidation as future.v7_skipActionErrorRevalidation (#​11769)
    • When this flag is enabled, actions will not automatically trigger a revalidation if they return/throw a Response with a 4xx/5xx status code
    • You may still opt-into revalidation via shouldRevalidate
    • This also changes shouldRevalidate's unstable_actionStatus parameter to actionStatus
Patch Changes
  • Fix regression and properly decode paths inside useMatch so matches/params reflect decoded params (#​11789)
  • Updated dependencies:
    • @remix-run/router@1.18.0

v6.24.1

Compare Source

Patch Changes
  • When using future.v7_relativeSplatPath, properly resolve relative paths in splat routes that are children of pathless routes (#​11633)
  • Updated dependencies:
    • @remix-run/router@1.17.1

v6.24.0

Compare Source

Minor Changes
Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.17.0

v6.23.1

Compare Source

Patch Changes
  • allow undefined to be resolved with <Await> (#​11513)
  • Updated dependencies:
    • @remix-run/router@1.16.1

v6.23.0

Compare Source

Minor Changes
  • Add a new unstable_dataStrategy configuration option (#​11098)
    • This option allows Data Router applications to take control over the approach for executing route loaders and actions
    • The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more
Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.16.0

v6.22.3

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.15.3

v6.22.2

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.15.2

v6.22.1

Compare Source

Patch Changes
  • Fix encoding/decoding issues with pre-encoded dynamic parameter values (#​11199)
  • Updated dependencies:
    • @remix-run/router@1.15.1

v6.22.0

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.15.0

v6.21.3

Compare Source

Patch Changes
  • Remove leftover unstable_ prefix from Blocker/BlockerFunction types (#​11187)

v6.21.2

Compare Source

Patch Changes
  • Updated dependencies:
    • @remix-run/router@1.14.2

v6.21.1

Compare Source

Patch Changes
  • Fix bug with route.lazy not working correctly on initial SPA load when v7_partialHydration is specified (#​11121)
  • Updated dependencies:
    • @remix-run/router@1.14.1

v6.21.0

Compare Source

Minor Changes
  • Add a new future.v7_relativeSplatPath flag to implement a breaking bug fix to relative routing when inside a splat route. (#​11087)

    This fix was originally added in #​10983 and was later reverted in #​11078 because it was determined that a large number of existing applications were relying on the buggy behavior (see #​11052)

    The Bug
    The buggy behavior is that without this flag, the default behavior when resolving relative paths is to ignore any splat (*) portion of the current route path.

    The Background
    This decision was originally made thinking that it would make the concept of nested different sections of your apps in <Routes> easier if relative routing would replace the current splat:

    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="dashboard/*" element={<Dashboard />} />
      </Routes>
    </BrowserRouter>

    Any paths like /dashboard, /dashboard/team, /dashboard/projects will match the Dashboard route. The dashboard component itself can then render nested <Routes>:

    function Dashboard() {
      return (
        <div>
          <h2>Dashboard</h2>
          <nav>
            <Link to="/">Dashboard Home</Link>
            <Link to="team">Team</Link>
            <Link to="projects">Projects</Link>
          </nav>
    
          <Routes>
            <Route path="/" element={<DashboardHome />} />
            <Route path="team" element={<DashboardTeam />} />
            <Route path="projects" element={<DashboardProjects />} />
          </Routes>
        </div>
      );
    }

    Now, all links and route paths are relative to the router above them. This makes code splitting and compartmentalizing your app really easy. You could render the Dashboard as its own independent app, or embed it into your large app without making any changes to it.

    The Problem

    The problem is that this concept of ignoring part of a path breaks a lot of other assumptions in React Router - namely that "." always means the current location pathname for that route. When we ignore the splat portion, we start getting invalid paths when using ".":

    // If we are on URL /dashboard/team, and we want to link to /dashboard/team:
    function DashboardTeam() {
      // ❌ This is broken and results in <a href="/dashboard">
      return <Link to=".">A broken link to the Current URL</Link>;
    
      // ✅ This is fixed but super unintuitive since we're already at /dashboard/team!
      return <Link to="./team">A broken link to the Current URL</Link>;
    }

    We've also introduced an issue that we can no longer move our DashboardTeam component around our route hierarchy easily - since it behaves differently if we're underneath a non-splat route, such as /dashboard/:widget. Now, our "." links will, properly point to ourself inclusive of the dynamic param value so behavior will break from it's corresponding usage in a /dashboard/* route.

    Even worse, consider a nested splat route configuration:

    <BrowserRouter>
      <Routes>
        <Route path="dashboard">
          <Route path="*" element={<Dashboard />} />
        </Route>
      </Routes>
    </BrowserRouter>

    Now, a <Link to="."> and a <Link to=".."> inside the Dashboard component go to the same place! That is definitely not correct!

    Another common issue arose in Data Routers (and Remix) where any <Form> should post to it's own route action if you the user doesn't specify a form action:

    let router = createBrowserRouter({
      path: "/dashboard",
      children: [
        {
          path: "*",
          action: dashboardAction,
          Component() {
            // ❌ This form is broken!  It throws a 405 error when it submits because
            // it tries to submit to /dashboard (without the splat value) and the parent
            // `/dashboard` route doesn't have an action
            return <Form method="post">...</Form>;
          },
        },
      ],
    });

    This is just a compounded issue from the above because the default location for a Form to submit to is itself (".") - and if we ignore the splat portion, that now resolves to the parent route.

    The Solution
    If you are leveraging this behavior, it's recommended to enable the future flag, move your splat to it's own route, and leverage ../ for any links to "sibling" pages:

    <BrowserRouter>
      <Routes>
        <Route path="dashboard">
          <Route index path="*" element={<Dashboard />} />
        </Route>
      </Routes>
    </BrowserRouter>
    
    function Dashboard() {
      return (
        <div>
          <h2>Dashboard</h2>
          <nav>
            <Link to="..">Dashboard Home</Link>
            <Link to="../team">Team</Link>
            <Link to="../projects">Projects</Link>
          </nav>
    
          <Routes>
            <Route path="/" element={<DashboardHome />} />
            <Route path="team" element={<DashboardTeam />} />
            <Route path="projects" element={<DashboardProjects />} />
          </Router>
        </div>
      );
    }

    This way, . means "the full current pathname for my route" in all cases (including static, dynamic, and splat routes) and .. always means "my parents pathname".

Patch Changes
  • Properly handle falsy error values in ErrorBoundary's (#​11071)
  • Updated dependencies:
    • @remix-run/router@1.14.0

v6.20.1

Compare Source

Patch Changes
  • Revert the useResolvedPath fix for splat routes due to a large number of applications that were relying on the buggy behavior (see #​11052 (comment)). We plan to re-introduce this fix behind a future flag in the next minor version. (#​11078)
  • Updated dependencies:
    • @remix-run/router@1.13.1

v6.20.0

Compare Source

Minor Changes
  • Export the PathParam type from the public API (#​10719)
Patch Changes
  • Fix bug with resolveTo in splat routes (#​11045)
    • This is a follow up to #​10983 to handle the few other code paths using getPathContributingMatches
    • This removes the UNSAFE_getPathContributingMatches export from @remix-run/router since we no longer need this in the react-router/react-router-dom layers
  • Updated dependencies:
    • @remix-run/router@1.13.0
remix-run/react-router (react-router-dom)

v6.30.3

Compare Source

v6.30.2

Compare Source

v6.30.1

Compare Source

v6.30.0

Compare Source

v6.29.0

Compare Source

v6.28.2

Compare Source

v6.28.1

Compare Source

v6.28.0

Compare Source

v6.27.0

Compare Source

v6.26.2

Compare Source

v6.26.1

Compare Source

v6.26.0

Compare Source

v6.25.1

Compare Source

v6.25.0

Compare Source

v6.24.1

Compare Source

v6.24.0

Compare Source

v6.23.1

Compare Source

v6.23.0

Compare Source

v6.22.3

Compare Source

v6.22.2

Compare Source

v6.22.1

Compare Source

v6.22.0

Compare Source

v6.21.3

Compare Source

v6.21.2

Compare Source

v6.21.1

Compare Source

v6.21.0

Compare Source

v6.20.1

Compare Source

v6.20.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sweep-ai-deprecated
Copy link

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.20.0 fix(deps): update react-router monorepo to v6.20.1 Dec 1, 2023
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from a28d99a to b6fad10 Compare December 1, 2023 22:19
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.20.1 fix(deps): update react-router monorepo to v6.21.0 Dec 13, 2023
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from b6fad10 to 02d95e4 Compare December 13, 2023 22:35
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 02d95e4 to b2f6c8d Compare December 21, 2023 20:02
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.21.0 fix(deps): update react-router monorepo to v6.21.1 Dec 21, 2023
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from b2f6c8d to 7caf07c Compare January 11, 2024 16:39
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.21.1 fix(deps): update react-router monorepo to v6.21.2 Jan 11, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 7caf07c to 2182ac3 Compare January 18, 2024 20:20
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.21.2 fix(deps): update react-router monorepo to v6.21.3 Jan 18, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 2182ac3 to 036c7e4 Compare February 1, 2024 21:35
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.21.3 fix(deps): update react-router monorepo to v6.22.0 Feb 1, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 036c7e4 to 79cd4d9 Compare February 16, 2024 21:40
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.22.0 fix(deps): update react-router monorepo to v6.22.1 Feb 16, 2024
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.22.1 fix(deps): update react-router monorepo to v6.22.2 Feb 28, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 79cd4d9 to 170d1f7 Compare February 28, 2024 21:27
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 170d1f7 to aec47a1 Compare March 7, 2024 15:51
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.22.2 fix(deps): update react-router monorepo to v6.22.3 Mar 7, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from aec47a1 to a11c8a5 Compare April 23, 2024 16:31
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.22.3 fix(deps): update react-router monorepo to v6.23.0 Apr 23, 2024
@coderabbitai
Copy link

coderabbitai bot commented Apr 23, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from a11c8a5 to 3fdeea8 Compare May 10, 2024 18:39
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.23.0 fix(deps): update react-router monorepo to v6.23.1 May 10, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 3fdeea8 to d77b002 Compare June 24, 2024 19:01
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.23.1 fix(deps): update react-router monorepo to v6.24.0 Jun 24, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from d77b002 to 9546d05 Compare July 7, 2024 23:59
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.24.0 fix(deps): update react-router monorepo to v6.24.1 Jul 7, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 9546d05 to a1a5723 Compare July 16, 2024 15:31
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.25.0 fix(deps): update react-router monorepo to v6.25.1 Jul 17, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from fe66c69 to b779da6 Compare August 1, 2024 16:23
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.25.1 fix(deps): update react-router monorepo to v6.26.0 Aug 1, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from b779da6 to 9615194 Compare August 15, 2024 16:24
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.26.0 fix(deps): update react-router monorepo to v6.26.1 Aug 15, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 9615194 to cf6f0b6 Compare September 9, 2024 15:58
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.26.1 fix(deps): update react-router monorepo to v6.26.2 Sep 9, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from cf6f0b6 to ab98b9f Compare October 11, 2024 18:39
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.26.2 fix(deps): update react-router monorepo to v6.27.0 Oct 11, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from ab98b9f to 1ca1efc Compare November 7, 2024 02:22
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.27.0 fix(deps): update react-router monorepo to v6.28.0 Nov 7, 2024
@sweep-ai-deprecated
Copy link

Hey @renovate[bot], here is an example of how you can ask me to improve this pull request:

@Sweep Add unit tests for the new `replace(url, init?)` method to ensure it correctly performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects.

📖 For more information on how to use Sweep, please read our documentation.

@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.28.0 fix(deps): update dependency react-router-dom to v6.28.0 Dec 8, 2024
@renovate renovate bot changed the title fix(deps): update dependency react-router-dom to v6.28.0 fix(deps): update react-router monorepo to v6.28.0 Dec 8, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 1ca1efc to 5613b64 Compare December 20, 2024 22:38
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.28.0 fix(deps): update react-router monorepo to v6.28.1 Dec 20, 2024
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 5613b64 to 0178f17 Compare January 16, 2025 16:49
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.28.1 fix(deps): update react-router monorepo to v6.28.2 Jan 16, 2025
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 0178f17 to 790e314 Compare January 30, 2025 19:21
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.28.2 fix(deps): update react-router monorepo to v6.29.0 Jan 30, 2025
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 790e314 to da245c7 Compare February 27, 2025 19:21
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.29.0 fix(deps): update react-router monorepo to v6.30.0 Feb 27, 2025
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from da245c7 to 1188784 Compare May 20, 2025 22:48
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.30.0 fix(deps): update react-router monorepo to v6.30.1 May 20, 2025
@renovate renovate bot changed the title fix(deps): update react-router monorepo to v6.30.1 chore(deps): update react-router monorepo to v6.30.1 Sep 25, 2025
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from 1188784 to a5e43ba Compare November 14, 2025 01:46
@renovate renovate bot changed the title chore(deps): update react-router monorepo to v6.30.1 chore(deps): update react-router monorepo to v6.30.2 Nov 14, 2025
@renovate renovate bot force-pushed the renovate/react-router-monorepo branch from a5e43ba to 8961fb3 Compare January 7, 2026 20:57
@renovate renovate bot changed the title chore(deps): update react-router monorepo to v6.30.2 chore(deps): update react-router monorepo to v6.30.3 Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant