react-router 7.9.3 → 7.9.4

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/development/{chunk-EUCGRVHH.js → chunk-72XNTZCV.js} +134 -134
  3. package/dist/development/{chunk-LZYTN6SO.js → chunk-DI2QHYMJ.js} +28 -14
  4. package/dist/development/{chunk-NISHYRIK.mjs → chunk-OIYGIGL5.mjs} +16 -2
  5. package/dist/development/{chunk-65XJMMLO.mjs → chunk-WY5IRSCW.mjs} +8 -4
  6. package/dist/{production/context-BqL5Eckq.d.mts → development/context-DSyS5mLj.d.mts} +1 -1
  7. package/dist/development/dom-export.d.mts +1 -1
  8. package/dist/development/dom-export.js +3 -3
  9. package/dist/development/dom-export.mjs +3 -3
  10. package/dist/{production/index-react-server-client-2EDmGlsZ.d.mts → development/index-react-server-client-BIz4AUNd.d.mts} +2 -2
  11. package/dist/development/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-BbRcBjrA.d.ts} +1 -1
  12. package/dist/development/index-react-server-client.d.mts +3 -3
  13. package/dist/development/index-react-server-client.d.ts +2 -2
  14. package/dist/development/index-react-server-client.js +4 -4
  15. package/dist/development/index-react-server-client.mjs +2 -2
  16. package/dist/development/index-react-server.js +1 -1
  17. package/dist/development/index-react-server.mjs +1 -1
  18. package/dist/development/index.d.mts +16 -9
  19. package/dist/development/index.d.ts +14 -7
  20. package/dist/development/index.js +105 -99
  21. package/dist/development/index.mjs +5 -3
  22. package/dist/development/lib/types/internal.d.mts +3 -3
  23. package/dist/development/lib/types/internal.d.ts +2 -2
  24. package/dist/development/lib/types/internal.js +1 -1
  25. package/dist/development/lib/types/internal.mjs +1 -1
  26. package/dist/{production/register-DiOIlEq5.d.mts → development/register-C34pU-in.d.ts} +7 -1
  27. package/dist/development/{register-DiOIlEq5.d.mts → register-CI4bTprK.d.mts} +7 -1
  28. package/dist/development/{route-data-CDwqkzPE.d.mts → route-data-DZQOUSqV.d.mts} +1 -1
  29. package/dist/development/{routeModules-BmVo7q9e.d.ts → routeModules-D5iJ6JYT.d.ts} +1 -1
  30. package/dist/production/{chunk-VAVG4EWR.mjs → chunk-3TADTUL4.mjs} +16 -2
  31. package/dist/production/{chunk-GWORLVRM.js → chunk-4E5LHRQP.js} +28 -14
  32. package/dist/production/{chunk-LI6FX3G6.mjs → chunk-FR6HSPLK.mjs} +8 -4
  33. package/dist/production/{chunk-LHDU32KO.js → chunk-WNLQ53P5.js} +134 -134
  34. package/dist/{development/context-BqL5Eckq.d.mts → production/context-DSyS5mLj.d.mts} +1 -1
  35. package/dist/production/dom-export.d.mts +1 -1
  36. package/dist/production/dom-export.js +3 -3
  37. package/dist/production/dom-export.mjs +3 -3
  38. package/dist/{development/index-react-server-client-2EDmGlsZ.d.mts → production/index-react-server-client-BIz4AUNd.d.mts} +2 -2
  39. package/dist/production/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-BbRcBjrA.d.ts} +1 -1
  40. package/dist/production/index-react-server-client.d.mts +3 -3
  41. package/dist/production/index-react-server-client.d.ts +2 -2
  42. package/dist/production/index-react-server-client.js +4 -4
  43. package/dist/production/index-react-server-client.mjs +2 -2
  44. package/dist/production/index-react-server.js +1 -1
  45. package/dist/production/index-react-server.mjs +1 -1
  46. package/dist/production/index.d.mts +16 -9
  47. package/dist/production/index.d.ts +14 -7
  48. package/dist/production/index.js +105 -99
  49. package/dist/production/index.mjs +5 -3
  50. package/dist/production/lib/types/internal.d.mts +3 -3
  51. package/dist/production/lib/types/internal.d.ts +2 -2
  52. package/dist/production/lib/types/internal.js +1 -1
  53. package/dist/production/lib/types/internal.mjs +1 -1
  54. package/dist/production/{register-DiOIlEq5.d.ts → register-C34pU-in.d.ts} +7 -1
  55. package/dist/{development/register-DiOIlEq5.d.ts → production/register-CI4bTprK.d.mts} +7 -1
  56. package/dist/production/{route-data-CDwqkzPE.d.mts → route-data-DZQOUSqV.d.mts} +1 -1
  57. package/dist/production/{routeModules-BmVo7q9e.d.ts → routeModules-D5iJ6JYT.d.ts} +1 -1
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.9.3
2
+ * react-router v7.9.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -31,7 +31,7 @@ import {
31
31
  isSession,
32
32
  routeRSCServerRequest,
33
33
  setDevServerHooks
34
- } from "./chunk-LI6FX3G6.mjs";
34
+ } from "./chunk-FR6HSPLK.mjs";
35
35
  import {
36
36
  Action,
37
37
  Await,
@@ -131,6 +131,7 @@ import {
131
131
  usePrompt,
132
132
  useResolvedPath,
133
133
  useRevalidator,
134
+ useRoute,
134
135
  useRouteError,
135
136
  useRouteLoaderData,
136
137
  useRoutes,
@@ -141,7 +142,7 @@ import {
141
142
  withComponentProps,
142
143
  withErrorBoundaryProps,
143
144
  withHydrateFallbackProps
144
- } from "./chunk-VAVG4EWR.mjs";
145
+ } from "./chunk-3TADTUL4.mjs";
145
146
  export {
146
147
  Await,
147
148
  BrowserRouter,
@@ -243,6 +244,7 @@ export {
243
244
  routeRSCServerRequest as unstable_routeRSCServerRequest,
244
245
  setDevServerHooks as unstable_setDevServerHooks,
245
246
  usePrompt as unstable_usePrompt,
247
+ useRoute as unstable_useRoute,
246
248
  useActionData,
247
249
  useAsyncError,
248
250
  useAsyncValue,
@@ -1,6 +1,6 @@
1
- import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../route-data-CDwqkzPE.mjs';
2
- import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../context-BqL5Eckq.mjs';
3
- import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.mjs';
1
+ import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../route-data-DZQOUSqV.mjs';
2
+ import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../context-DSyS5mLj.mjs';
3
+ import { R as RouteFiles, P as Pages } from '../../register-CI4bTprK.mjs';
4
4
  import 'react';
5
5
 
6
6
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, L as LinkDescriptor, a as Location, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, b as MiddlewareNextFunction, C as ClientDataFunctionArgs, D as DataStrategyResult, c as ServerDataFrom, N as Normalize, d as GetActionData } from '../../routeModules-BmVo7q9e.js';
2
- import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.js';
1
+ import { R as RouteModule, L as LinkDescriptor, a as Location, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, b as MiddlewareNextFunction, C as ClientDataFunctionArgs, D as DataStrategyResult, c as ServerDataFrom, N as Normalize, d as GetActionData } from '../../routeModules-D5iJ6JYT.js';
2
+ import { R as RouteFiles, P as Pages } from '../../register-C34pU-in.js';
3
3
  import 'react';
4
4
 
5
5
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v7.9.3
2
+ * react-router v7.9.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.9.3
2
+ * react-router v7.9.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,3 +1,5 @@
1
+ import { R as RouteModule } from './routeModules-D5iJ6JYT.js';
2
+
1
3
  /**
2
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
3
5
  * React Router should handle this for you via type generation.
@@ -20,5 +22,9 @@ type AnyRouteFiles = Record<string, {
20
22
  type RouteFiles = Register extends {
21
23
  routeFiles: infer Registered extends AnyRouteFiles;
22
24
  } ? Registered : AnyRouteFiles;
25
+ type AnyRouteModules = Record<string, RouteModule>;
26
+ type RouteModules = Register extends {
27
+ routeModules: infer Registered extends AnyRouteModules;
28
+ } ? Registered : AnyRouteModules;
23
29
 
24
- export type { Pages as P, RouteFiles as R, Register as a };
30
+ export type { Pages as P, RouteFiles as R, RouteModules as a, Register as b };
@@ -1,3 +1,5 @@
1
+ import { R as RouteModule } from './route-data-DZQOUSqV.mjs';
2
+
1
3
  /**
2
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
3
5
  * React Router should handle this for you via type generation.
@@ -20,5 +22,9 @@ type AnyRouteFiles = Record<string, {
20
22
  type RouteFiles = Register extends {
21
23
  routeFiles: infer Registered extends AnyRouteFiles;
22
24
  } ? Registered : AnyRouteFiles;
25
+ type AnyRouteModules = Record<string, RouteModule>;
26
+ type RouteModules = Register extends {
27
+ routeModules: infer Registered extends AnyRouteModules;
28
+ } ? Registered : AnyRouteModules;
23
29
 
24
- export type { Pages as P, RouteFiles as R, Register as a };
30
+ export type { Pages as P, RouteFiles as R, RouteModules as a, Register as b };
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, ReactElement } from 'react';
2
- import { A as ActionFunctionArgs, b as LoaderFunctionArgs, c as ActionFunction, d as LoaderFunction, P as Params, L as Location, e as DataRouteMatch, f as MiddlewareFunction, D as DataStrategyResult, S as ShouldRevalidateFunction, g as RouterContextProvider, h as DataWithResponseInit, i as MiddlewareEnabled } from './context-BqL5Eckq.mjs';
2
+ import { A as ActionFunctionArgs, b as LoaderFunctionArgs, c as ActionFunction, d as LoaderFunction, P as Params, L as Location, e as DataRouteMatch, f as MiddlewareFunction, D as DataStrategyResult, S as ShouldRevalidateFunction, g as RouterContextProvider, h as DataWithResponseInit, i as MiddlewareEnabled } from './context-DSyS5mLj.mjs';
3
3
 
4
4
  /**
5
5
  * An object of unknown type for route loaders and actions provided by the
@@ -2179,7 +2179,7 @@ interface RoutesProps {
2179
2179
  * <Routes>
2180
2180
  * <Route index element={<StepOne />} />
2181
2181
  * <Route path="step-2" element={<StepTwo />} />
2182
- * <Route path="step-3" element={<StepThree />}>
2182
+ * <Route path="step-3" element={<StepThree />} />
2183
2183
  * </Routes>
2184
2184
  *
2185
2185
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "7.9.3",
3
+ "version": "7.9.4",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",