react-router 0.0.0-experimental-3d7dcee → 0.0.0-experimental-426e5caec

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 +39 -2
  2. package/dist/development/{chunk-WJ2QP6HN.mjs → chunk-5HELVQDL.mjs} +179 -249
  3. package/dist/development/{chunk-S2WJDCRE.js → chunk-KCPD675I.js} +173 -243
  4. package/dist/{production/chunk-NIW37A6Q.js → development/chunk-KPVSYEOF.js} +135 -135
  5. package/dist/development/{chunk-QMIAKNRH.mjs → chunk-ZOYSFAC5.mjs} +56 -102
  6. package/dist/{production/context-DnZM5brG.d.mts → development/context-EwD9faH7.d.mts} +34 -33
  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 +7 -7
  10. package/dist/development/dom-export.mjs +7 -7
  11. package/dist/development/{index-react-server-client-zr5eNeut.d.ts → index-react-server-client-CjrUmqhw.d.ts} +12 -12
  12. package/dist/{production/index-react-server-client-9rHNv-U3.d.mts → development/index-react-server-client-DDdP8ud2.d.mts} +13 -13
  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 +2 -2
  17. package/dist/development/index-react-server.d.mts +76 -38
  18. package/dist/development/index-react-server.d.ts +76 -38
  19. package/dist/development/index-react-server.js +116 -112
  20. package/dist/development/index-react-server.mjs +114 -111
  21. package/dist/development/index.d.mts +53 -15
  22. package/dist/development/index.d.ts +51 -13
  23. package/dist/development/index.js +138 -184
  24. package/dist/development/index.mjs +7 -7
  25. package/dist/development/lib/types/internal.d.mts +11 -8
  26. package/dist/development/lib/types/internal.d.ts +10 -7
  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-C24VEkoE.d.mts → route-data-CAnRKu1U.d.mts} +14 -14
  30. package/dist/development/{routeModules-FY5IBiA_.d.ts → routeModules-CQWjJ9NX.d.ts} +46 -45
  31. package/dist/production/{chunk-2BFZ6QQU.mjs → chunk-5W7O3ZZ2.mjs} +179 -249
  32. package/dist/production/{chunk-OFC37UQM.mjs → chunk-DZS627TW.mjs} +56 -102
  33. package/dist/production/{chunk-7CWVKQLP.js → chunk-NLCKEFES.js} +173 -243
  34. package/dist/{development/chunk-LSB26UC6.js → production/chunk-TC5SCO6O.js} +135 -135
  35. package/dist/{development/context-DnZM5brG.d.mts → production/context-EwD9faH7.d.mts} +34 -33
  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 +7 -7
  39. package/dist/production/dom-export.mjs +7 -7
  40. package/dist/production/{index-react-server-client-zr5eNeut.d.ts → index-react-server-client-CjrUmqhw.d.ts} +12 -12
  41. package/dist/{development/index-react-server-client-9rHNv-U3.d.mts → production/index-react-server-client-DDdP8ud2.d.mts} +13 -13
  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 +2 -2
  46. package/dist/production/index-react-server.d.mts +76 -38
  47. package/dist/production/index-react-server.d.ts +76 -38
  48. package/dist/production/index-react-server.js +116 -112
  49. package/dist/production/index-react-server.mjs +114 -111
  50. package/dist/production/index.d.mts +53 -15
  51. package/dist/production/index.d.ts +51 -13
  52. package/dist/production/index.js +138 -184
  53. package/dist/production/index.mjs +7 -7
  54. package/dist/production/lib/types/internal.d.mts +11 -8
  55. package/dist/production/lib/types/internal.d.ts +10 -7
  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-C24VEkoE.d.mts → route-data-CAnRKu1U.d.mts} +14 -14
  59. package/dist/production/{routeModules-FY5IBiA_.d.ts → routeModules-CQWjJ9NX.d.ts} +46 -45
  60. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-3d7dcee
