react-router 6.28.0-pre.0 → 6.28.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 +11 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +7 -7
- 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 +7 -7
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
-
## 6.28.
|
|
3
|
+
## 6.28.1-pre.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Allow users to opt out of deprecation warnings by setting flags to false ([#12441](https://github.com/remix-run/react-router/pull/12441))
|
|
8
|
+
|
|
9
|
+
## 6.28.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Log deprecation warnings for v7 flags ([#11750](https://github.com/remix-run/react-router/pull/11750))
|
|
8
14
|
- Add deprecation warnings to `json`/`defer` in favor of returning raw objects
|
|
9
15
|
- These methods will be removed in React Router v7
|
|
10
16
|
|
|
@@ -12,7 +18,7 @@
|
|
|
12
18
|
|
|
13
19
|
- Update JSDoc URLs for new website structure (add /v6/ segment) ([#12141](https://github.com/remix-run/react-router/pull/12141))
|
|
14
20
|
- Updated dependencies:
|
|
15
|
-
- `@remix-run/router@1.21.0
|
|
21
|
+
- `@remix-run/router@1.21.0`
|
|
16
22
|
|
|
17
23
|
## 6.27.0
|
|
18
24
|
|
|
@@ -27,7 +33,9 @@
|
|
|
27
33
|
### Patch Changes
|
|
28
34
|
|
|
29
35
|
- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
36
|
+
|
|
30
37
|
- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
38
|
+
|
|
31
39
|
- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967))
|
|
32
40
|
|
|
33
41
|
- Updated dependencies:
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.28.
|
|
2
|
+
* React Router v6.28.1-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -937,23 +937,23 @@ function warnOnce(key, message) {
|
|
|
937
937
|
}
|
|
938
938
|
const logDeprecation = (flag, msg, link) => warnOnce(flag, "\u26A0\uFE0F React Router Future Flag Warning: " + msg + ". " + ("You can use the `" + flag + "` future flag to opt-in early. ") + ("For more information, see " + link + "."));
|
|
939
939
|
function logV6DeprecationWarnings(renderFuture, routerFuture) {
|
|
940
|
-
if (
|
|
940
|
+
if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === undefined) {
|
|
941
941
|
logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition");
|
|
942
942
|
}
|
|
943
|
-
if (
|
|
943
|
+
if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture || !routerFuture.v7_relativeSplatPath)) {
|
|
944
944
|
logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
|
|
945
945
|
}
|
|
946
946
|
if (routerFuture) {
|
|
947
|
-
if (
|
|
947
|
+
if (routerFuture.v7_fetcherPersist === undefined) {
|
|
948
948
|
logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist");
|
|
949
949
|
}
|
|
950
|
-
if (
|
|
950
|
+
if (routerFuture.v7_normalizeFormMethod === undefined) {
|
|
951
951
|
logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod");
|
|
952
952
|
}
|
|
953
|
-
if (
|
|
953
|
+
if (routerFuture.v7_partialHydration === undefined) {
|
|
954
954
|
logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration");
|
|
955
955
|
}
|
|
956
|
-
if (
|
|
956
|
+
if (routerFuture.v7_skipActionErrorRevalidation === undefined) {
|
|
957
957
|
logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation");
|
|
958
958
|
}
|
|
959
959
|
}
|