Packages

react-router

8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed

Your version

7.9.6

13 Nov 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

4 fixed

Security

Fixes 1 advisory that affected 7.9.5

13 advisories affect 7.9.6; 7.18.0 fixes them

8 more

Release note

The section about react-router of a note shared by several packages.

Patch Changes

  • [UNSTABLE] Add location/params as arguments to client-side unstable_onError to permit enhanced error reporting.

    ⚠️ This is a breaking change if you've already adopted unstable_onError. The second errorInfo parameter is now an object with location and params:

    // Before
    function errorHandler(error: unknown, errorInfo?: React.errorInfo) {
      /*...*/
    }
    
    // After
    function errorHandler(
      error: unknown,
      info: {
        location: Location;
        params: Params;
        errorInfo?: React.ErrorInfo;
      },
    ) {
      /*...*/
    }
  • Properly handle ancestor thrown middleware errors before next() on fetcher submissions

  • Fix issue with splat routes interfering with multiple calls to patchRoutesOnNavigation

  • Normalize double-slashes in resolvePath

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.