2
+ * react-router v0.0.0-experimental-426e5caec
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-OFC37UQM.mjs";
34
+ } from "./chunk-DZS627TW.mjs";
35
35
  import {
36
36
  Action,
37
37
  Await,
@@ -61,6 +61,7 @@ import {
61
61
  Route,
62
62
  RouteContext,
63
63
  Router,
64
+ RouterContextProvider,
64
65
  RouterProvider,
65
66
  Routes,
66
67
  Scripts,
@@ -76,6 +77,7 @@ import {
76
77
  createBrowserRouter,
77
78
  createClientRoutes,
78
79
  createClientRoutesWithHMRRevalidationOptOut,
80
+ createContext,
79
81
  createHashRouter,
80
82
  createMemoryRouter,
81
83
  createPath,
@@ -103,8 +105,6 @@ import {
103
105
  replace,
104
106
  resolvePath,
105
107
  shouldHydrateRouteLoader,
106
- unstable_RouterContextProvider,
107
- unstable_createContext,
108
108
  useActionData,
109
109
  useAsyncError,
110
110
  useAsyncValue,
@@ -140,7 +140,7 @@ import {
140
140
  withComponentProps,
141
141
  withErrorBoundaryProps,
142
142
  withHydrateFallbackProps
143
- } from "./chunk-2BFZ6QQU.mjs";
143
+ } from "./chunk-5W7O3ZZ2.mjs";
144
144
  export {
145
145
  Await,
146
146
  BrowserRouter,
@@ -160,6 +160,7 @@ export {
160
160
  PrefetchPageLinks,
161
161
  Route,
162
162
  Router,
163
+ RouterContextProvider,
163
164
  RouterProvider,
164
165
  Routes,
165
166
  Scripts,
@@ -202,6 +203,7 @@ export {
202
203
  withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
203
204
  withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
204
205
  createBrowserRouter,
206
+ createContext,
205
207
  createCookie,
206
208
  createCookieSessionStorage,
207
209
  createHashRouter,
@@ -234,9 +236,7 @@ export {
234
236
  HistoryRouter as unstable_HistoryRouter,
235
237
  RSCHydratedRouter as unstable_RSCHydratedRouter,
236
238
  RSCStaticRouter as unstable_RSCStaticRouter,
237
- unstable_RouterContextProvider,
238
239
  createCallServer as unstable_createCallServer,
239
- unstable_createContext,
240
240
  getRSCStream as unstable_getRSCStream,
241
241
  routeRSCServerRequest as unstable_routeRSCServerRequest,
242
242
  setDevServerHooks as unstable_setDevServerHooks,
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, L as LinkDescriptor, 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-C24VEkoE.mjs';
2
- import { L as Location, b as unstable_MiddlewareNextFunction } from '../../context-DnZM5brG.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-CAnRKu1U.mjs';
2
+ import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../context-EwD9faH7.mjs';
3
3
  import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.mjs';
4
4
  import 'react';
5
5
 
@@ -29,6 +29,9 @@ type MetaMatch<T extends MatchInfo> = Pretty<{
29
29
  error?: unknown;
30
30
  }>;
31
31
  type MetaMatches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [MetaMatch<F>, ...MetaMatches<R>] : Array<MetaMatch<MatchInfo> | undefined>;
32
+ type HasErrorBoundary<T extends RouteInfo> = T["module"] extends {
33
+ ErrorBoundary: Func;
34
+ } ? true : false;
32
35
  type CreateMetaArgs<T extends RouteInfo> = {
33
36
  /** This is the current router `Location` object. This is useful for generating tags for routes at specific paths or query parameters. */
34
37
  location: Location;
@@ -39,9 +42,9 @@ type CreateMetaArgs<T extends RouteInfo> = {
39
42
  *
40
43
  * @deprecated Use `Route.MetaArgs.loaderData` instead
41
44
  */
42
- data: T["loaderData"] | undefined;
45
+ data: T["loaderData"] | (HasErrorBoundary<T> extends true ? undefined : never);
43
46
  /** The return value for this route's server loader function */
44
- loaderData: T["loaderData"] | undefined;
47
+ loaderData: T["loaderData"] | (HasErrorBoundary<T> extends true ? undefined : never);
45
48
  /** Thrown errors that trigger error boundaries will be passed to the meta function. This is useful for generating metadata for error pages. */
46
49
  error?: unknown;
47
50
  /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
@@ -54,8 +57,8 @@ type HeadersArgs = {
54
57
  actionHeaders: Headers;
55
58
  errorHeaders: Headers | undefined;
56
59
  };
57
- type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T["params"]>, next: unstable_MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
58
- type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T["params"]>, next: unstable_MiddlewareNextFunction<undefined>) => MaybePromise<void>;
60
+ type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T["params"]>, next: MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
61
+ type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T["params"]>, next: MiddlewareNextFunction<Record<string, DataStrategyResult>>) => MaybePromise<Record<string, DataStrategyResult> | void>;
59
62
  type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T["params"]>;
60
63
  type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T["params"]> & {
61
64
  /** This is an asynchronous function to get the data from the server loader for this route. On client-side navigations, this will make a {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server loader. If you opt-into running your clientLoader on hydration, then this function will return the data that was already loaded on the server (via Promise.resolve). */
@@ -132,8 +135,8 @@ type GetAnnotations<Info extends RouteInfo> = {
132
135
  MetaFunction: (args: CreateMetaArgs<Info>) => MetaDescriptors;
133
136
  HeadersArgs: HeadersArgs;
134
137
  HeadersFunction: (args: HeadersArgs) => Headers | HeadersInit;
135
- unstable_MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
136
- unstable_ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
138
+ MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
139
+ ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
137
140
  LoaderArgs: CreateServerLoaderArgs<Info>;
138
141
  ClientLoaderArgs: CreateClientLoaderArgs<Info>;
139
142
  ActionArgs: CreateServerActionArgs<Info>;
@@ -1,4 +1,4 @@
1
- import { R as RouteModule, L as LinkDescriptor, a as Location, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, u as unstable_MiddlewareNextFunction, C as ClientDataFunctionArgs, b as ServerDataFrom, N as Normalize, c as GetActionData } from '../../routeModules-FY5IBiA_.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-CQWjJ9NX.js';
2
2
  import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.js';
3
3
  import 'react';
4
4
 
@@ -28,6 +28,9 @@ type MetaMatch<T extends MatchInfo> = Pretty<{
28
28
  error?: unknown;
29
29
  }>;
30
30
  type MetaMatches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [MetaMatch<F>, ...MetaMatches<R>] : Array<MetaMatch<MatchInfo> | undefined>;
31
+ type HasErrorBoundary<T extends RouteInfo> = T["module"] extends {
32
+ ErrorBoundary: Func;
33
+ } ? true : false;
31
34
  type CreateMetaArgs<T extends RouteInfo> = {
32
35
  /** This is the current router `Location` object. This is useful for generating tags for routes at specific paths or query parameters. */
33
36
  location: Location;
@@ -38,9 +41,9 @@ type CreateMetaArgs<T extends RouteInfo> = {
38
41
  *
39
42
  * @deprecated Use `Route.MetaArgs.loaderData` instead
40
43
  */
41
- data: T["loaderData"] | undefined;
44
+ data: T["loaderData"] | (HasErrorBoundary<T> extends true ? undefined : never);
42
45
  /** The return value for this route's server loader function */
43
- loaderData: T["loaderData"] | undefined;
46
+ loaderData: T["loaderData"] | (HasErrorBoundary<T> extends true ? undefined : never);
44
47
  /** Thrown errors that trigger error boundaries will be passed to the meta function. This is useful for generating metadata for error pages. */
45
48
  error?: unknown;
46
49
  /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
@@ -53,8 +56,8 @@ type HeadersArgs = {
53
56
  actionHeaders: Headers;
54
57
  errorHeaders: Headers | undefined;
55
58
  };
56
- type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T["params"]>, next: unstable_MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
57
- type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T["params"]>, next: unstable_MiddlewareNextFunction<undefined>) => MaybePromise<void>;
59
+ type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T["params"]>, next: MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
60
+ type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T["params"]>, next: MiddlewareNextFunction<Record<string, DataStrategyResult>>) => MaybePromise<Record<string, DataStrategyResult> | void>;
58
61
  type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T["params"]>;
59
62
  type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T["params"]> & {
60
63
  /** This is an asynchronous function to get the data from the server loader for this route. On client-side navigations, this will make a {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server loader. If you opt-into running your clientLoader on hydration, then this function will return the data that was already loaded on the server (via Promise.resolve). */
@@ -131,8 +134,8 @@ type GetAnnotations<Info extends RouteInfo> = {
131
134
  MetaFunction: (args: CreateMetaArgs<Info>) => MetaDescriptors;
132
135
  HeadersArgs: HeadersArgs;
133
136
  HeadersFunction: (args: HeadersArgs) => Headers | HeadersInit;
134
- unstable_MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
135
- unstable_ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
137
+ MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
138
+ ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
136
139
  LoaderArgs: CreateServerLoaderArgs<Info>;
137
140
  ClientLoaderArgs: CreateClientLoaderArgs<Info>;
138
141
  ActionArgs: CreateServerActionArgs<Info>;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v0.0.0-experimental-3d7dcee
2
+ * react-router v0.0.0-experimental-426e5caec
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-3d7dcee
2
+ * react-router v0.0.0-experimental-426e5caec
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, D as DataRouteMatch, f as unstable_MiddlewareFunction, S as ShouldRevalidateFunction, g as unstable_RouterContextProvider, h as DataWithResponseInit, M as MiddlewareEnabled } from './context-DnZM5brG.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-EwD9faH7.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
+ clientMiddleware?: MiddlewareFunction<Record<string, DataStrategyResult>>[];
134
134
  ErrorBoundary?: ErrorBoundaryComponent;
135
135
  HydrateFallback?: HydrateFallbackComponent;
136
136
  Layout?: LayoutComponent;
@@ -149,7 +149,7 @@ interface ServerRouteModule extends RouteModule$1 {
149
149
  [name: string]: string;
150
150
  };
151
151
  loader?: LoaderFunction;
152
- unstable_middleware?: unstable_MiddlewareFunction<Response>[];
152
+ middleware?: MiddlewareFunction<Response>[];
153
153
  }
154
154
  /**
155
155
  * A function that handles data mutations for a route on the client
@@ -372,7 +372,7 @@ type unstable_SerializesTo<T> = {
372
372
  unstable__ReactRouter_SerializesTo: [T];
373
373
  };
374
374
 
375
- type Serialize<T> = T extends unstable_SerializesTo<infer To> ? To : T extends Serializable ? T : T extends (...args: any[]) => unknown ? undefined : T extends Promise<infer U> ? Promise<Serialize<U>> : T extends Map<infer K, infer V> ? Map<Serialize<K>, Serialize<V>> : T extends Set<infer U> ? Set<Serialize<U>> : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [Serialize<F>, ...Serialize<R>] : T extends Array<infer U> ? Array<Serialize<U>> : T extends readonly unknown[] ? readonly Serialize<T[number]>[] : T extends Record<any, any> ? {
375
+ type Serialize<T> = T extends unstable_SerializesTo<infer To> ? To : T extends Serializable ? T : T extends (...args: any[]) => unknown ? undefined : T extends Promise<infer U> ? Promise<Serialize<U>> : T extends Map<infer K, infer V> ? Map<Serialize<K>, Serialize<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<Serialize<K>, Serialize<V>> : T extends Set<infer U> ? Set<Serialize<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<Serialize<U>> : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [Serialize<F>, ...Serialize<R>] : T extends Array<infer U> ? Array<Serialize<U>> : T extends readonly unknown[] ? readonly Serialize<T[number]>[] : T extends Record<any, any> ? {
376
376
  [K in keyof T]: Serialize<T[K]>;
377
377
  } : undefined;
378
378
  type VoidToUndefined<T> = Equal<T, void> extends true ? undefined : T;
@@ -404,14 +404,14 @@ type ClientDataFunctionArgs<Params> = {
404
404
  **/
405
405
  params: Params;
406
406
  /**
407
- * When `future.unstable_middleware` is not enabled, this is undefined.
407
+ * When `future.v8_middleware` is not enabled, this is undefined.
408
408
  *
409
- * When `future.unstable_middleware` is enabled, this is an instance of
410
- * `unstable_RouterContextProvider` and can be used to access context values
409
+ * When `future.v8_middleware` is enabled, this is an instance of
410
+ * `RouterContextProvider` and can be used to access context values
411
411
  * from your route middlewares. You may pass in initial context values in your
412
- * `<HydratedRouter unstable_getContext>` prop
412
+ * `<HydratedRouter getContext>` prop
413
413
  */
414
- context: Readonly<unstable_RouterContextProvider>;
414
+ context: Readonly<RouterContextProvider>;
415
415
  };
416
416
  type ServerDataFunctionArgs<Params> = {
417
417
  /** A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the url, method, headers (such as cookies), and request body from the request. */
@@ -432,18 +432,18 @@ type ServerDataFunctionArgs<Params> = {
432
432
  **/
433
433
  params: Params;
434
434
  /**
435
- * Without `future.unstable_middleware` enabled, this is the context passed in
435
+ * Without `future.v8_middleware` enabled, this is the context passed in
436
436
  * to your server adapter's `getLoadContext` function. It's a way to bridge the
437
437
  * gap between the adapter's request/response API with your React Router app.
438
438
  * It is only applicable if you are using a custom server adapter.
439
439
  *
440
- * With `future.unstable_middleware` enabled, this is an instance of
441
- * `unstable_RouterContextProvider` and can be used for type-safe access to
440
+ * With `future.v8_middleware` enabled, this is an instance of
441
+ * `RouterContextProvider` and can be used for type-safe access to
442
442
  * context value set in your route middlewares. If you are using a custom
443
443
  * server adapter, you may provide an initial set of context values from your
444
444
  * `getLoadContext` function.
445
445
  */
446
- context: MiddlewareEnabled extends true ? Readonly<unstable_RouterContextProvider> : AppLoadContext;
446
+ context: MiddlewareEnabled extends true ? Readonly<RouterContextProvider> : AppLoadContext;
447
447
  };
448
448
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [
449
449
  ClientLoaderFunctionArgs | ClientActionFunctionArgs | ClientDataFunctionArgs<unknown>
@@ -470,4 +470,4 @@ type _DataActionData<ServerActionData, ClientActionData> = Awaited<[
470
470
  IsDefined<ClientActionData>
471
471
  ] extends [true, true] ? ServerActionData | ClientActionData : IsDefined<ClientActionData> extends true ? ClientActionData : IsDefined<ServerActionData> extends true ? ServerActionData : undefined>;
472
472
 
473
- export type { AppLoadContext as A, ClientDataFunctionArgs as C, Equal as E, GetLoaderData as G, HeadersFunction as H, LinkDescriptor as L, MetaDescriptor as M, Normalize as N, Pretty as P, RouteModule as R, ServerDataFunctionArgs as S, ServerDataFrom as a, GetActionData as b, RouteModules as c, SerializeFrom as d, MetaFunction as e, LinksFunction as f, ClientActionFunction as g, ClientLoaderFunction as h, ClientActionFunctionArgs as i, ClientLoaderFunctionArgs as j, HeadersArgs as k, MetaArgs as l, PageLinkDescriptor as m, HtmlLinkDescriptor as n, ServerRouteModule as o, unstable_SerializesTo as u };
473
+ export type { AppLoadContext as A, ClientDataFunctionArgs as C, Equal as E, Func as F, GetLoaderData as G, HeadersFunction as H, LinkDescriptor as L, MetaDescriptor as M, Normalize as N, Pretty as P, RouteModule as R, ServerDataFunctionArgs as S, ServerDataFrom as a, GetActionData as b, RouteModules as c, SerializeFrom as d, MetaFunction as e, LinksFunction as f, ClientActionFunction as g, ClientLoaderFunction as h, ClientActionFunctionArgs as i, ClientLoaderFunctionArgs as j, HeadersArgs as k, MetaArgs as l, PageLinkDescriptor as m, HtmlLinkDescriptor as n, ServerRouteModule as o, unstable_SerializesTo as u };
@@ -8,7 +8,7 @@ import { ComponentType, ReactElement } from 'react';
8
8
  interface Future {
9
9
  }
10
10
  type MiddlewareEnabled = Future extends {
11
- unstable_middleware: infer T extends boolean;
11
+ middleware: infer T extends boolean;
12
12
  } ? T : false;
13
13
 
14
14
  /**
@@ -273,14 +273,14 @@ type Submission = {
273
273
  };
274
274
  /**
275
275
  * A context instance used as the key for the `get`/`set` methods of a
276
- * {@link unstable_RouterContextProvider}. Accepts an optional default
276
+ * {@link RouterContextProvider}. Accepts an optional default
277
277
  * value to be returned if no value has been set.
278
278
  */
279
- interface unstable_RouterContext<T = unknown> {
279
+ interface RouterContext<T = unknown> {
280
280
  defaultValue?: T;
281
281
  }
282
282
  /**
283
- * Creates a type-safe {@link unstable_RouterContext} object that can be used to
283
+ * Creates a type-safe {@link RouterContext} object that can be used to
284
284
  * store and retrieve arbitrary values in [`action`](../../start/framework/route-module#action)s,
285
285
  * [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
286
286
  * Similar to React's [`createContext`](https://react.dev/reference/react/createContext),
@@ -291,11 +291,11 @@ interface unstable_RouterContext<T = unknown> {
291
291
  * when no value has been set will throw an error.
292
292
  *
293
293
  * ```tsx filename=app/context.ts
294
- * import { unstable_createContext } from "react-router";
294
+ * import { createContext } from "react-router";
295
295
  *
296
296
  * // Create a context for user data
297
297
  * export const userContext =
298
- * unstable_createContext<User | null>(null);
298
+ * createContext<User | null>(null);
299
299
  * ```
300
300
  *
301
301
  * ```tsx filename=app/middleware/auth.ts
@@ -333,23 +333,23 @@ interface unstable_RouterContext<T = unknown> {
333
333
  * @mode data
334
334
  * @param defaultValue An optional default value for the context. This value
335
335
  * will be returned if no value has been set for this context.
336
- * @returns A {@link unstable_RouterContext} object that can be used with
336
+ * @returns A {@link RouterContext} object that can be used with
337
337
  * `context.get()` and `context.set()` in [`action`](../../start/framework/route-module#action)s,
338
338
  * [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
339
339
  */
340
- declare function unstable_createContext<T>(defaultValue?: T): unstable_RouterContext<T>;
340
+ declare function createContext<T>(defaultValue?: T): RouterContext<T>;
341
341
  /**
342
342
  * Provides methods for writing/reading values in application context in a
343
343
  * type-safe way. Primarily for usage with [middleware](../../how-to/middleware).
344
344
  *
345
345
  * @example
346
346
  * import {
347
- * unstable_createContext,
348
- * unstable_RouterContextProvider
347
+ * createContext,
348
+ * RouterContextProvider
349
349
  * } from "react-router";
350
350
  *
351
- * const userContext = unstable_createContext<User | null>(null);
352
- * const contextProvider = new unstable_RouterContextProvider();
351
+ * const userContext = createContext<User | null>(null);
352
+ * const contextProvider = new RouterContextProvider();
353
353
  * contextProvider.set(userContext, getUser());
354
354
  * // ^ Type-safe
355
355
  * const user = contextProvider.get(userContext);
@@ -360,13 +360,13 @@ declare function unstable_createContext<T>(defaultValue?: T): unstable_RouterCon
360
360
  * @mode framework
361
361
  * @mode data
362
362
  */
363
- declare class unstable_RouterContextProvider {
363
+ declare class RouterContextProvider {
364
364
  #private;
365
365
  /**
366
- * Create a new `unstable_RouterContextProvider` instance
366
+ * Create a new `RouterContextProvider` instance
367
367
  * @param init An optional initial context map to populate the provider with
368
368
  */
369
- constructor(init?: Map<unstable_RouterContext, unknown>);
369
+ constructor(init?: Map<RouterContext, unknown>);
370
370
  /**
371
371
  * Access a value from the context. If no value has been set for the context,
372
372
  * it will return the context's `defaultValue` if provided, or throw an error
@@ -375,7 +375,7 @@ declare class unstable_RouterContextProvider {
375
375
  * @returns The value for the context, or the context's `defaultValue` if no
376
376
  * value was set
377
377
  */
378
- get<T>(context: unstable_RouterContext<T>): T;
378
+ get<T>(context: RouterContext<T>): T;
379
379
  /**
380
380
  * Set a value for the context. If the context already has a value set, this
381
381
  * will overwrite it.
@@ -384,9 +384,9 @@ declare class unstable_RouterContextProvider {
384
384
  * @param value The value to set for the context
385
385
  * @returns {void}
386
386
  */
387
- set<C extends unstable_RouterContext>(context: C, value: C extends unstable_RouterContext<infer T> ? T : never): void;
387
+ set<C extends RouterContext>(context: C, value: C extends RouterContext<infer T> ? T : never): void;
388
388
  }
389
- type DefaultContext = MiddlewareEnabled extends true ? Readonly<unstable_RouterContextProvider> : any;
389
+ type DefaultContext = MiddlewareEnabled extends true ? Readonly<RouterContextProvider> : any;
390
390
  /**
391
391
  * @private
392
392
  * Arguments passed to route loader/action functions. Same for now but we keep
@@ -421,7 +421,7 @@ interface DataFunctionArgs<Context> {
421
421
  * Route middleware `next` function to call downstream handlers and then complete
422
422
  * middlewares from the bottom-up
423
423
  */
424
- interface unstable_MiddlewareNextFunction<Result = unknown> {
424
+ interface MiddlewareNextFunction<Result = unknown> {
425
425
  (): Promise<Result>;
426
426
  }
427
427
  /**
@@ -430,7 +430,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
430
430
  * a `next` function as the second parameter which will call downstream handlers
431
431
  * and then complete middlewares from the bottom-up
432
432
  */
433
- type unstable_MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<Readonly<unstable_RouterContextProvider>>, next: unstable_MiddlewareNextFunction<Result>) => MaybePromise<Result | void>;
433
+ type MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<Readonly<RouterContextProvider>>, next: MiddlewareNextFunction<Result>) => MaybePromise<Result | void>;
434
434
  /**
435
435
  * Arguments passed to loader functions
436
436
  */
@@ -585,7 +585,7 @@ interface DataStrategyFunctionArgs<Context = DefaultContext> extends DataFunctio
585
585
  * Matches for this route extended with Data strategy APIs
586
586
  */
587
587
  matches: DataStrategyMatch[];
588
- unstable_runClientMiddleware: (cb: DataStrategyFunction<Context>) => Promise<Record<string, DataStrategyResult>>;
588
+ runClientMiddleware: (cb: DataStrategyFunction<Context>) => Promise<Record<string, DataStrategyResult>>;
589
589
  /**
590
590
  * The key of the fetcher we are calling `dataStrategy` for, otherwise `null`
591
591
  * for navigational executions
@@ -630,7 +630,7 @@ type UnsupportedLazyRouteObjectKey = "lazy" | "caseSensitive" | "path" | "id" |
630
630
  * onto the route. Either they're meaningful to the router, or they'll get
631
631
  * ignored.
632
632
  */
633
- type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "unstable_middleware";
633
+ type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "middleware";
634
634
  /**
635
635
  * lazy object to load route properties, which can add non-matching
636
636
  * related properties to a route
@@ -653,7 +653,7 @@ type AgnosticBaseRouteObject = {
653
653
  caseSensitive?: boolean;
654
654
  path?: string;
655
655
  id?: string;
656
- unstable_middleware?: unstable_MiddlewareFunction[];
656
+ middleware?: MiddlewareFunction[];
657
657
  loader?: LoaderFunction | boolean;
658
658
  action?: ActionFunction | boolean;
659
659
  hasErrorBoundary?: boolean;
@@ -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
@@ -1309,7 +1308,7 @@ interface RouterInit {
1309
1308
  routes: AgnosticRouteObject[];
1310
1309
  history: History;
1311
1310
  basename?: string;
1312
- unstable_getContext?: () => MaybePromise<unstable_RouterContextProvider>;
1311
+ getContext?: () => MaybePromise<RouterContextProvider>;
1313
1312
  mapRouteProperties?: MapRoutePropertiesFunction;
1314
1313
  future?: Partial<FutureConfig>;
1315
1314
  hydrationRouteProperties?: string[];
@@ -1344,13 +1343,15 @@ 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
+ 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;
1351
1352
  requestContext?: unknown;
1352
1353
  dataStrategy?: DataStrategyFunction<unknown>;
1353
- unstable_generateMiddlewareResponse?: (queryRoute: (r: Request) => Promise<Response>) => MaybePromise<Response>;
1354
+ generateMiddlewareResponse?: (queryRoute: (r: Request) => Promise<Response>) => MaybePromise<Response>;
1354
1355
  }): Promise<any>;
1355
1356
  }
1356
1357
  type ViewTransitionOpts = {
@@ -1588,7 +1589,7 @@ interface IndexRouteObject {
1588
1589
  caseSensitive?: AgnosticIndexRouteObject["caseSensitive"];
1589
1590
  path?: AgnosticIndexRouteObject["path"];
1590
1591
  id?: AgnosticIndexRouteObject["id"];
1591
- unstable_middleware?: AgnosticIndexRouteObject["unstable_middleware"];
1592
+ middleware?: AgnosticIndexRouteObject["middleware"];
1592
1593
  loader?: AgnosticIndexRouteObject["loader"];
1593
1594
  action?: AgnosticIndexRouteObject["action"];
1594
1595
  hasErrorBoundary?: AgnosticIndexRouteObject["hasErrorBoundary"];
@@ -1608,7 +1609,7 @@ interface NonIndexRouteObject {
1608
1609
  caseSensitive?: AgnosticNonIndexRouteObject["caseSensitive"];
1609
1610
  path?: AgnosticNonIndexRouteObject["path"];
1610
1611
  id?: AgnosticNonIndexRouteObject["id"];
1611
- unstable_middleware?: AgnosticNonIndexRouteObject["unstable_middleware"];
1612
+ middleware?: AgnosticNonIndexRouteObject["middleware"];
1612
1613
  loader?: AgnosticNonIndexRouteObject["loader"];
1613
1614
  action?: AgnosticNonIndexRouteObject["action"];
1614
1615
  hasErrorBoundary?: AgnosticNonIndexRouteObject["hasErrorBoundary"];
@@ -1715,13 +1716,13 @@ interface MemoryRouterOpts {
1715
1716
  */
1716
1717
  basename?: string;
1717
1718
  /**
1718
- * A function that returns an {@link unstable_RouterContextProvider} instance
1719
+ * A function that returns an {@link RouterContextProvider} instance
1719
1720
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
1720
1721
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1721
1722
  * This function is called to generate a fresh `context` instance on each
1722
1723
  * navigation or fetcher call.
1723
1724
  */
1724
- unstable_getContext?: RouterInit["unstable_getContext"];
1725
+ getContext?: RouterInit["getContext"];
1725
1726
  /**
1726
1727
  * Future flags to enable for the router.
1727
1728
  */
@@ -1762,7 +1763,7 @@ interface MemoryRouterOpts {
1762
1763
  * @param {MemoryRouterOpts.basename} opts.basename n/a
1763
1764
  * @param {MemoryRouterOpts.dataStrategy} opts.dataStrategy n/a
1764
1765
  * @param {MemoryRouterOpts.future} opts.future n/a
1765
- * @param {MemoryRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1766
+ * @param {MemoryRouterOpts.getContext} opts.getContext n/a
1766
1767
  * @param {MemoryRouterOpts.hydrationData} opts.hydrationData n/a
1767
1768
  * @param {MemoryRouterOpts.initialEntries} opts.initialEntries n/a
1768
1769
  * @param {MemoryRouterOpts.initialIndex} opts.initialIndex n/a
@@ -2702,7 +2703,7 @@ type unstable_SerializesTo<T> = {
2702
2703
  unstable__ReactRouter_SerializesTo: [T];
2703
2704
  };
2704
2705
 
2705
- type Serialize<T> = T extends unstable_SerializesTo<infer To> ? To : T extends Serializable ? T : T extends (...args: any[]) => unknown ? undefined : T extends Promise<infer U> ? Promise<Serialize<U>> : T extends Map<infer K, infer V> ? Map<Serialize<K>, Serialize<V>> : T extends Set<infer U> ? Set<Serialize<U>> : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [Serialize<F>, ...Serialize<R>] : T extends Array<infer U> ? Array<Serialize<U>> : T extends readonly unknown[] ? readonly Serialize<T[number]>[] : T extends Record<any, any> ? {
2706
+ type Serialize<T> = T extends unstable_SerializesTo<infer To> ? To : T extends Serializable ? T : T extends (...args: any[]) => unknown ? undefined : T extends Promise<infer U> ? Promise<Serialize<U>> : T extends Map<infer K, infer V> ? Map<Serialize<K>, Serialize<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<Serialize<K>, Serialize<V>> : T extends Set<infer U> ? Set<Serialize<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<Serialize<U>> : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [Serialize<F>, ...Serialize<R>] : T extends Array<infer U> ? Array<Serialize<U>> : T extends readonly unknown[] ? readonly Serialize<T[number]>[] : T extends Record<any, any> ? {
2706
2707
  [K in keyof T]: Serialize<T[K]>;
2707
2708
  } : undefined;
2708
2709
  type VoidToUndefined<T> = Equal<T, void> extends true ? undefined : T;
@@ -2734,14 +2735,14 @@ type ClientDataFunctionArgs<Params> = {
2734
2735
  **/
2735
2736
  params: Params;
2736
2737
  /**
2737
- * When `future.unstable_middleware` is not enabled, this is undefined.
2738
+ * When `future.v8_middleware` is not enabled, this is undefined.
2738
2739
  *
2739
- * When `future.unstable_middleware` is enabled, this is an instance of
2740
- * `unstable_RouterContextProvider` and can be used to access context values
2740
+ * When `future.v8_middleware` is enabled, this is an instance of
2741
+ * `RouterContextProvider` and can be used to access context values
2741
2742
  * from your route middlewares. You may pass in initial context values in your
2742
- * `<HydratedRouter unstable_getContext>` prop
2743
+ * `<HydratedRouter getContext>` prop
2743
2744
  */
2744
- context: Readonly<unstable_RouterContextProvider>;
2745
+ context: Readonly<RouterContextProvider>;
2745
2746
  };
2746
2747
  type ServerDataFunctionArgs<Params> = {
2747
2748
  /** A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the url, method, headers (such as cookies), and request body from the request. */
@@ -2762,18 +2763,18 @@ type ServerDataFunctionArgs<Params> = {
2762
2763
  **/
2763
2764
  params: Params;
2764
2765
  /**
2765
- * Without `future.unstable_middleware` enabled, this is the context passed in
2766
+ * Without `future.v8_middleware` enabled, this is the context passed in
2766
2767
  * to your server adapter's `getLoadContext` function. It's a way to bridge the
2767
2768
  * gap between the adapter's request/response API with your React Router app.
2768
2769
  * It is only applicable if you are using a custom server adapter.
2769
2770
  *
2770
- * With `future.unstable_middleware` enabled, this is an instance of
2771
- * `unstable_RouterContextProvider` and can be used for type-safe access to
2771
+ * With `future.v8_middleware` enabled, this is an instance of
2772
+ * `RouterContextProvider` and can be used for type-safe access to
2772
2773
  * context value set in your route middlewares. If you are using a custom
2773
2774
  * server adapter, you may provide an initial set of context values from your
2774
2775
  * `getLoadContext` function.
2775
2776
  */
2776
- context: MiddlewareEnabled extends true ? Readonly<unstable_RouterContextProvider> : AppLoadContext;
2777
+ context: MiddlewareEnabled extends true ? Readonly<RouterContextProvider> : AppLoadContext;
2777
2778
  };
2778
2779
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [
2779
2780
  ClientLoaderFunctionArgs | ClientActionFunctionArgs | ClientDataFunctionArgs<unknown>
@@ -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
+ clientMiddleware?: MiddlewareFunction<Record<string, DataStrategyResult>>[];
2813
2814
  ErrorBoundary?: ErrorBoundaryComponent;
2814
2815
  HydrateFallback?: HydrateFallbackComponent;
2815
2816
  Layout?: LayoutComponent;
@@ -2828,7 +2829,7 @@ interface ServerRouteModule extends RouteModule {
2828
2829
  [name: string]: string;
2829
2830
  };
2830
2831
  loader?: LoaderFunction;
2831
- unstable_middleware?: unstable_MiddlewareFunction<Response>[];
2832
+ middleware?: MiddlewareFunction<Response>[];
2832
2833
  }
2833
2834
  /**
2834
2835
  * A function that handles data mutations for a route on the client
@@ -3007,4 +3008,4 @@ type RouteComponent = ComponentType<{}>;
3007
3008
  */
3008
3009
  type RouteHandle = unknown;
3009
3010
 
3010
- export { type StaticHandler as $, Action as A, type BlockerFunction as B, type ClientDataFunctionArgs as C, type DataStrategyFunction as D, type ErrorBoundaryType as E, unstable_RouterContextProvider as F, type GetLoaderData as G, type HydrationState as H, type InitialEntry as I, type MiddlewareEnabled as J, type Equal as K, type LinkDescriptor as L, type MetaDescriptor as M, type Normalize as N, type ClientActionFunction as O, type Pretty as P, type ClientLoaderFunction as Q, type RouteModule$1 as R, type ServerDataFunctionArgs as S, type To as T, type UIMatch as U, type HeadersFunction as V, type ShouldRevalidateFunction as W, type RouterInit as X, type RouterState as Y, type PatchRoutesOnNavigationFunction as Z, type DataRouteObject as _, type Location as a, RouterProvider as a$, type GetScrollPositionFunction as a0, type GetScrollRestorationKeyFunction as a1, type StaticHandlerContext as a2, type Fetcher as a3, type NavigationStates as a4, type RouterSubscriber as a5, type RouterNavigateOptions as a6, type RouterFetchOptions as a7, type RevalidationState as a8, type ActionFunctionArgs as a9, redirect as aA, redirectDocument as aB, replace as aC, resolvePath as aD, type DataRouteMatch as aE, type Navigator as aF, type PatchRoutesOnNavigationFunctionArgs as aG, type RouteMatch as aH, type AwaitProps as aI, type IndexRouteProps as aJ, type unstable_ClientOnErrorFunction as aK, type LayoutRouteProps as aL, type MemoryRouterOpts as aM, type MemoryRouterProps as aN, type NavigateProps as aO, type OutletProps as aP, type PathRouteProps as aQ, type RouteProps as aR, type RouterProps as aS, type RouterProviderProps as aT, type RoutesProps as aU, Await as aV, MemoryRouter as aW, Navigate as aX, Outlet as aY, Route as aZ, Router as a_, type DataStrategyFunctionArgs as aa, type DataStrategyMatch as ab, type DataStrategyResult as ac, DataWithResponseInit as ad, type ErrorResponse as ae, type FormEncType as af, type FormMethod as ag, type HTMLFormMethod as ah, type LazyRouteFunction as ai, type LoaderFunctionArgs as aj, type unstable_MiddlewareFunction as ak, type PathParam as al, type RedirectFunction as am, type unstable_RouterContext as an, type ShouldRevalidateFunctionArgs as ao, unstable_createContext as ap, createPath as aq, parsePath as ar, IDLE_NAVIGATION as as, IDLE_FETCHER as at, IDLE_BLOCKER as au, data as av, generatePath as aw, isRouteErrorResponse as ax, matchPath as ay, matchRoutes as az, type ServerDataFrom as b, Routes as b0, createMemoryRouter as b1, createRoutesFromChildren as b2, createRoutesFromElements as b3, renderMatches as b4, type ClientActionFunctionArgs as b5, type ClientLoaderFunctionArgs as b6, type HeadersArgs as b7, type MetaArgs as b8, type PageLinkDescriptor as b9, type CreateStaticHandlerOptions as bA, type HtmlLinkDescriptor as ba, type Future as bb, type unstable_SerializesTo as bc, createBrowserHistory as bd, invariant as be, createRouter as bf, ErrorResponseImpl as bg, DataRouterContext as bh, DataRouterStateContext as bi, FetchersContext as bj, LocationContext as bk, NavigationContext as bl, RouteContext as bm, ViewTransitionContext as bn, hydrationRouteProperties as bo, mapRouteProperties as bp, WithComponentProps as bq, withComponentProps as br, WithHydrateFallbackProps as bs, withHydrateFallbackProps as bt, WithErrorBoundaryProps as bu, withErrorBoundaryProps as bv, type RouteManifest as bw, type ServerRouteModule as bx, type History as by, type FutureConfig as bz, type GetActionData as c, type Router$1 as d, type RouteModules as e, type NavigateOptions as f, type Blocker as g, type SerializeFrom as h, type RelativeRoutingType as i, type ParamParseKey as j, type Path as k, type PathPattern as l, type PathMatch as m, type Navigation as n, type Params as o, type RouteObject as p, type IndexRouteObject as q, type RouteComponentType as r, type HydrateFallbackType as s, type LoaderFunction as t, type unstable_MiddlewareNextFunction as u, type ActionFunction as v, type MetaFunction as w, type LinksFunction as x, type NonIndexRouteObject as y, type AppLoadContext as z };
3011
+ export { type PatchRoutesOnNavigationFunction as $, Action as A, type BlockerFunction as B, type ClientDataFunctionArgs as C, type DataStrategyResult as D, type ErrorBoundaryType as E, type Func as F, type GetLoaderData as G, type HydrationState as H, type InitialEntry as I, type AppLoadContext as J, RouterContextProvider as K, type LinkDescriptor as L, type MetaDescriptor as M, type Normalize as N, type MiddlewareEnabled as O, type Pretty as P, type Equal as Q, type RouteModule$1 as R, type ServerDataFunctionArgs as S, type To as T, type UIMatch as U, type ClientActionFunction as V, type ClientLoaderFunction as W, type HeadersFunction as X, type ShouldRevalidateFunction as Y, type RouterInit as Z, type RouterState as _, type Location as a, Router as a$, type DataRouteObject as a0, type StaticHandler as a1, type GetScrollPositionFunction as a2, type GetScrollRestorationKeyFunction as a3, type StaticHandlerContext as a4, type Fetcher as a5, type NavigationStates as a6, type RouterSubscriber as a7, type RouterNavigateOptions as a8, type RouterFetchOptions as a9, matchRoutes as aA, redirect as aB, redirectDocument as aC, replace as aD, resolvePath as aE, type DataRouteMatch as aF, type Navigator as aG, type PatchRoutesOnNavigationFunctionArgs as aH, type RouteMatch as aI, type AwaitProps as aJ, type IndexRouteProps as aK, type unstable_ClientOnErrorFunction as aL, type LayoutRouteProps as aM, type MemoryRouterOpts as aN, type MemoryRouterProps as aO, type NavigateProps as aP, type OutletProps as aQ, type PathRouteProps as aR, type RouteProps as aS, type RouterProps as aT, type RouterProviderProps as aU, type RoutesProps as aV, Await as aW, MemoryRouter as aX, Navigate as aY, Outlet as aZ, Route as a_, type RevalidationState as aa, type ActionFunctionArgs as ab, type DataStrategyFunctionArgs as ac, type DataStrategyMatch as ad, DataWithResponseInit as ae, type ErrorResponse as af, type FormEncType as ag, type FormMethod as ah, type HTMLFormMethod as ai, type LazyRouteFunction as aj, type LoaderFunctionArgs as ak, type MiddlewareFunction as al, type PathParam as am, type RedirectFunction as an, type RouterContext as ao, type ShouldRevalidateFunctionArgs as ap, createContext as aq, createPath as ar, parsePath as as, IDLE_NAVIGATION as at, IDLE_FETCHER as au, IDLE_BLOCKER as av, data as aw, generatePath as ax, isRouteErrorResponse as ay, matchPath as az, type MiddlewareNextFunction as b, RouterProvider as b0, Routes as b1, createMemoryRouter as b2, createRoutesFromChildren as b3, createRoutesFromElements as b4, renderMatches as b5, type ClientActionFunctionArgs as b6, type ClientLoaderFunctionArgs as b7, type HeadersArgs as b8, type MetaArgs as b9, type FutureConfig as bA, type CreateStaticHandlerOptions as bB, type PageLinkDescriptor as ba, type HtmlLinkDescriptor as bb, type Future as bc, type unstable_SerializesTo as bd, createBrowserHistory as be, invariant as bf, createRouter as bg, ErrorResponseImpl as bh, DataRouterContext as bi, DataRouterStateContext as bj, FetchersContext as bk, LocationContext as bl, NavigationContext as bm, RouteContext as bn, ViewTransitionContext as bo, hydrationRouteProperties as bp, mapRouteProperties as bq, WithComponentProps as br, withComponentProps as bs, WithHydrateFallbackProps as bt, withHydrateFallbackProps as bu, WithErrorBoundaryProps as bv, withErrorBoundaryProps as bw, type RouteManifest as bx, type ServerRouteModule as by, type History as bz, type ServerDataFrom as c, type GetActionData as d, type Router$1 as e, type RouteModules as f, type DataStrategyFunction as g, type NavigateOptions as h, type Blocker as i, type SerializeFrom as j, type RelativeRoutingType as k, type ParamParseKey as l, type Path as m, type PathPattern as n, type PathMatch as o, type Navigation as p, type Params as q, type RouteObject as r, type IndexRouteObject as s, type RouteComponentType as t, type HydrateFallbackType as u, type LoaderFunction as v, type ActionFunction as w, type MetaFunction as x, type LinksFunction as y, type NonIndexRouteObject as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "0.0.0-experimental-3d7dcee",
3
+ "version": "0.0.0-experimental-426e5caec",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",