react-router 6.24.1-pre.0 → 6.25.0-pre.0

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,12 +1,28 @@
1
1
  # `react-router`
2
2
 
3
- ## 6.24.1-pre.0
3
+ ## 6.25.0-pre.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Stabilize `future.unstable_skipActionErrorRevalidation` as `future.v7_skipActionErrorRevalidation` ([#11769](https://github.com/remix-run/react-router/pull/11769))
8
+
9
+ - When this flag is enabled, actions will not automatically trigger a revalidation if they return/throw a `Response` with a `4xx`/`5xx` status code
10
+ - You may still opt-into revalidation via `shouldRevalidate`
11
+ - This also changes `shouldRevalidate`'s `unstable_actionStatus` parameter to `actionStatus`
12
+
13
+ ### Patch Changes
14
+
15
+ - Fix regression and properly decode paths inside `useMatch` so matches/params reflect decoded params ([#11789](https://github.com/remix-run/react-router/pull/11789))
16
+ - Updated dependencies:
17
+ - `@remix-run/router@1.18.0-pre.0`
18
+
19
+ ## 6.24.1
4
20
 
5
21
  ### Patch Changes
6
22
 
7
- - When using `v7_relativeSplatPath`, properly resolve relative paths in splat routes that are children of pathless routes ([#11633](https://github.com/remix-run/react-router/pull/11633))
23
+ - When using `future.v7_relativeSplatPath`, properly resolve relative paths in splat routes that are children of pathless routes ([#11633](https://github.com/remix-run/react-router/pull/11633))
8
24
  - Updated dependencies:
9
- - `@remix-run/router@1.17.1-pre.0`
25
+ - `@remix-run/router@1.17.1`
10
26
 
11
27
  ## 6.24.0
12
28
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.24.1-pre.0
2
+ * React Router v6.25.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -9,7 +9,7 @@
9
9
  * @license MIT
10
10
  */
11
11
  import * as React from 'react';
12
- import { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';
12
+ import { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_decodePath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';
13
13
  export { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, resolvePath } from '@remix-run/router';
14
14
 
15
15
  function _extends() {
@@ -163,7 +163,7 @@ function useMatch(pattern) {
163
163
  let {
164
164
  pathname
165
165
  } = useLocation();
166
- return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);
166
+ return React.useMemo(() => matchPath(pattern, UNSAFE_decodePath(pathname)), [pathname, pattern]);
167
167
  }
168
168
 
169
169
  /**