Packages

react-router

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

Your version

7.1.4

30 Jan 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

2 faster4 fixed

Security

13 advisories affect 7.1.4; 7.18.0 fixes them

8 more

Release note

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

Patch Changes

  • Internal reorg to clean up some duplicated route module types

  • Properly handle status codes that cannot have a body in single fetch responses (204, etc.)

  • Stop erroring on resource routes that return raw strings/objects and instead serialize them as text/plain or application/json responses

    • This only applies when accessed as a resource route without the .data extension

    • When accessed from a Single Fetch .data request, they will still be encoded via turbo-stream

  • Optimize Lazy Route Discovery path discovery to favor a single querySelectorAll call at the body level instead of many calls at the sub-tree level

  • Properly bubble headers as errorHeaders when throwing a data() result

    • Avoid duplication of Set-Cookie headers could be duplicated if also returned from headers

  • Optimize route matching by skipping redundant matchRoutes calls when possible

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.