You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

react-router

Package Overview
Dependencies
Maintainers
3
Versions
763
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Versions

1245
76

7.5.0-pre.1

Diff
mjackson
published 7.5.0-pre.1 •
mjackson
published 7.5.0-pre.0 •
mjackson
published 0.0.0-nightly-b8cf1b6e3-20250402 •
mjackson
published 0.0.0-experimental-54614613e •
mjackson
published 0.0.0-nightly-d07cefedf-20250401 •
mjackson
published 0.0.0-nightly-c0f766f34-20250329 •
mjackson
published 7.4.1 •

Changelog

Source

v7.4.1

Date: 2025-03-28

Security Notice

Fixed a security vulnerability that allowed URL manipulation and potential cache pollution via the Host and X-Forwarded-Host headers due to inadequate port sanitization.

Patch Changes

  • react-router - Dedupe calls to route.lazy functions (#13260)
  • @react-router/dev - Fix path in prerender error messages (#13257)
  • @react-router/dev - Fix typegen for virtual modules when moduleDetection is set to force (#13267)
  • @react-router/express - Better validation of x-forwarded-host header to prevent potential security issues (#13309)

Unstable Changes

⚠️ Unstable features are not recommended for production use

  • react-router - Fix types on unstable_MiddlewareFunction to avoid type errors when a middleware doesn't return a value (#13311)
  • react-router - Add support for route.unstable_lazyMiddleware function to allow lazy loading of middleware logic (#13210)
    • ⚠️ We do not recommend adoption of this API currently as we are likely going to change it prior to the stable release of middleware
    • ⚠️ This may be a breaking change if your app is currently returning unstable_middleware from route.lazy
    • The route.unstable_middleware property is no longer supported in the return value from route.lazy
    • If you want to lazily load middleware, you must use route.unstable_lazyMiddleware
  • @react-router/dev - When both future.unstable_middleware and future.unstable_splitRouteModules are enabled, split unstable_clientMiddleware route exports into separate chunks when possible (#13210)
  • @react-router/dev - Improve performance of future.unstable_middleware by ensuring that route modules are only blocking during the middleware phase when the unstable_clientMiddleware has been defined (#13210)

Full Changelog: v7.4.0...v7.4.1

mjackson
published 0.0.0-nightly-e93e2b792-20250328 •
mjackson
published 0.0.0-nightly-2e661fbb4-20250327 •
mjackson
published 0.0.0-experimental-2e661fbb4 •