
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@react-router/node
Advanced tools
Node.js platform abstractions for React Router
npm install @react-router/node
v7.6.3
Date: 2025-06-27
react-router
- Do not serialize types for useRouteLoaderData<typeof clientLoader>
(#13752)
For types to distinguish a clientLoader
from a serverLoader
, you MUST annotate clientLoader
args:
// 👇 annotation required to skip serializing types
export function clientLoader({}: Route.ClientLoaderArgs) {
return { fn: () => "earth" };
}
function SomeComponent() {
const data = useRouteLoaderData<typeof clientLoader>("routes/this-route");
const planet = data?.fn() ?? "world";
return <h1>Hello, {planet}!</h1>;
}
@react-router/cloudflare
- Remove tsup
from peerDependencies
(#13757)
@react-router/dev
- Add Vite 7 support (#13748)
@react-router/dev
- Skip package.json
resolution checks when a custom entry.server.(j|t)sx
file is provided (#13744)
@react-router/dev
- Add validation for a route's id not being 'root' (#13792)
@react-router/fs-routes
@react-router/remix-config-routes-adapter
- Use replaceAll
for normalizing windows file system slashes (#13738)
@react-router/node
- Remove old "install" package exports (#13762)
Full Changelog: v7.6.2...v7.6.3
FAQs
Node.js platform abstractions for React Router
The npm package @react-router/node receives a total of 268,243 weekly downloads. As such, @react-router/node popularity was classified as popular.
We found that @react-router/node 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.