react-router 7.5.1-pre.0 → 7.5.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 CHANGED
@@ -1,10 +1,11 @@
1
1
  # `react-router`
2
2
 
3
- ## 7.5.1-pre.0
3
+ ## 7.5.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Fix single fetch bug where no revalidation request would be made when navigating upwards to a reused parent route ([#13253](https://github.com/remix-run/react-router/pull/13253))
8
+
8
9
  - When using the object-based `route.lazy` API, the `HydrateFallback` and `hydrateFallbackElement` properties are now skipped when lazy loading routes after hydration. ([#13376](https://github.com/remix-run/react-router/pull/13376))
9
10
 
10
11
  If you move the code for these properties into a separate file, you can use this optimization to avoid downloading unused hydration code. For example:
@@ -24,8 +25,11 @@
24
25
  ```
25
26
 
26
27
  - Properly revalidate prerendered paths when param values change ([#13380](https://github.com/remix-run/react-router/pull/13380))
28
+
27
29
  - UNSTABLE: Add a new `unstable_runClientMiddleware` argument to `dataStrategy` to enable middleware execution in custom `dataStrategy` implementations ([#13395](https://github.com/remix-run/react-router/pull/13395))
30
+
28
31
  - UNSTABLE: Add better error messaging when `getLoadContext` is not updated to return a `Map`" ([#13242](https://github.com/remix-run/react-router/pull/13242))
32
+
29
33
  - Do not automatically add `null` to `staticHandler.query()` `context.loaderData` if routes do not have loaders ([#13223](https://github.com/remix-run/react-router/pull/13223))
30
34
 
31
35
  - This was a Remix v2 implementation detail inadvertently left in for React Router v7
@@ -33,7 +37,9 @@
33
37
  - ⚠️ This could be a "breaking bug fix" for you if you are doing manual SSR with `createStaticHandler()`/`<StaticRouterProvider>`, and using `context.loaderData` to control `<RouterProvider>` hydration behavior on the client
34
38
 
35
39
  - Fix prerendering when a loader returns a redirect ([#13365](https://github.com/remix-run/react-router/pull/13365))
40
+
36
41
  - UNSTABLE: Update context type for `LoaderFunctionArgs`/`ActionFunctionArgs` when middleware is enabled ([#13381](https://github.com/remix-run/react-router/pull/13381))
42
+
37
43
  - Add support for the new `unstable_shouldCallHandler`/`unstable_shouldRevalidateArgs` APIs in `dataStrategy` ([#13253](https://github.com/remix-run/react-router/pull/13253))
38
44
 
39
45
  ## 7.5.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7916,7 +7916,7 @@ function mergeRefs(...refs) {
7916
7916
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7917
7917
  try {
7918
7918
  if (isBrowser) {
7919
- window.__reactRouterVersion = "7.5.1-pre.0";
7919
+ window.__reactRouterVersion = "7.5.1";
7920
7920
  }
7921
7921
  } catch (e) {
7922
7922
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -26,7 +26,7 @@ import {
26
26
  matchRoutes,
27
27
  shouldHydrateRouteLoader,
28
28
  useFogOFWarDiscovery
29
- } from "./chunk-QP2GE2RJ.mjs";
29
+ } from "./chunk-LSOULM7L.mjs";
30
30
 
31
31
  // lib/dom-export/dom-router-provider.tsx
32
32
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8065,7 +8065,7 @@ function mergeRefs(...refs) {
8065
8065
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8066
8066
  try {
8067
8067
  if (isBrowser) {
8068
- window.__reactRouterVersion = "7.5.1-pre.0";
8068
+ window.__reactRouterVersion = "7.5.1";
8069
8069
  }
8070
8070
  } catch (e) {
8071
8071
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -124,7 +124,7 @@ import {
124
124
  useSearchParams,
125
125
  useSubmit,
126
126
  useViewTransitionState
127
- } from "./chunk-QP2GE2RJ.mjs";
127
+ } from "./chunk-LSOULM7L.mjs";
128
128
  export {
129
129
  Await,
130
130
  BrowserRouter,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7916,7 +7916,7 @@ function mergeRefs(...refs) {
7916
7916
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7917
7917
  try {
7918
7918
  if (isBrowser) {
7919
- window.__reactRouterVersion = "7.5.1-pre.0";
7919
+ window.__reactRouterVersion = "7.5.1";
7920
7920
  }
7921
7921
  } catch (e) {
7922
7922
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -26,7 +26,7 @@ import {
26
26
  matchRoutes,
27
27
  shouldHydrateRouteLoader,
28
28
  useFogOFWarDiscovery
29
- } from "./chunk-TOAG3JKW.mjs";
29
+ } from "./chunk-SAWFLE7G.mjs";
30
30
 
31
31
  // lib/dom-export/dom-router-provider.tsx
32
32
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8065,7 +8065,7 @@ function mergeRefs(...refs) {
8065
8065
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8066
8066
  try {
8067
8067
  if (isBrowser) {
8068
- window.__reactRouterVersion = "7.5.1-pre.0";
8068
+ window.__reactRouterVersion = "7.5.1";
8069
8069
  }
8070
8070
  } catch (e) {
8071
8071
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -124,7 +124,7 @@ import {
124
124
  useSearchParams,
125
125
  useSubmit,
126
126
  useViewTransitionState
127
- } from "./chunk-TOAG3JKW.mjs";
127
+ } from "./chunk-SAWFLE7G.mjs";
128
128
  export {
129
129
  Await,
130
130
  BrowserRouter,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1-pre.0
2
+ * react-router v7.5.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "7.5.1-pre.0",
3
+ "version": "7.5.1",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",