React Router 7.14.2 is a small patch release with a mix of bug fixes, type improvements, and a new RSC route-module split capability. It also rolls out release-process updates and preview-build support.
What's new
- Adds support for splitting route modules in RSC with
v8_splitRouteModulesset to"enforce". This lets you import from route modules and shifts more work from compile time to runtime. (#14965) - Adds PR Preview builds. (#14975)
Fixes
- Fixes
fetcher.loadredirects coming from parent middleware. (#14974) - Fixes type generation for pathless layout routes that only have nested layout children, which previously produced invalid TypeScript. (#14875)
- Improves the generated types for
generatePath’sparamsargument. (#14984) - Cleans up internal error serialization logic after removing the undocumented custom serialization path. (#14986, #14992)
- Removes a redundant
OmitfromRouterProviderProps; this is a type cleanup with no behavior change. (#14874)
Other notable changes
- Removed changesets from the repo and replaced them with similar in-repo flows for PR commenting and
pnpm run changes:add. (#14977) - Brought the release-comments script into the repo. (#14985)
- Added a framework styling explanation to the docs. (#14976)
Contributors
@zeroqs @jacob-ebey @nyxsky404 @brophdawg11 @pcattori @brookslybrand