react-router-dom 6.20.0 → 6.20.1-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 +9 -0
- 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-pre.0
|
|
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-pre.0`
|
|
10
|
+
- `@remix-run/router@1.13.1-pre.0`
|
|
11
|
+
|
|
3
12
|
## 6.20.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v6.20.0
|
|
2
|
+
* React Router DOM v6.20.1-pre.0
|
|
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) {
|