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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 6.30.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Partially revert optimization added in `6.29.0` to reduce calls to `matchRoutes` because it surfaced other issues ([#13623](https://github.com/remix-run/react-router/pull/13623))
|
|
8
|
+
- Stop logging invalid warning when `v7_relativeSplatPath` is set to false ([#13502](https://github.com/remix-run/react-router/pull/13502))
|
|
9
|
+
|
|
3
10
|
## 6.30.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/index.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
|
*
|
|
@@ -327,8 +327,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
327
327
|
// router loaded. We can help them understand how to avoid that.
|
|
328
328
|
"useRoutes() may be used only in the context of a <Router> component.") : UNSAFE_invariant(false) : void 0;
|
|
329
329
|
let {
|
|
330
|
-
navigator
|
|
331
|
-
static: isStatic
|
|
330
|
+
navigator
|
|
332
331
|
} = React.useContext(NavigationContext);
|
|
333
332
|
let {
|
|
334
333
|
matches: parentMatches
|
|
@@ -393,7 +392,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
393
392
|
let segments = pathname.replace(/^\//, "").split("/");
|
|
394
393
|
remainingPathname = "/" + segments.slice(parentSegments.length).join("/");
|
|
395
394
|
}
|
|
396
|
-
let matches =
|
|
395
|
+
let matches = matchRoutes(routes, {
|
|
397
396
|
pathname: remainingPathname
|
|
398
397
|
});
|
|
399
398
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -941,7 +940,7 @@ function logV6DeprecationWarnings(renderFuture, routerFuture) {
|
|
|
941
940
|
if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === undefined) {
|
|
942
941
|
logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition");
|
|
943
942
|
}
|
|
944
|
-
if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture ||
|
|
943
|
+
if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture || routerFuture.v7_relativeSplatPath === undefined)) {
|
|
945
944
|
logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
|
|
946
945
|
}
|
|
947
946
|
if (routerFuture) {
|