react-router 7.8.2-pre.0 → 7.8.2

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 +16 -4
  2. package/dist/{production/chunk-4HHN5NDL.mjs → development/chunk-5UALIXAM.mjs} +2 -2
  3. package/dist/{production/chunk-3PSRBVDP.js → development/chunk-CSDGKXLR.js} +131 -131
  4. package/dist/development/{chunk-5LNVHL6T.mjs → chunk-PVWAREVJ.mjs} +4 -5
  5. package/dist/development/{chunk-KUJAVZYD.js → chunk-ZO66TDGB.js} +3 -4
  6. package/dist/development/{context-D5hQ2yCL.d.mts → context-jKip1TFB.d.mts} +3 -2
  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-C4AMmMi3.d.ts → development/index-react-server-client-BKpa2trA.d.ts} +1 -1
  11. package/dist/{production/index-react-server-client-DgVbd8DS.d.mts → development/index-react-server-client-DRhjXpk2.d.mts} +2 -2
  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.d.mts +3 -2
  17. package/dist/development/index-react-server.d.ts +3 -2
  18. package/dist/development/index-react-server.js +24 -9
  19. package/dist/development/index-react-server.mjs +24 -9
  20. package/dist/development/index.d.mts +6 -6
  21. package/dist/development/index.d.ts +4 -4
  22. package/dist/development/index.js +95 -95
  23. package/dist/development/index.mjs +3 -3
  24. package/dist/development/lib/types/internal.d.mts +2 -2
  25. package/dist/development/lib/types/internal.d.ts +1 -1
  26. package/dist/development/lib/types/internal.js +1 -1
  27. package/dist/development/lib/types/internal.mjs +1 -1
  28. package/dist/development/{route-data-B3sNokxM.d.mts → route-data-DAVP2QQ0.d.mts} +2 -2
  29. package/dist/development/{routeModules-DRWHoPcT.d.ts → routeModules-rOzWJJ9x.d.ts} +4 -3
  30. package/dist/{development/chunk-UMVNFWBW.js → production/chunk-JNT5PWCQ.js} +131 -131
  31. package/dist/{development/chunk-RVSOEW4N.mjs → production/chunk-KWHRV2I7.mjs} +2 -2
  32. package/dist/production/{chunk-O46NJYOA.mjs → chunk-REDRD2MB.mjs} +4 -5
  33. package/dist/production/{chunk-NCRSBAFG.js → chunk-Z56HUDN5.js} +3 -4
  34. package/dist/production/{context-D5hQ2yCL.d.mts → context-jKip1TFB.d.mts} +3 -2
  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-C4AMmMi3.d.ts → production/index-react-server-client-BKpa2trA.d.ts} +1 -1
  39. package/dist/{development/index-react-server-client-DgVbd8DS.d.mts → production/index-react-server-client-DRhjXpk2.d.mts} +2 -2
  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.d.mts +3 -2
  45. package/dist/production/index-react-server.d.ts +3 -2
  46. package/dist/production/index-react-server.js +24 -9
  47. package/dist/production/index-react-server.mjs +24 -9
  48. package/dist/production/index.d.mts +6 -6
  49. package/dist/production/index.d.ts +4 -4
  50. package/dist/production/index.js +95 -95
  51. package/dist/production/index.mjs +3 -3
  52. package/dist/production/lib/types/internal.d.mts +2 -2
  53. package/dist/production/lib/types/internal.d.ts +1 -1
  54. package/dist/production/lib/types/internal.js +1 -1
  55. package/dist/production/lib/types/internal.mjs +1 -1
  56. package/dist/production/{route-data-B3sNokxM.d.mts → route-data-DAVP2QQ0.d.mts} +2 -2
  57. package/dist/production/{routeModules-DRWHoPcT.d.ts → routeModules-rOzWJJ9x.d.ts} +4 -3
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.8.2-pre.0
2
+ * react-router v7.8.2
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-4HHN5NDL.mjs";
34
+ } from "./chunk-KWHRV2I7.mjs";
35
35
  import {
36
36
  Action,
37
37
  Await,
@@ -140,7 +140,7 @@ import {
140
140
  withComponentProps,
141
141
  withErrorBoundaryProps,
142
142
  withHydrateFallbackProps
143
- } from "./chunk-O46NJYOA.mjs";
143
+ } from "./chunk-REDRD2MB.mjs";
144
144
  export {
145
145
  Await,
146
146
  BrowserRouter,
@@ -1,5 +1,5 @@
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-B3sNokxM.mjs';
2
- import { L as Location, b as unstable_MiddlewareNextFunction, D as DataStrategyResult } from '../../context-D5hQ2yCL.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-DAVP2QQ0.mjs';
2
+ import { L as Location, b as unstable_MiddlewareNextFunction, D as DataStrategyResult } from '../../context-jKip1TFB.mjs';
3
3
  import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.mjs';
4
4
  import 'react';
5
5
 
@@ -1,4 +1,4 @@
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, u as unstable_MiddlewareNextFunction, C as ClientDataFunctionArgs, D as DataStrategyResult, b as ServerDataFrom, N as Normalize, c as GetActionData } from '../../routeModules-DRWHoPcT.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, u as unstable_MiddlewareNextFunction, C as ClientDataFunctionArgs, D as DataStrategyResult, b as ServerDataFrom, N as Normalize, c as GetActionData } from '../../routeModules-rOzWJJ9x.js';
2
2
  import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.js';
