react-router-dom 6.20.0 → 6.20.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 +10 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router-dom.development.js +5 -3
- package/dist/react-router-dom.development.js.map +1 -1
- package/dist/react-router-dom.production.min.js +1 -1
- package/dist/react-router-dom.production.min.js.map +1 -1
- package/dist/umd/react-router-dom.development.js +5 -3
- package/dist/umd/react-router-dom.development.js.map +1 -1
- package/dist/umd/react-router-dom.production.min.js +1 -1
- package/dist/umd/react-router-dom.production.min.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# `react-router-dom`
|
|
2
2
|
|
|
3
|
+
## 6.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Revert the `useResolvedPath` fix for splat routes due to a large number of applications that were relying on the buggy behavior (see https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329). We plan to re-introduce this fix behind a future flag in the next minor version. ([#11078](https://github.com/remix-run/react-router/pull/11078))
|
|
8
|
+
- Updated dependencies:
|
|
9
|
+
- `react-router@6.20.1`
|
|
10
|
+
- `@remix-run/router@1.13.1`
|
|
11
|
+
|
|
3
12
|
## 6.20.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -250,7 +259,7 @@
|
|
|
250
259
|
|
|
251
260
|
## 6.12.1
|
|
252
261
|
|
|
253
|
-
>
|
|
262
|
+
> [!WARNING]
|
|
254
263
|
> Please use version `6.13.0` or later instead of `6.12.1`. This version suffers from a `webpack`/`terser` minification issue resulting in invalid minified code in your resulting production bundles which can cause issues in your application. See [#10579](https://github.com/remix-run/react-router/issues/10579) for more details.
|
|
255
264
|
|
|
256
265
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v6.20.
|
|
2
|
+
* React Router DOM v6.20.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -1070,8 +1070,10 @@ function useFormAction(action, _temp2) {
|
|
|
1070
1070
|
let path = _extends({}, useResolvedPath(action ? action : ".", {
|
|
1071
1071
|
relative
|
|
1072
1072
|
}));
|
|
1073
|
-
//
|
|
1074
|
-
//
|
|
1073
|
+
// Previously we set the default action to ".". The problem with this is that
|
|
1074
|
+
// `useResolvedPath(".")` excludes search params of the resolved URL. This is
|
|
1075
|
+
// the intended behavior of when "." is specifically provided as
|
|
1076
|
+
// the form action, but inconsistent w/ browsers when the action is omitted.
|
|
1075
1077
|
// https://github.com/remix-run/remix/issues/927
|
|
1076
1078
|
let location = useLocation();
|
|
1077
1079
|
if (action == null) {
|