react-router 6.30.0 → 6.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +4 -5
- package/dist/react-router.development.js.map +1 -1
- package/dist/react-router.production.min.js +2 -2
- package/dist/react-router.production.min.js.map +1 -1
- package/dist/umd/react-router.development.js +4 -5
- package/dist/umd/react-router.development.js.map +1 -1
- package/dist/umd/react-router.production.min.js +2 -2
- package/dist/umd/react-router.production.min.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.30.
|
|
2
|
+
* React Router v6.30.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -279,8 +279,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
279
279
|
// router loaded. We can help them understand how to avoid that.
|
|
280
280
|
`useRoutes() may be used only in the context of a <Router> component.`) : void 0;
|
|
281
281
|
let {
|
|
282
|
-
navigator
|
|
283
|
-
static: isStatic
|
|
282
|
+
navigator
|
|
284
283
|
} = React.useContext(NavigationContext);
|
|
285
284
|
let {
|
|
286
285
|
matches: parentMatches
|
|
@@ -344,7 +343,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
344
343
|
let segments = pathname.replace(/^\//, "").split("/");
|
|
345
344
|
remainingPathname = "/" + segments.slice(parentSegments.length).join("/");
|
|
346
345
|
}
|
|
347
|
-
let matches =
|
|
346
|
+
let matches = matchRoutes(routes, {
|
|
348
347
|
pathname: remainingPathname
|
|
349
348
|
});
|
|
350
349
|
{
|
|
@@ -855,7 +854,7 @@ function logV6DeprecationWarnings(renderFuture, routerFuture) {
|
|
|
855
854
|
if (renderFuture?.v7_startTransition === undefined) {
|
|
856
855
|
logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition");
|
|
857
856
|
}
|
|
858
|
-
if (renderFuture?.v7_relativeSplatPath === undefined && (!routerFuture ||
|
|
857
|
+
if (renderFuture?.v7_relativeSplatPath === undefined && (!routerFuture || routerFuture.v7_relativeSplatPath === undefined)) {
|
|
859
858
|
logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
|
|
860
859
|
}
|
|
861
860
|
if (routerFuture) {
|