
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@react-router/express
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Express server request handler for React Router.
npm install @react-router/express
v7.6.2
Date: 2025-06-03
create-react-router
- Update tar-fs
(#13675)
react-router
- (INTERNAL) Slight refactor of internal headers()
function processing for use with RSC (#13639)
react-router
@react-router/dev
- Avoid additional with-props
chunk in Framework Mode by moving route module component prop logic from the Vite plugin to react-router
(#13650)
@react-router/dev
- When future.unstable_viteEnvironmentApi
is enabled and an absolute Vite base
has been configured, ensure critical CSS is handled correctly during development (#13598)
@react-router/dev
- Update vite-node
(#13673)
@react-router/dev
- Fix typegen for non-{.js,.jsx,.ts,.tsx} routes like .mdx (#12453)
@react-router/dev
- Fix href types for optional dynamic params (#13725)
7.6.1 introduced fixes for href
when using optional static segments,
but those fixes caused regressions with how optional dynamic params worked in 7.6.0:
// 7.6.0
href("/users/:id?"); // ✅
href("/users/:id?", { id: 1 }); // ✅
// 7.6.1
href("/users/:id?"); // ❌
href("/users/:id?", { id: 1 }); // ❌
Now, optional static segments are expanded into different paths for href
, but optional dynamic params are not.
This way href
can unambiguously refer to an exact URL path, all while keeping the number of path options to a minimum.
// 7.6.2
// path: /users/:id?/edit?
href("
// ^ suggestions when cursor is here:
//
// /users/:id?
// /users/:id?/edit
Additionally, you can pass params
from component props without needing to narrow them manually:
declare const params: { id?: number };
// 7.6.0
href("/users/:id?", params);
// 7.6.1
href("/users/:id?", params); // ❌
"id" in params ? href("/users/:id", params) : href("/users"); // works... but is annoying
// 7.6.2
href("/users/:id?", params); // restores behavior of 7.6.0
create-react-router
react-router
@react-router/architect
@react-router/cloudflare
@react-router/dev
@react-router/express
@react-router/fs-routes
@react-router/node
@react-router/remix-config-routes-adapter
@react-router/serve
Full Changelog: v7.6.1...v7.6.2
FAQs
Express server request handler for React Router
The npm package @react-router/express receives a total of 223,541 weekly downloads. As such, @react-router/express popularity was classified as popular.
We found that @react-router/express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.