
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@react-router/fs-routes
Advanced tools
File system routing conventions for React Router, for use within routes.ts
File system routing conventions for React Router
npm install @react-router/fs-routes
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
File system routing conventions for React Router, for use within routes.ts
The npm package @react-router/fs-routes receives a total of 81,758 weekly downloads. As such, @react-router/fs-routes popularity was classified as popular.
We found that @react-router/fs-routes 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.