react-router
Advanced tools
Changelog
v7.0.2
Date: 2024-12-02
Temporarily only use one build in export map so packages can have a peer dependency on react router (#12437)
Support moduleResolution
Node16
and NodeNext
(#12440)
Generate wide matches
and params
types for child routes (#12397)
At runtime, matches
includes child route matches and params
include child route path parameters.
But previously, we only generated types for parent routes and the current route in matches
and params
.
To align our generated types more closely to the runtime behavior, we now generate more permissive, wider types when accessing child route information.
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.0.1...v7.0.2