3
3
  import 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v7.8.2-pre.0
2
+ * react-router v7.8.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.8.2-pre.0
2
+ * react-router v7.8.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, ReactElement } from 'react';
2
- import { A as ActionFunctionArgs, c as LoaderFunctionArgs, d as ActionFunction, e as LoaderFunction, P as Params, L as Location, f as DataRouteMatch, g as unstable_MiddlewareFunction, S as ShouldRevalidateFunction, h as unstable_RouterContextProvider, i as DataWithResponseInit, M as MiddlewareEnabled } from './context-D5hQ2yCL.mjs';
2
+ import { A as ActionFunctionArgs, c as LoaderFunctionArgs, d as ActionFunction, e as LoaderFunction, P as Params, L as Location, f as DataRouteMatch, g as unstable_MiddlewareFunction, D as DataStrategyResult, S as ShouldRevalidateFunction, h as unstable_RouterContextProvider, i as DataWithResponseInit, M as MiddlewareEnabled } from './context-jKip1TFB.mjs';
3
3
 
4
4
  /**
5
5
  * An object of unknown type for route loaders and actions provided by the
@@ -130,7 +130,7 @@ interface RouteModules {
130
130
  interface RouteModule$1 {
131
131
  clientAction?: ClientActionFunction;
132
132
  clientLoader?: ClientLoaderFunction;
133
- unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
133
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<Record<string, DataStrategyResult>>[];
134
134
  ErrorBoundary?: ErrorBoundaryComponent;
135
135
  HydrateFallback?: HydrateFallbackComponent;
136
136
  Layout?: LayoutComponent;
@@ -1300,7 +1300,6 @@ type HydrationState = Partial<Pick<RouterState, "loaderData" | "actionData" | "e
1300
1300
  * Future flags to toggle new feature behavior
1301
1301
  */
1302
1302
  interface FutureConfig {
1303
- unstable_middleware: boolean;
1304
1303
  }
1305
1304
  /**
1306
1305
  * Initialization options for createRouter
@@ -1344,7 +1343,9 @@ interface StaticHandler {
1344
1343
  skipLoaderErrorBubbling?: boolean;
1345
1344
  skipRevalidation?: boolean;
1346
1345
  dataStrategy?: DataStrategyFunction<unknown>;
1347
- unstable_generateMiddlewareResponse?: (query: (r: Request) => Promise<StaticHandlerContext | Response>) => MaybePromise<Response>;
1346
+ unstable_generateMiddlewareResponse?: (query: (r: Request, args?: {
1347
+ filterMatchesToLoad?: (match: AgnosticDataRouteMatch) => boolean;
1348
+ }) => Promise<StaticHandlerContext | Response>) => MaybePromise<Response>;
1348
1349
  }): Promise<StaticHandlerContext | Response>;
1349
1350
  queryRoute(request: Request, opts?: {
1350
1351
  routeId?: string;
@@ -2809,7 +2810,7 @@ interface RouteModules {
2809
2810
  interface RouteModule {
2810
2811
  clientAction?: ClientActionFunction;
2811
2812
  clientLoader?: ClientLoaderFunction;
2812
- unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
2813
+ unstable_clientMiddleware?: unstable_MiddlewareFunction<Record<string, DataStrategyResult>>[];
2813
2814
  ErrorBoundary?: ErrorBoundaryComponent;
2814
2815
  HydrateFallback?: HydrateFallbackComponent;
2815
2816
  Layout?: LayoutComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "7.8.2-pre.0",
3
+ "version": "7.8.2",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",