react-router 7.8.2 → 7.9.0-pre.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/development/{chunk-5UALIXAM.mjs → chunk-3TJX7VNY.mjs} +93 -57
  3. package/dist/development/{chunk-CSDGKXLR.js → chunk-4J2JOVAI.js} +135 -135
  4. package/dist/development/{chunk-PVWAREVJ.mjs → chunk-EAIS2CTK.mjs} +43 -44
  5. package/dist/development/{chunk-ZO66TDGB.js → chunk-ECJT65VE.js} +37 -38
  6. package/dist/{production/context-jKip1TFB.d.mts → development/context-BH6Jwdoy.d.mts} +39 -32
  7. package/dist/development/dom-export.d.mts +3 -3
  8. package/dist/development/dom-export.d.ts +2 -2
  9. package/dist/development/dom-export.js +14 -14
  10. package/dist/development/dom-export.mjs +14 -14
  11. package/dist/development/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  12. package/dist/{production/index-react-server-client-BKpa2trA.d.ts → development/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  13. package/dist/development/index-react-server-client.d.mts +3 -3
  14. package/dist/development/index-react-server-client.d.ts +2 -2
  15. package/dist/development/index-react-server-client.js +4 -4
  16. package/dist/development/index-react-server-client.mjs +4 -4
  17. package/dist/development/index-react-server.d.mts +229 -37
  18. package/dist/development/index-react-server.d.ts +229 -37
  19. package/dist/development/index-react-server.js +89 -39
  20. package/dist/development/index-react-server.mjs +88 -36
  21. package/dist/development/index.d.mts +31 -24
  22. package/dist/development/index.d.ts +29 -22
  23. package/dist/development/index.js +182 -144
  24. package/dist/development/index.mjs +9 -7
  25. package/dist/development/lib/types/internal.d.mts +6 -6
  26. package/dist/development/lib/types/internal.d.ts +5 -5
  27. package/dist/development/lib/types/internal.js +1 -1
  28. package/dist/development/lib/types/internal.mjs +1 -1
  29. package/dist/development/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  30. package/dist/development/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  31. package/dist/production/{chunk-REDRD2MB.mjs → chunk-47NS5WEV.mjs} +43 -44
  32. package/dist/production/{chunk-JNT5PWCQ.js → chunk-CSESPFUI.js} +135 -135
  33. package/dist/production/{chunk-Z56HUDN5.js → chunk-LQAK2UKE.js} +37 -38
  34. package/dist/production/{chunk-KWHRV2I7.mjs → chunk-SCSBSW2J.mjs} +93 -57
  35. package/dist/{development/context-jKip1TFB.d.mts → production/context-BH6Jwdoy.d.mts} +39 -32
  36. package/dist/production/dom-export.d.mts +3 -3
  37. package/dist/production/dom-export.d.ts +2 -2
  38. package/dist/production/dom-export.js +14 -14
  39. package/dist/production/dom-export.mjs +14 -14
  40. package/dist/production/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  41. package/dist/{development/index-react-server-client-BKpa2trA.d.ts → production/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  42. package/dist/production/index-react-server-client.d.mts +3 -3
  43. package/dist/production/index-react-server-client.d.ts +2 -2
  44. package/dist/production/index-react-server-client.js +4 -4
  45. package/dist/production/index-react-server-client.mjs +4 -4
  46. package/dist/production/index-react-server.d.mts +229 -37
  47. package/dist/production/index-react-server.d.ts +229 -37
  48. package/dist/production/index-react-server.js +89 -39
  49. package/dist/production/index-react-server.mjs +88 -36
  50. package/dist/production/index.d.mts +31 -24
  51. package/dist/production/index.d.ts +29 -22
  52. package/dist/production/index.js +182 -144
  53. package/dist/production/index.mjs +9 -7
  54. package/dist/production/lib/types/internal.d.mts +6 -6
  55. package/dist/production/lib/types/internal.d.ts +5 -5
  56. package/dist/production/lib/types/internal.js +1 -1
  57. package/dist/production/lib/types/internal.mjs +1 -1
  58. package/dist/production/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  59. package/dist/production/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  60. package/package.json +1 -1
@@ -212,7 +212,7 @@ type UrlHistoryOptions = {
212
212
  interface Future {
213
213
  }
214
214
  type MiddlewareEnabled = Future extends {
215
- unstable_middleware: infer T extends boolean;
215
+ middleware: infer T extends boolean;
216
216
  } ? T : false;
217
217
 
218
218
  type MaybePromise<T> = T | Promise<T>;
@@ -272,14 +272,14 @@ type Submission = {
272
272
  };
273
273
  /**
274
274
  * A context instance used as the key for the `get`/`set` methods of a
275
- * {@link unstable_RouterContextProvider}. Accepts an optional default
275
+ * {@link RouterContextProvider}. Accepts an optional default
276
276
  * value to be returned if no value has been set.
277
277
  */
278
- interface unstable_RouterContext<T = unknown> {
278
+ interface RouterContext<T = unknown> {
279
279
  defaultValue?: T;
280
280
  }
281
281
  /**
282
- * Creates a type-safe {@link unstable_RouterContext} object that can be used to
282
+ * Creates a type-safe {@link RouterContext} object that can be used to
283
283
  * store and retrieve arbitrary values in [`action`](../../start/framework/route-module#action)s,
284
284
  * [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
285
285
  * Similar to React's [`createContext`](https://react.dev/reference/react/createContext),
@@ -290,11 +290,11 @@ interface unstable_RouterContext<T = unknown> {
290
290
  * when no value has been set will throw an error.
291
291
  *
292
292
  * ```tsx filename=app/context.ts
293
- * import { unstable_createContext } from "react-router";
293
+ * import { createContext } from "react-router";
294
294
  *
295
295
  * // Create a context for user data
296
296
  * export const userContext =
297
- * unstable_createContext<User | null>(null);
297
+ * createContext<User | null>(null);
298
298
  * ```
299
299
  *
300
300
  * ```tsx filename=app/middleware/auth.ts
@@ -332,23 +332,23 @@ interface unstable_RouterContext<T = unknown> {
332
332
  * @mode data
333
333
  * @param defaultValue An optional default value for the context. This value
334
334
  * will be returned if no value has been set for this context.
335
- * @returns A {@link unstable_RouterContext} object that can be used with
335
+ * @returns A {@link RouterContext} object that can be used with
336
336
  * `context.get()` and `context.set()` in [`action`](../../start/framework/route-module#action)s,
337
337
  * [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
338
338
  */
339
- declare function unstable_createContext<T>(defaultValue?: T): unstable_RouterContext<T>;
339
+ declare function createContext<T>(defaultValue?: T): RouterContext<T>;
340
340
  /**
341
341
  * Provides methods for writing/reading values in application context in a
342
342
  * type-safe way. Primarily for usage with [middleware](../../how-to/middleware).
343
343
  *
344
344
  * @example
345
345
  * import {
346
- * unstable_createContext,
347
- * unstable_RouterContextProvider
346
+ * createContext,
347
+ * RouterContextProvider
348
348
  * } from "react-router";
349
349
  *
350
- * const userContext = unstable_createContext<User | null>(null);
351
- * const contextProvider = new unstable_RouterContextProvider();
350
+ * const userContext = createContext<User | null>(null);
351
+ * const contextProvider = new RouterContextProvider();
352
352
  * contextProvider.set(userContext, getUser());
353
353
  * // ^ Type-safe
354
354
  * const user = contextProvider.get(userContext);
@@ -359,13 +359,13 @@ declare function unstable_createContext<T>(defaultValue?: T): unstable_RouterCon
359
359
  * @mode framework
360
360
  * @mode data
361
361
  */
362
- declare class unstable_RouterContextProvider {
362
+ declare class RouterContextProvider {
363
363
  #private;
364
364
  /**
365
- * Create a new `unstable_RouterContextProvider` instance
365
+ * Create a new `RouterContextProvider` instance
366
366
  * @param init An optional initial context map to populate the provider with
367
367
  */
368
- constructor(init?: Map<unstable_RouterContext, unknown>);
368
+ constructor(init?: Map<RouterContext, unknown>);
369
369
  /**
370
370
  * Access a value from the context. If no value has been set for the context,
371
371
  * it will return the context's `defaultValue` if provided, or throw an error
@@ -374,7 +374,7 @@ declare class unstable_RouterContextProvider {
374
374
  * @returns The value for the context, or the context's `defaultValue` if no
375
375
  * value was set
376
376
  */
377
- get<T>(context: unstable_RouterContext<T>): T;
377
+ get<T>(context: RouterContext<T>): T;
378
378
  /**
379
379
  * Set a value for the context. If the context already has a value set, this
380
380
  * will overwrite it.
@@ -383,9 +383,9 @@ declare class unstable_RouterContextProvider {
383
383
  * @param value The value to set for the context
384
384
  * @returns {void}
385
385
  */
386
- set<C extends unstable_RouterContext>(context: C, value: C extends unstable_RouterContext<infer T> ? T : never): void;
386
+ set<C extends RouterContext>(context: C, value: C extends RouterContext<infer T> ? T : never): void;
387
387
  }
388
- type DefaultContext = MiddlewareEnabled extends true ? Readonly<unstable_RouterContextProvider> : any;
388
+ type DefaultContext = MiddlewareEnabled extends true ? Readonly<RouterContextProvider> : any;
389
389
  /**
390
390
  * @private
391
391
  * Arguments passed to route loader/action functions. Same for now but we keep
@@ -420,7 +420,7 @@ interface DataFunctionArgs<Context> {
420
420
  * Route middleware `next` function to call downstream handlers and then complete
421
421
  * middlewares from the bottom-up
422
422
  */
423
- interface unstable_MiddlewareNextFunction<Result = unknown> {
423
+ interface MiddlewareNextFunction<Result = unknown> {
424
424
  (): Promise<Result>;
425
425
  }
426
426
  /**
@@ -429,7 +429,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
429
429
  * a `next` function as the second parameter which will call downstream handlers
430
430
  * and then complete middlewares from the bottom-up
431
431
  */
432
- type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<Readonly<unstable_RouterContextProvider>>, next: unstable_MiddlewareNextFunction<Result>) => MaybePromise<Result | void>;
432
+ type MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<Readonly<RouterContextProvider>>, next: MiddlewareNextFunction<Result>) => MaybePromise<Result | void>;
433
433
  /**
434
434
  * Arguments passed to loader functions
435
435
  */
@@ -584,7 +584,7 @@ interface DataStrategyFunctionArgs<Context = DefaultContext> extends DataFunctio
584
584
  * Matches for this route extended with Data strategy APIs
585
585
  */
586
586
  matches: DataStrategyMatch[];
587
- unstable_runClientMiddleware: (cb: DataStrategyFunction<Context>) => Promise<Record<string, DataStrategyResult>>;
587
+ runClientMiddleware: (cb: DataStrategyFunction<Context>) => Promise<Record<string, DataStrategyResult>>;
588
588
  /**
589
589
  * The key of the fetcher we are calling `dataStrategy` for, otherwise `null`
590
590
  * for navigational executions
@@ -629,7 +629,7 @@ type UnsupportedLazyRouteObjectKey = "lazy" | "caseSensitive" | "path" | "id" |
629
629
  * onto the route. Either they're meaningful to the router, or they'll get
630
630
  * ignored.
631
631
  */
632
- type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "unstable_middleware";
632
+ type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "middleware";
633
633
  /**
634
634
  * lazy object to load route properties, which can add non-matching
635
635
  * related properties to a route
@@ -652,7 +652,7 @@ type AgnosticBaseRouteObject = {
652
652
  caseSensitive?: boolean;
653
653
  path?: string;
654
654
  id?: string;
655
- unstable_middleware?: unstable_MiddlewareFunction[];
655
+ middleware?: MiddlewareFunction[];
656
656
  loader?: LoaderFunction | boolean;
657
657
  action?: ActionFunction | boolean;
658
658
  hasErrorBoundary?: boolean;
@@ -902,6 +902,11 @@ declare class DataWithResponseInit<D> {
902
902
  * response init.
903
903
  */
904
904
  declare function data<D>(data: D, init?: number | ResponseInit): DataWithResponseInit<D>;
905
+ interface TrackedPromise extends Promise<any> {
906
+ _tracked?: boolean;
907
+ _data?: any;
908
+ _error?: any;
909
+ }
905
910
  type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
906
911
  /**
907
912
  * A redirect [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response).
@@ -1307,7 +1312,7 @@ interface RouterInit {
1307
1312
  routes: AgnosticRouteObject[];
1308
1313
  history: History;
1309
1314
  basename?: string;
1310
- unstable_getContext?: () => MaybePromise<unstable_RouterContextProvider>;
1315
+ getContext?: () => MaybePromise<RouterContextProvider>;
1311
1316
  mapRouteProperties?: MapRoutePropertiesFunction;
1312
1317
  future?: Partial<FutureConfig>;
1313
1318
  hydrationRouteProperties?: string[];
@@ -1342,7 +1347,7 @@ interface StaticHandler {
1342
1347
  skipLoaderErrorBubbling?: boolean;
1343
1348
  skipRevalidation?: boolean;
1344
1349
  dataStrategy?: DataStrategyFunction<unknown>;
1345
- unstable_generateMiddlewareResponse?: (query: (r: Request, args?: {
1350
+ generateMiddlewareResponse?: (query: (r: Request, args?: {
1346
1351
  filterMatchesToLoad?: (match: AgnosticDataRouteMatch) => boolean;
1347
1352
  }) => Promise<StaticHandlerContext | Response>) => MaybePromise<Response>;
1348
1353
  }): Promise<StaticHandlerContext | Response>;
@@ -1350,7 +1355,7 @@ interface StaticHandler {
1350
1355
  routeId?: string;
1351
1356
  requestContext?: unknown;
1352
1357
  dataStrategy?: DataStrategyFunction<unknown>;
1353
- unstable_generateMiddlewareResponse?: (queryRoute: (r: Request) => Promise<Response>) => MaybePromise<Response>;
1358
+ generateMiddlewareResponse?: (queryRoute: (r: Request) => Promise<Response>) => MaybePromise<Response>;
1354
1359
  }): Promise<any>;
1355
1360
  }
1356
1361
  type ViewTransitionOpts = {
@@ -1597,13 +1602,13 @@ interface MemoryRouterOpts {
1597
1602
  */
1598
1603
  basename?: string;
1599
1604
  /**
1600
- * A function that returns an {@link unstable_RouterContextProvider} instance
1605
+ * A function that returns an {@link RouterContextProvider} instance
1601
1606
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
1602
1607
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1603
1608
  * This function is called to generate a fresh `context` instance on each
1604
1609
  * navigation or fetcher call.
1605
1610
  */
1606
- unstable_getContext?: RouterInit["unstable_getContext"];
1611
+ getContext?: RouterInit["getContext"];
1607
1612
  /**
1608
1613
  * Future flags to enable for the router.
1609
1614
  */
@@ -1644,7 +1649,7 @@ interface MemoryRouterOpts {
1644
1649
  * @param {MemoryRouterOpts.basename} opts.basename n/a
1645
1650
  * @param {MemoryRouterOpts.dataStrategy} opts.dataStrategy n/a
1646
1651
  * @param {MemoryRouterOpts.future} opts.future n/a
1647
- * @param {MemoryRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1652
+ * @param {MemoryRouterOpts.getContext} opts.getContext n/a
1648
1653
  * @param {MemoryRouterOpts.hydrationData} opts.hydrationData n/a
1649
1654
  * @param {MemoryRouterOpts.initialEntries} opts.initialEntries n/a
1650
1655
  * @param {MemoryRouterOpts.initialIndex} opts.initialIndex n/a
@@ -2424,7 +2429,7 @@ interface IndexRouteObject {
2424
2429
  caseSensitive?: AgnosticIndexRouteObject["caseSensitive"];
2425
2430
  path?: AgnosticIndexRouteObject["path"];
2426
2431
  id?: AgnosticIndexRouteObject["id"];
2427
- unstable_middleware?: AgnosticIndexRouteObject["unstable_middleware"];
2432
+ middleware?: AgnosticIndexRouteObject["middleware"];
2428
2433
  loader?: AgnosticIndexRouteObject["loader"];
2429
2434
  action?: AgnosticIndexRouteObject["action"];
2430
2435
  hasErrorBoundary?: AgnosticIndexRouteObject["hasErrorBoundary"];
@@ -2444,7 +2449,7 @@ interface NonIndexRouteObject {
2444
2449
  caseSensitive?: AgnosticNonIndexRouteObject["caseSensitive"];
2445
2450
  path?: AgnosticNonIndexRouteObject["path"];
2446
2451
  id?: AgnosticNonIndexRouteObject["id"];
2447
- unstable_middleware?: AgnosticNonIndexRouteObject["unstable_middleware"];
2452
+ middleware?: AgnosticNonIndexRouteObject["middleware"];
2448
2453
  loader?: AgnosticNonIndexRouteObject["loader"];
2449
2454
  action?: AgnosticNonIndexRouteObject["action"];
2450
2455
  hasErrorBoundary?: AgnosticNonIndexRouteObject["hasErrorBoundary"];
@@ -2489,6 +2494,8 @@ type ViewTransitionContextObject = {
2489
2494
  declare const ViewTransitionContext: React.Context<ViewTransitionContextObject>;
2490
2495
  type FetchersContextObject = Map<string, any>;
2491
2496
  declare const FetchersContext: React.Context<FetchersContextObject>;
2497
+ declare const AwaitContext: React.Context<TrackedPromise | null>;
2498
+ declare const AwaitContextProvider: (props: React.ComponentProps<typeof AwaitContext.Provider>) => React.FunctionComponentElement<React.ProviderProps<TrackedPromise | null>>;
2492
2499
  interface NavigateOptions {
2493
2500
  /** Replace the current entry in the history stack instead of pushing a new one */
2494
2501
  replace?: boolean;
@@ -2538,4 +2545,4 @@ interface RouteContextObject {
2538
2545
  }
2539
2546
  declare const RouteContext: React.Context<RouteContextObject>;
2540
2547
 
2541
- export { type DataStrategyMatch as $, type ActionFunctionArgs as A, type BlockerFunction as B, type PatchRoutesOnNavigationFunction as C, type DataStrategyResult as D, type ErrorBoundaryType as E, type DataRouteObject as F, type StaticHandler as G, type HydrationState as H, type InitialEntry as I, type GetScrollPositionFunction as J, type GetScrollRestorationKeyFunction as K, type Location as L, type MiddlewareEnabled as M, type NavigateOptions as N, type StaticHandlerContext as O, type Params as P, type Fetcher as Q, type RouterProviderProps as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type NavigationStates as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type RevalidationState as Z, type DataStrategyFunctionArgs as _, type RouterInit as a, mapRouteProperties as a$, type ErrorResponse as a0, type FormEncType as a1, type FormMethod as a2, type HTMLFormMethod as a3, type LazyRouteFunction as a4, type PathParam as a5, type RedirectFunction as a6, type unstable_RouterContext as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type RouterProps as aA, type RoutesProps as aB, Await as aC, MemoryRouter as aD, Navigate as aE, Outlet as aF, Route as aG, Router as aH, RouterProvider as aI, Routes as aJ, createMemoryRouter as aK, createRoutesFromChildren as aL, createRoutesFromElements as aM, renderMatches as aN, type Future as aO, createBrowserHistory as aP, invariant as aQ, createRouter as aR, ErrorResponseImpl as aS, DataRouterContext as aT, DataRouterStateContext as aU, FetchersContext as aV, LocationContext as aW, NavigationContext as aX, RouteContext as aY, ViewTransitionContext as aZ, hydrationRouteProperties as a_, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type Navigator as ao, type PatchRoutesOnNavigationFunctionArgs as ap, type RouteMatch as aq, type AwaitProps as ar, type IndexRouteProps as as, type LayoutRouteProps as at, type MemoryRouterOpts as au, type MemoryRouterProps as av, type NavigateProps as aw, type OutletProps as ax, type PathRouteProps as ay, type RouteProps as az, type unstable_MiddlewareNextFunction as b, WithComponentProps as b0, withComponentProps as b1, WithHydrateFallbackProps as b2, withHydrateFallbackProps as b3, WithErrorBoundaryProps as b4, withErrorBoundaryProps as b5, type RouteManifest as b6, type History as b7, type FutureConfig as b8, type CreateStaticHandlerOptions as b9, type LoaderFunctionArgs as c, type ActionFunction as d, type LoaderFunction as e, type DataRouteMatch as f, type unstable_MiddlewareFunction as g, unstable_RouterContextProvider as h, DataWithResponseInit as i, type Router$1 as j, type DataStrategyFunction as k, type Blocker as l, type RelativeRoutingType as m, type ParamParseKey as n, type Path as o, type PathPattern as p, type PathMatch as q, type Navigation as r, Action as s, type RouteObject as t, type unstable_ClientOnErrorFunction as u, type IndexRouteObject as v, type RouteComponentType as w, type HydrateFallbackType as x, type NonIndexRouteObject as y, type RouterState as z };
2548
+ export { type DataStrategyMatch as $, type ActionFunctionArgs as A, type BlockerFunction as B, type PatchRoutesOnNavigationFunction as C, type DataStrategyResult as D, type ErrorBoundaryType as E, type DataRouteObject as F, type StaticHandler as G, type HydrationState as H, type InitialEntry as I, type GetScrollPositionFunction as J, type GetScrollRestorationKeyFunction as K, type Location as L, type MiddlewareNextFunction as M, type NavigateOptions as N, type StaticHandlerContext as O, type Params as P, type Fetcher as Q, type RouterProviderProps as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type NavigationStates as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type RevalidationState as Z, type DataStrategyFunctionArgs as _, type RouterInit as a, hydrationRouteProperties as a$, type ErrorResponse as a0, type FormEncType as a1, type FormMethod as a2, type HTMLFormMethod as a3, type LazyRouteFunction as a4, type PathParam as a5, type RedirectFunction as a6, type RouterContext as a7, type ShouldRevalidateFunctionArgs as a8, createContext as a9, type RouteProps as aA, type RouterProps as aB, type RoutesProps as aC, Await as aD, MemoryRouter as aE, Navigate as aF, Outlet as aG, Route as aH, Router as aI, RouterProvider as aJ, Routes as aK, createMemoryRouter as aL, createRoutesFromChildren as aM, createRoutesFromElements as aN, renderMatches as aO, type Future as aP, createBrowserHistory as aQ, invariant as aR, createRouter as aS, ErrorResponseImpl as aT, DataRouterContext as aU, DataRouterStateContext as aV, FetchersContext as aW, LocationContext as aX, NavigationContext as aY, RouteContext as aZ, ViewTransitionContext as a_, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type Navigator as ao, type PatchRoutesOnNavigationFunctionArgs as ap, type RouteMatch as aq, AwaitContextProvider as ar, type AwaitProps as as, type IndexRouteProps as at, type LayoutRouteProps as au, type MemoryRouterOpts as av, type MemoryRouterProps as aw, type NavigateProps as ax, type OutletProps as ay, type PathRouteProps as az, type LoaderFunctionArgs as b, mapRouteProperties as b0, WithComponentProps as b1, withComponentProps as b2, WithHydrateFallbackProps as b3, withHydrateFallbackProps as b4, WithErrorBoundaryProps as b5, withErrorBoundaryProps as b6, type RouteManifest as b7, type History as b8, type FutureConfig as b9, type CreateStaticHandlerOptions as ba, type ActionFunction as c, type LoaderFunction as d, type DataRouteMatch as e, type MiddlewareFunction as f, RouterContextProvider as g, DataWithResponseInit as h, type MiddlewareEnabled as i, type Router$1 as j, type DataStrategyFunction as k, type Blocker as l, type RelativeRoutingType as m, type ParamParseKey as n, type Path as o, type PathPattern as p, type PathMatch as q, type Navigation as r, Action as s, type RouteObject as t, type unstable_ClientOnErrorFunction as u, type IndexRouteObject as v, type RouteComponentType as w, type HydrateFallbackType as x, type NonIndexRouteObject as y, type RouterState as z };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-jKip1TFB.mjs';
2
+ import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-BH6Jwdoy.mjs';
3
3
  import './browser-z32v5KVN.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
@@ -17,7 +17,7 @@ interface HydratedRouterProps {
17
17
  * [`clientAction`](../../start/framework/route-module#clientAction)/[`clientLoader`](../../start/framework/route-module#clientLoader)
18
18
  * functions
19
19
  */
20
- unstable_getContext?: RouterInit["unstable_getContext"];
20
+ getContext?: RouterInit["getContext"];
21
21
  /**
22
22
  * An error handler function that will be called for any loader/action/render
23
23
  * errors that are encountered in your application. This is useful for
@@ -45,7 +45,7 @@ interface HydratedRouterProps {
45
45
  * @category Framework Routers
46
46
  * @mode framework
47
47
  * @param props Props
48
- * @param {dom.HydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
48
+ * @param {dom.HydratedRouterProps.getContext} props.getContext n/a
49
49
  * @param {dom.HydratedRouterProps.unstable_onError} props.unstable_onError n/a
50
50
  * @returns A React element that represents the hydrated application.
51
51
  */
@@ -16,7 +16,7 @@ interface HydratedRouterProps {
16
16
  * [`clientAction`](../../start/framework/route-module#clientAction)/[`clientLoader`](../../start/framework/route-module#clientLoader)
17
17
  * functions
18
18
  */
19
- unstable_getContext?: RouterInit["unstable_getContext"];
19
+ getContext?: RouterInit["getContext"];
20
20
  /**
21
21
  * An error handler function that will be called for any loader/action/render
22
22
  * errors that are encountered in your application. This is useful for
@@ -44,7 +44,7 @@ interface HydratedRouterProps {
44
44
  * @category Framework Routers
45
45
  * @mode framework
46
46
  * @param props Props
47
- * @param {dom.HydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
47
+ * @param {dom.HydratedRouterProps.getContext} props.getContext n/a
48
48
  * @param {dom.HydratedRouterProps.unstable_onError} props.unstable_onError n/a
49
49
  * @returns A React element that represents the hydrated application.
50
50
  */
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,7 +11,7 @@
11
11
  "use client";
12
12
 
13
13
 
14
- var _chunkZO66TDGBjs = require('./chunk-ZO66TDGB.js');
14
+ var _chunkECJT65VEjs = require('./chunk-ECJT65VE.js');
15
15
 
16
16
  // lib/dom-export/dom-router-provider.tsx
17
17
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
@@ -67,7 +67,7 @@ function initSsrInfo() {
67
67
  }
68
68
  }
69
69
  function createHydratedRouter({
70
- unstable_getContext
70
+ getContext
71
71
  }) {
72
72
  initSsrInfo();
73
73
  if (!ssrInfo) {
@@ -111,18 +111,18 @@ function createHydratedRouter({
111
111
  };
112
112
  }
113
113
  } else {
114
- hydrationData = _reactrouter.UNSAFE_getHydrationData.call(void 0,
115
- ssrInfo.context.state,
114
+ hydrationData = _reactrouter.UNSAFE_getHydrationData.call(void 0, {
115
+ state: ssrInfo.context.state,
116
116
  routes,
117
- (routeId) => ({
117
+ getRouteInfo: (routeId) => ({
118
118
  clientLoader: _optionalChain([ssrInfo, 'access', _6 => _6.routeModules, 'access', _7 => _7[routeId], 'optionalAccess', _8 => _8.clientLoader]),
119
119
  hasLoader: _optionalChain([ssrInfo, 'access', _9 => _9.manifest, 'access', _10 => _10.routes, 'access', _11 => _11[routeId], 'optionalAccess', _12 => _12.hasLoader]) === true,
120
120
  hasHydrateFallback: _optionalChain([ssrInfo, 'access', _13 => _13.routeModules, 'access', _14 => _14[routeId], 'optionalAccess', _15 => _15.HydrateFallback]) != null
121
121
  }),
122
- window.location,
123
- _optionalChain([window, 'access', _16 => _16.__reactRouterContext, 'optionalAccess', _17 => _17.basename]),
124
- ssrInfo.context.isSpaMode
125
- );
122
+ location: window.location,
123
+ basename: _optionalChain([window, 'access', _16 => _16.__reactRouterContext, 'optionalAccess', _17 => _17.basename]),
124
+ isSpaMode: ssrInfo.context.isSpaMode
125
+ });
126
126
  if (hydrationData && hydrationData.errors) {
127
127
  hydrationData.errors = _reactrouter.UNSAFE_deserializeErrors.call(void 0, hydrationData.errors);
128
128
  }
@@ -131,12 +131,12 @@ function createHydratedRouter({
131
131
  routes,
132
132
  history: _reactrouter.UNSAFE_createBrowserHistory.call(void 0, ),
133
133
  basename: ssrInfo.context.basename,
134
- unstable_getContext,
134
+ getContext,
135
135
  hydrationData,
136
136
  hydrationRouteProperties: _reactrouter.UNSAFE_hydrationRouteProperties,
137
137
  mapRouteProperties: _reactrouter.UNSAFE_mapRouteProperties,
138
138
  future: {
139
- unstable_middleware: ssrInfo.context.future.unstable_middleware
139
+ middleware: ssrInfo.context.future.v8_middleware
140
140
  },
141
141
  dataStrategy: _reactrouter.UNSAFE_getTurboStreamSingleFetchDataStrategy.call(void 0,
142
142
  () => router2,
@@ -167,7 +167,7 @@ function createHydratedRouter({
167
167
  function HydratedRouter(props) {
168
168
  if (!router) {
169
169
  router = createHydratedRouter({
170
- unstable_getContext: props.unstable_getContext
170
+ getContext: props.getContext
171
171
  });
172
172
  }
173
173
  let [criticalCss, setCriticalCss] = React2.useState(
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
180
180
  }, []);
181
181
  React2.useEffect(() => {
182
182
  if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
183
- document.querySelectorAll(`[${_chunkZO66TDGBjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
183
+ document.querySelectorAll(`[${_chunkECJT65VEjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
184
184
  }
185
185
  }, [criticalCss]);
186
186
  let [location, setLocation] = React2.useState(router.state.location);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -12,7 +12,7 @@
12
12
  import {
13
13
  deserializeErrors,
14
14
  getHydrationData
15
- } from "./chunk-5UALIXAM.mjs";
15
+ } from "./chunk-3TJX7VNY.mjs";
16
16
  import {
17
17
  CRITICAL_CSS_DATA_ATTRIBUTE,
18
18
  FrameworkContext,
@@ -29,7 +29,7 @@ import {
29
29
  invariant,
30
30
  mapRouteProperties,
31
31
  useFogOFWarDiscovery
32
- } from "./chunk-PVWAREVJ.mjs";
32
+ } from "./chunk-EAIS2CTK.mjs";
33
33
 
34
34
  // lib/dom-export/dom-router-provider.tsx
35
35
  import * as React from "react";
@@ -67,7 +67,7 @@ function initSsrInfo() {
67
67
  }
68
68
  }
69
69
  function createHydratedRouter({
70
- unstable_getContext
70
+ getContext
71
71
  }) {
72
72
  initSsrInfo();
73
73
  if (!ssrInfo) {
@@ -111,18 +111,18 @@ function createHydratedRouter({
111
111
  };
112
112
  }
113
113
  } else {
114
- hydrationData = getHydrationData(
115
- ssrInfo.context.state,
114
+ hydrationData = getHydrationData({
115
+ state: ssrInfo.context.state,
116
116
  routes,
117
- (routeId) => ({
117
+ getRouteInfo: (routeId) => ({
118
118
  clientLoader: ssrInfo.routeModules[routeId]?.clientLoader,
119
119
  hasLoader: ssrInfo.manifest.routes[routeId]?.hasLoader === true,
120
120
  hasHydrateFallback: ssrInfo.routeModules[routeId]?.HydrateFallback != null
121
121
  }),
122
- window.location,
123
- window.__reactRouterContext?.basename,
124
- ssrInfo.context.isSpaMode
125
- );
122
+ location: window.location,
123
+ basename: window.__reactRouterContext?.basename,
124
+ isSpaMode: ssrInfo.context.isSpaMode
125
+ });
126
126
  if (hydrationData && hydrationData.errors) {
127
127
  hydrationData.errors = deserializeErrors(hydrationData.errors);
128
128
  }
@@ -131,12 +131,12 @@ function createHydratedRouter({
131
131
  routes,
132
132
  history: createBrowserHistory(),
133
133
  basename: ssrInfo.context.basename,
134
- unstable_getContext,
134
+ getContext,
135
135
  hydrationData,
136
136
  hydrationRouteProperties,
137
137
  mapRouteProperties,
138
138
  future: {
139
- unstable_middleware: ssrInfo.context.future.unstable_middleware
139
+ middleware: ssrInfo.context.future.v8_middleware
140
140
  },
141
141
  dataStrategy: getTurboStreamSingleFetchDataStrategy(
142
142
  () => router2,
@@ -167,7 +167,7 @@ function createHydratedRouter({
167
167
  function HydratedRouter(props) {
168
168
  if (!router) {
169
169
  router = createHydratedRouter({
170
- unstable_getContext: props.unstable_getContext
170
+ getContext: props.getContext
171
171
  });
172
172
  }
173
173
  let [criticalCss, setCriticalCss] = React2.useState(
@@ -1,6 +1,6 @@
1
- import { b6 as RouteManifest, M as MiddlewareEnabled, h as unstable_RouterContextProvider, c as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b7 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b8 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, b9 as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-jKip1TFB.mjs';
1
+ import { b7 as RouteManifest, i as MiddlewareEnabled, g as RouterContextProvider, b as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b8 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b9 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, ba as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-BH6Jwdoy.mjs';
2
2
  import * as React from 'react';
3
- import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-DAVP2QQ0.mjs';
3
+ import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-BQkq8Erj.mjs';
4
4
 
5
5
  type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
6
6
  interface ServerRoute extends Route {
@@ -37,7 +37,7 @@ interface ServerBuild {
37
37
  };
38
38
  }
39
39
  interface HandleDocumentRequestFunction {
40
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
40
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
41
41
  }
42
42
  interface HandleDataRequestFunction {
43
43
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -87,7 +87,7 @@ interface EntryContext extends FrameworkContextObject {
87
87
  }
88
88
  interface FutureConfig {
89
89
  unstable_subResourceIntegrity: boolean;
90
- unstable_middleware: boolean;
90
+ v8_middleware: boolean;
91
91
  }
92
92
  type CriticalCss = string | {
93
93
  rel: "stylesheet";
@@ -425,7 +425,7 @@ interface DOMRouterOpts {
425
425
  */
426
426
  basename?: string;
427
427
  /**
428
- * A function that returns an {@link unstable_RouterContextProvider} instance
428
+ * A function that returns an {@link RouterContextProvider} instance
429
429
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
430
430
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
431
431
  * This function is called to generate a fresh `context` instance on each
@@ -433,22 +433,22 @@ interface DOMRouterOpts {
433
433
  *
434
434
  * ```tsx
435
435
  * import {
436
- * unstable_createContext,
437
- * unstable_RouterContextProvider,
436
+ * createContext,
437
+ * RouterContextProvider,
438
438
  * } from "react-router";
439
439
  *
440
- * const apiClientContext = unstable_createContext<APIClient>();
440
+ * const apiClientContext = createContext<APIClient>();
441
441
  *
442
442
  * function createBrowserRouter(routes, {
443
- * unstable_getContext() {
444
- * let context = new unstable_RouterContextProvider();
443
+ * getContext() {
444
+ * let context = new RouterContextProvider();
445
445
  * context.set(apiClientContext, getApiClient());
446
446
  * return context;
447
447
  * }
448
448
  * })
449
449
  * ```
450
450
  */
451
- unstable_getContext?: RouterInit["unstable_getContext"];
451
+ getContext?: RouterInit["getContext"];
452
452
  /**
453
453
  * Future flags to enable for the router.
454
454
  */
@@ -1025,7 +1025,7 @@ interface DOMRouterOpts {
1025
1025
  * @param {DOMRouterOpts.basename} opts.basename n/a
1026
1026
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1027
1027
  * @param {DOMRouterOpts.future} opts.future n/a
1028
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1028
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1029
1029
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1030
1030
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
1031
1031
  * @param {DOMRouterOpts.window} opts.window n/a
@@ -1043,7 +1043,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
1043
1043
  * @param opts Options
1044
1044
  * @param {DOMRouterOpts.basename} opts.basename n/a
1045
1045
  * @param {DOMRouterOpts.future} opts.future n/a
1046
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1046
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1047
1047
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1048
1048
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1049
1049
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
@@ -1,4 +1,4 @@
1
- import { ai as HTMLFormMethod, ag as FormEncType, j as RelativeRoutingType, bx as RouteManifest, by as ServerRouteModule, O as MiddlewareEnabled, K as unstable_RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, e as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, ba as PageLinkDescriptor, T as To, bz as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bA as FutureConfig$1, f as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, g as NavigateOptions, a5 as Fetcher, q as RouteObject, d as Router, i as SerializeFrom, B as BlockerFunction, a as Location, bB as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-rOzWJJ9x.js';
1
+ import { ai as HTMLFormMethod, ag as FormEncType, k as RelativeRoutingType, by as RouteManifest, bz as ServerRouteModule, O as MiddlewareEnabled, K as RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, f as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, bb as PageLinkDescriptor, T as To, bA as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bB as FutureConfig$1, g as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, h as NavigateOptions, a5 as Fetcher, r as RouteObject, e as Router, j as SerializeFrom, B as BlockerFunction, a as Location, bC as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-DSKAn01V.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  type ParamKeyValuePair = [string, string];
@@ -142,7 +142,7 @@ interface ServerBuild {
142
142
  };
143
143
  }
144
144
  interface HandleDocumentRequestFunction {
145
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
145
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
146
146
  }
147
147
  interface HandleDataRequestFunction {
148
148
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -219,7 +219,7 @@ interface EntryContext extends FrameworkContextObject {
219
219
  }
220
220
  interface FutureConfig {
221
221
  unstable_subResourceIntegrity: boolean;
222
- unstable_middleware: boolean;
222
+ v8_middleware: boolean;
223
223
  }
224
224
  type CriticalCss = string | {
225
225
  rel: "stylesheet";
@@ -424,7 +424,7 @@ interface DOMRouterOpts {
424
424
  */
425
425
  basename?: string;
426
426
  /**
427
- * A function that returns an {@link unstable_RouterContextProvider} instance
427
+ * A function that returns an {@link RouterContextProvider} instance
428
428
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
429
429
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
430
430
  * This function is called to generate a fresh `context` instance on each
@@ -432,22 +432,22 @@ interface DOMRouterOpts {
432
432
  *
433
433
  * ```tsx
434
434
  * import {
435
- * unstable_createContext,
436
- * unstable_RouterContextProvider,
435
+ * createContext,
436
+ * RouterContextProvider,
437
437
  * } from "react-router";
438
438
  *
439
- * const apiClientContext = unstable_createContext<APIClient>();
439
+ * const apiClientContext = createContext<APIClient>();
440
440
  *
441
441
  * function createBrowserRouter(routes, {
442
- * unstable_getContext() {
443
- * let context = new unstable_RouterContextProvider();
442
+ * getContext() {
443
+ * let context = new RouterContextProvider();
444
444
  * context.set(apiClientContext, getApiClient());
445
445
  * return context;
446
446
  * }
447
447
  * })
448
448
  * ```
449
449
  */
450
- unstable_getContext?: RouterInit["unstable_getContext"];
450
+ getContext?: RouterInit["getContext"];
451
451
  /**
452
452
  * Future flags to enable for the router.
453
453
  */
@@ -1024,7 +1024,7 @@ interface DOMRouterOpts {
1024
1024
  * @param {DOMRouterOpts.basename} opts.basename n/a
1025
1025
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1026
1026
  * @param {DOMRouterOpts.future} opts.future n/a
1027
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1027
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1028
1028
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1029
1029
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
1030
1030
  * @param {DOMRouterOpts.window} opts.window n/a
@@ -1042,7 +1042,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
1042
1042
  * @param opts Options
1043
1043
  * @param {DOMRouterOpts.basename} opts.basename n/a
1044
1044
  * @param {DOMRouterOpts.future} opts.future n/a
1045
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1045
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1046
1046
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1047
1047
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1048
1048
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
@@ -1,4 +1,4 @@
1
- export { aC as Await, aD as MemoryRouter, aE as Navigate, aF as Outlet, aG as Route, aH as Router, aI as RouterProvider, aJ as Routes, b0 as UNSAFE_WithComponentProps, b4 as UNSAFE_WithErrorBoundaryProps, b2 as UNSAFE_WithHydrateFallbackProps } from './context-jKip1TFB.mjs';
2
- export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DRhjXpk2.mjs';
1
+ export { aE as MemoryRouter, aF as Navigate, aG as Outlet, aH as Route, aI as Router, aJ as RouterProvider, aK as Routes, ar as UNSAFE_AwaitContextProvider, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps } from './context-BH6Jwdoy.mjs';
2
+ export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-1cWMpKk4.mjs';
3
3
  import 'react';
4
- import './route-data-DAVP2QQ0.mjs';
4
+ import './route-data-BQkq8Erj.mjs';