react-router 6.28.0 → 6.28.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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.28.0
2
+ * React Router v6.28.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.28.0
2
+ * React Router v6.28.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -851,23 +851,23 @@ function warnOnce(key, message) {
851
851
  }
852
852
  const logDeprecation = (flag, msg, link) => warnOnce(flag, `⚠️ React Router Future Flag Warning: ${msg}. ` + `You can use the \`${flag}\` future flag to opt-in early. ` + `For more information, see ${link}.`);
853
853
  function logV6DeprecationWarnings(renderFuture, routerFuture) {
854
- if (!renderFuture?.v7_startTransition) {
854
+ if (renderFuture?.v7_startTransition === undefined) {
855
855
  logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition");
856
856
  }
857
- if (!renderFuture?.v7_relativeSplatPath && (!routerFuture || !routerFuture.v7_relativeSplatPath)) {
857
+ if (renderFuture?.v7_relativeSplatPath === undefined && (!routerFuture || !routerFuture.v7_relativeSplatPath)) {
858
858
  logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
859
859
  }
860
860
  if (routerFuture) {
861
- if (!routerFuture.v7_fetcherPersist) {
861
+ if (routerFuture.v7_fetcherPersist === undefined) {
862
862
  logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist");
863
863
  }
864
- if (!routerFuture.v7_normalizeFormMethod) {
864
+ if (routerFuture.v7_normalizeFormMethod === undefined) {
865
865
  logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod");
866
866
  }
867
- if (!routerFuture.v7_partialHydration) {
867
+ if (routerFuture.v7_partialHydration === undefined) {
868
868
  logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration");
869
869
  }
870
- if (!routerFuture.v7_skipActionErrorRevalidation) {
870
+ if (routerFuture.v7_skipActionErrorRevalidation === undefined) {
871
871
  logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation");
872
872
  }
873
873
  }