Packages

react-router

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

Your version

7.8.1

15 Aug 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

8 fixed

Security

14 advisories affect 7.8.1; 7.18.0 fixes them

9 more

Release note

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

Patch Changes

  • Fix usage of optional path segments in nested routes defined using absolute paths

  • Bubble client pre-next middleware error to the shallowest ancestor that needs to load, not strictly the shallowest ancestor with a loader

  • Fix optional static segment matching in matchPath

  • Fix prerendering when a basename is set with ssr:false

  • Provide isRouteErrorResponse utility in react-server environments

  • Propagate non-redirect Responses thrown from middleware to the error boundary on document/data requests

  • Handle meta and links Route Exports in RSC Data Mode

  • Properly convert returned/thrown data() values to Response instances via Response.json() in resource routes and middleware (#14159, #14181)

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.