react-router 7.3.0-pre.1 → 7.3.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 CHANGED
@@ -1,13 +1,6 @@
1
1
  # `react-router`
2
2
 
3
- ## 7.3.0-pre.1
4
-
5
- ### Patch Changes
6
-
7
- - Fix jsdoc types for `context` ([#13170](https://github.com/remix-run/react-router/pull/13170))
8
- - [REMOVE] Remove middleware depth logic and always call middlware for all matches ([#13172](https://github.com/remix-run/react-router/pull/13172))
9
-
10
- ## 7.3.0-pre.0
3
+ ## 7.3.0
11
4
 
12
5
  ### Minor Changes
13
6
 
@@ -20,6 +13,7 @@
20
13
  ### Patch Changes
21
14
 
22
15
  - Skip resource route flow in dev server in SPA mode ([#13113](https://github.com/remix-run/react-router/pull/13113))
16
+
23
17
  - Support middleware on routes (unstable) ([#12941](https://github.com/remix-run/react-router/pull/12941))
24
18
 
25
19
  Middleware is implemented behind a `future.unstable_middleware` flag. To enable, you must enable the flag and the types in your `react-router-config.ts` file:
@@ -218,7 +212,10 @@
218
212
 
219
213
  For library and framework authors using `unstable_SerializesTo`, you may need to add `as unknown` casts before casting to `unstable_SerializesTo`.
220
214
 
215
+ - \[REMOVE] Remove middleware depth logic and always call middlware for all matches ([#13172](https://github.com/remix-run/react-router/pull/13172))
216
+
221
217
  - Fix single fetch `_root.data` requests when a `basename` is used ([#12898](https://github.com/remix-run/react-router/pull/12898))
218
+
222
219
  - Add `context` support to client side data routers (unstable) ([#12941](https://github.com/remix-run/react-router/pull/12941))
223
220
 
224
221
  Your application `loader` and `action` functions on the client will now receive a `context` parameter. This is an instance of `unstable_RouterContextProvider` that you use with type-safe contexts (similar to `React.createContext`) and is most useful with the corresponding `middleware`/`clientMiddleware` API's:
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7515,7 +7515,7 @@ function mergeRefs(...refs) {
7515
7515
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7516
7516
  try {
7517
7517
  if (isBrowser) {
7518
- window.__reactRouterVersion = "7.3.0-pre.1";
7518
+ window.__reactRouterVersion = "7.3.0";
7519
7519
  }
7520
7520
  } catch (e) {
7521
7521
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -25,7 +25,7 @@ import {
25
25
  matchRoutes,
26
26
  shouldHydrateRouteLoader,
27
27
  useFogOFWarDiscovery
28
- } from "./chunk-3XNZT7XE.mjs";
28
+ } from "./chunk-K6CSEXPM.mjs";
29
29
 
30
30
  // lib/dom-export/dom-router-provider.tsx
31
31
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7663,7 +7663,7 @@ function mergeRefs(...refs) {
7663
7663
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7664
7664
  try {
7665
7665
  if (isBrowser) {
7666
- window.__reactRouterVersion = "7.3.0-pre.1";
7666
+ window.__reactRouterVersion = "7.3.0";
7667
7667
  }
7668
7668
  } catch (e) {
7669
7669
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -123,7 +123,7 @@ import {
123
123
  useSearchParams,
124
124
  useSubmit,
125
125
  useViewTransitionState
126
- } from "./chunk-3XNZT7XE.mjs";
126
+ } from "./chunk-K6CSEXPM.mjs";
127
127
  export {
128
128
  Await,
129
129
  BrowserRouter,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7515,7 +7515,7 @@ function mergeRefs(...refs) {
7515
7515
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7516
7516
  try {
7517
7517
  if (isBrowser) {
7518
- window.__reactRouterVersion = "7.3.0-pre.1";
7518
+ window.__reactRouterVersion = "7.3.0";
7519
7519
  }
7520
7520
  } catch (e) {
7521
7521
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -25,7 +25,7 @@ import {
25
25
  matchRoutes,
26
26
  shouldHydrateRouteLoader,
27
27
  useFogOFWarDiscovery
28
- } from "./chunk-ZGBK665M.mjs";
28
+ } from "./chunk-RFJZTPXA.mjs";
29
29
 
30
30
  // lib/dom-export/dom-router-provider.tsx
31
31
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -7663,7 +7663,7 @@ function mergeRefs(...refs) {
7663
7663
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
7664
7664
  try {
7665
7665
  if (isBrowser) {
7666
- window.__reactRouterVersion = "7.3.0-pre.1";
7666
+ window.__reactRouterVersion = "7.3.0";
7667
7667
  }
7668
7668
  } catch (e) {
7669
7669
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -123,7 +123,7 @@ import {
123
123
  useSearchParams,
124
124
  useSubmit,
125
125
  useViewTransitionState
126
- } from "./chunk-ZGBK665M.mjs";
126
+ } from "./chunk-RFJZTPXA.mjs";
127
127
  export {
128
128
  Await,
129
129
  BrowserRouter,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.3.0-pre.1
2
+ * react-router v7.3.0
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.3.0-pre.1",
3
+ "version": "7.3.0",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",