react-router 6.30.0-pre-v6.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 CHANGED
@@ -1,6 +1,13 @@
1
1
  # `react-router`
2
2
 
3
- ## 6.30.0-pre-v6.0
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
+
10
+ ## 6.30.0
4
11
 
5
12
  ### Minor Changes
6
13
 
@@ -9,7 +16,7 @@
9
16
  ### Patch Changes
10
17
 
11
18
  - Updated dependencies:
12
- - `@remix-run/router@1.23.0-pre-v6.0`
19
+ - `@remix-run/router@1.23.0`
13
20
 
14
21
  ## 6.29.0
15
22
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.30.0-pre-v6.0
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 = !isStatic && dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, {
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 || !routerFuture.v7_relativeSplatPath)) {
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) {