react-router 8.0.0 → 8.0.1

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 (136) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/development/dom-export.js +1 -1
  3. package/dist/development/index-react-server-client.js +1 -1
  4. package/dist/development/index-react-server.js +1 -1
  5. package/dist/development/index.d.ts +1 -2
  6. package/dist/development/index.js +1 -1
  7. package/dist/development/lib/actions.js +1 -1
  8. package/dist/development/lib/components.js +1 -1
  9. package/dist/development/lib/context.js +1 -1
  10. package/dist/development/lib/dom/dom.js +1 -1
  11. package/dist/development/lib/dom/lib.js +2 -2
  12. package/dist/development/lib/dom/server.js +1 -1
  13. package/dist/development/lib/dom/ssr/components.js +1 -1
  14. package/dist/development/lib/dom/ssr/data.js +1 -1
  15. package/dist/development/lib/dom/ssr/errorBoundaries.js +1 -1
  16. package/dist/development/lib/dom/ssr/fallback.js +1 -1
  17. package/dist/development/lib/dom/ssr/fog-of-war.js +1 -1
  18. package/dist/development/lib/dom/ssr/hydration.js +1 -1
  19. package/dist/development/lib/dom/ssr/invariant.js +1 -1
  20. package/dist/development/lib/dom/ssr/links.js +1 -1
  21. package/dist/development/lib/dom/ssr/markup.js +1 -1
  22. package/dist/development/lib/dom/ssr/routeModules.js +1 -1
  23. package/dist/development/lib/dom/ssr/routes-test-stub.js +1 -1
  24. package/dist/development/lib/dom/ssr/routes.js +1 -1
  25. package/dist/development/lib/dom/ssr/server.js +1 -1
  26. package/dist/development/lib/dom/ssr/single-fetch.js +1 -1
  27. package/dist/development/lib/dom-export/dom-router-provider.js +1 -1
  28. package/dist/development/lib/dom-export/hydrated-router.js +1 -1
  29. package/dist/development/lib/errors.js +1 -1
  30. package/dist/development/lib/hooks.js +1 -1
  31. package/dist/development/lib/href.js +1 -1
  32. package/dist/development/lib/router/history.js +1 -1
  33. package/dist/development/lib/router/instrumentation.js +1 -1
  34. package/dist/development/lib/router/router.js +1 -1
  35. package/dist/development/lib/router/url.js +1 -1
  36. package/dist/development/lib/router/utils.js +1 -1
  37. package/dist/development/lib/rsc/browser.js +3 -4
  38. package/dist/development/lib/rsc/errorBoundaries.js +1 -1
  39. package/dist/development/lib/rsc/html-stream/browser.js +1 -1
  40. package/dist/development/lib/rsc/html-stream/server.js +1 -1
  41. package/dist/development/lib/rsc/route-modules.js +1 -1
  42. package/dist/development/lib/rsc/server.ssr.js +1 -1
  43. package/dist/development/lib/server-runtime/cookies.js +1 -1
  44. package/dist/development/lib/server-runtime/crypto.js +1 -1
  45. package/dist/development/lib/server-runtime/data.js +1 -1
  46. package/dist/development/lib/server-runtime/dev.js +1 -1
  47. package/dist/development/lib/server-runtime/entry.js +1 -1
  48. package/dist/development/lib/server-runtime/errors.js +1 -1
  49. package/dist/development/lib/server-runtime/headers.js +1 -1
  50. package/dist/development/lib/server-runtime/invariant.js +1 -1
  51. package/dist/development/lib/server-runtime/mode.js +1 -1
  52. package/dist/development/lib/server-runtime/routeMatching.js +1 -1
  53. package/dist/development/lib/server-runtime/routes.js +1 -1
  54. package/dist/development/lib/server-runtime/server.js +1 -1
  55. package/dist/development/lib/server-runtime/serverHandoff.js +1 -1
  56. package/dist/development/lib/server-runtime/sessions/cookieStorage.js +1 -1
  57. package/dist/development/lib/server-runtime/sessions/memoryStorage.js +1 -1
  58. package/dist/development/lib/server-runtime/sessions.js +1 -1
  59. package/dist/development/lib/server-runtime/single-fetch.js +1 -1
  60. package/dist/development/lib/server-runtime/urls.js +1 -1
  61. package/dist/development/lib/server-runtime/warnings.js +1 -1
  62. package/dist/development/lib/types/internal.js +1 -1
  63. package/dist/development/vendor/turbo-stream-v2/flatten.js +1 -1
  64. package/dist/development/vendor/turbo-stream-v2/turbo-stream.js +1 -1
  65. package/dist/development/vendor/turbo-stream-v2/unflatten.js +1 -1
  66. package/dist/development/vendor/turbo-stream-v2/utils.js +1 -1
  67. package/dist/production/dom-export.js +1 -1
  68. package/dist/production/index-react-server-client.js +1 -1
  69. package/dist/production/index-react-server.js +1 -1
  70. package/dist/production/index.d.ts +1 -2
  71. package/dist/production/index.js +1 -1
  72. package/dist/production/lib/actions.js +1 -1
  73. package/dist/production/lib/components.js +1 -1
  74. package/dist/production/lib/context.js +1 -1
  75. package/dist/production/lib/dom/dom.js +1 -1
  76. package/dist/production/lib/dom/lib.js +2 -2
  77. package/dist/production/lib/dom/server.js +1 -1
  78. package/dist/production/lib/dom/ssr/components.js +1 -1
  79. package/dist/production/lib/dom/ssr/data.js +1 -1
  80. package/dist/production/lib/dom/ssr/errorBoundaries.js +1 -1
  81. package/dist/production/lib/dom/ssr/fallback.js +1 -1
  82. package/dist/production/lib/dom/ssr/fog-of-war.js +1 -1
  83. package/dist/production/lib/dom/ssr/hydration.js +1 -1
  84. package/dist/production/lib/dom/ssr/invariant.js +1 -1
  85. package/dist/production/lib/dom/ssr/links.js +1 -1
  86. package/dist/production/lib/dom/ssr/markup.js +1 -1
  87. package/dist/production/lib/dom/ssr/routeModules.js +1 -1
  88. package/dist/production/lib/dom/ssr/routes-test-stub.js +1 -1
  89. package/dist/production/lib/dom/ssr/routes.js +1 -1
  90. package/dist/production/lib/dom/ssr/server.js +1 -1
  91. package/dist/production/lib/dom/ssr/single-fetch.js +1 -1
  92. package/dist/production/lib/dom-export/dom-router-provider.js +1 -1
  93. package/dist/production/lib/dom-export/hydrated-router.js +1 -1
  94. package/dist/production/lib/errors.js +1 -1
  95. package/dist/production/lib/hooks.js +1 -1
  96. package/dist/production/lib/href.js +1 -1
  97. package/dist/production/lib/router/history.js +1 -1
  98. package/dist/production/lib/router/instrumentation.js +1 -1
  99. package/dist/production/lib/router/router.js +1 -1
  100. package/dist/production/lib/router/url.js +1 -1
  101. package/dist/production/lib/router/utils.js +1 -1
  102. package/dist/production/lib/rsc/browser.js +3 -4
  103. package/dist/production/lib/rsc/errorBoundaries.js +1 -1
  104. package/dist/production/lib/rsc/html-stream/browser.js +1 -1
  105. package/dist/production/lib/rsc/html-stream/server.js +1 -1
  106. package/dist/production/lib/rsc/route-modules.js +1 -1
  107. package/dist/production/lib/rsc/server.ssr.js +1 -1
  108. package/dist/production/lib/server-runtime/cookies.js +1 -1
  109. package/dist/production/lib/server-runtime/crypto.js +1 -1
  110. package/dist/production/lib/server-runtime/data.js +1 -1
  111. package/dist/production/lib/server-runtime/dev.js +1 -1
  112. package/dist/production/lib/server-runtime/entry.js +1 -1
  113. package/dist/production/lib/server-runtime/errors.js +1 -1
  114. package/dist/production/lib/server-runtime/headers.js +1 -1
  115. package/dist/production/lib/server-runtime/invariant.js +1 -1
  116. package/dist/production/lib/server-runtime/mode.js +1 -1
  117. package/dist/production/lib/server-runtime/routeMatching.js +1 -1
  118. package/dist/production/lib/server-runtime/routes.js +1 -1
  119. package/dist/production/lib/server-runtime/server.js +1 -1
  120. package/dist/production/lib/server-runtime/serverHandoff.js +1 -1
  121. package/dist/production/lib/server-runtime/sessions/cookieStorage.js +1 -1
  122. package/dist/production/lib/server-runtime/sessions/memoryStorage.js +1 -1
  123. package/dist/production/lib/server-runtime/sessions.js +1 -1
  124. package/dist/production/lib/server-runtime/single-fetch.js +1 -1
  125. package/dist/production/lib/server-runtime/urls.js +1 -1
  126. package/dist/production/lib/server-runtime/warnings.js +1 -1
  127. package/dist/production/lib/types/internal.js +1 -1
  128. package/dist/production/vendor/turbo-stream-v2/flatten.js +1 -1
  129. package/dist/production/vendor/turbo-stream-v2/turbo-stream.js +1 -1
  130. package/dist/production/vendor/turbo-stream-v2/unflatten.js +1 -1
  131. package/dist/production/vendor/turbo-stream-v2/utils.js +1 -1
  132. package/docs/how-to/middleware.md +1 -1
  133. package/docs/how-to/route-module-type-safety.md +1 -16
  134. package/package.json +1 -1
  135. package/dist/development/lib/server-runtime/data.d.ts +0 -13
  136. package/dist/production/lib/server-runtime/data.d.ts +0 -13
@@ -18,7 +18,6 @@ import { FlashSessionData, IsSessionFunction, Session, SessionData, SessionIdSto
18
18
  import { createCookieSessionStorage } from "./lib/server-runtime/sessions/cookieStorage.js";
19
19
  import { createMemorySessionStorage } from "./lib/server-runtime/sessions/memoryStorage.js";
20
20
  import { setDevServerHooks } from "./lib/server-runtime/dev.js";
21
- import { AppLoadContext } from "./lib/server-runtime/data.js";
22
21
  import { Future } from "./lib/types/future.js";
23
22
  import { unstable_SerializesTo } from "./lib/types/serializes-to.js";
24
23
  import { href } from "./lib/href.js";
@@ -42,4 +41,4 @@ import { ClientInstrumentation, InstrumentRequestHandlerFunction, InstrumentRout
42
41
  declare const unstable_getRequest: typeof getRequest;
43
42
  declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
44
43
  //#endregion
45
- export { type ActionFunction, type ActionFunctionArgs, type AppLoadContext, Await, type AwaitProps, type BaseRouteObject, type Blocker, type BlockerFunction, BrowserRouter, type BrowserRouterProps, type ClientActionFunction, type ClientActionFunctionArgs, type ClientInstrumentation, type ClientLoaderFunction, type ClientLoaderFunctionArgs, type ClientOnErrorFunction, type Cookie, type CookieOptions, type CookieParseOptions, type CookieSerializeOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, type DOMRouterOpts, type DataRouteMatch, type DataRouteObject, type Router as DataRouter, type DataStrategyFunction, type DataStrategyFunctionArgs, type DataStrategyMatch, type DataStrategyResult, type DiscoverBehavior, type EntryContext, type ErrorResponse, type Fetcher, type FetcherFormProps, type FetcherSubmitFunction, type FetcherSubmitOptions, type FetcherWithComponents, type FlashSessionData, Form, type FormEncType, type FormMethod, type FormProps, type Future, type GetScrollPositionFunction, type GetScrollRestorationKeyFunction, type HTMLFormMethod, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HashRouter, type HashRouterProps, type HeadersArgs, type HeadersFunction, type HistoryRouterProps, type HtmlLinkDescriptor, type HydrationState, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, type IndexRouteObject, type IndexRouteProps, type InitialEntry, type InstrumentRequestHandlerFunction, type InstrumentRouteFunction, type InstrumentRouterFunction, type InstrumentationHandlerResult, type IsCookieFunction, type IsSessionFunction, type LayoutRouteProps, type LazyRouteFunction, Link, type LinkDescriptor, type LinkProps, Links, type LinksFunction, type LinksProps, type LoaderFunction, type LoaderFunctionArgs, type Location, MemoryRouter, type MemoryRouterOpts, type MemoryRouterProps, Meta, type MetaArgs, type MetaDescriptor, type MetaFunction, type MiddlewareFunction, NavLink, type NavLinkProps, type NavLinkRenderProps, Navigate, type NavigateFunction, type NavigateOptions, type NavigateProps, type Navigation, type NavigationStates, Action as NavigationType, type Navigator, type NonIndexRouteObject, Outlet, type OutletProps, type PageLinkDescriptor, type ParamKeyValuePair, type ParamParseKey, type Params, type PatchRoutesOnNavigationFunction, type PatchRoutesOnNavigationFunctionArgs, type Path, type PathMatch, type PathParam, type PathPattern, type PathRouteProps, type PrefetchBehavior, PrefetchPageLinks, type RedirectFunction, type Register, type RelativeRoutingType, type RequestHandler, type RevalidationState, Route, type RouteMatch, type RouteObject, type RouteProps, Router$1 as Router, type RouterContext, RouterContextProvider, type RouterFetchOptions, type RouterInit, type RouterNavigateOptions, type RouterProps, RouterProvider, type RouterProviderProps, type RouterState, type RouterSubscriber, Routes, type RoutesProps, type RoutesTestStubProps, Scripts, type ScriptsProps, ScrollRestoration, type ScrollRestorationProps, type ServerBuild, type ServerEntryModule, type ServerInstrumentation, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, type SetURLSearchParams, type ShouldRevalidateFunction, type ShouldRevalidateFunctionArgs, type StaticHandler, type StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, type SubmitFunction, type SubmitOptions, type SubmitTarget, type To, type UIMatch, type AssetsManifest as UNSAFE_AssetsManifest, AwaitContextProvider as UNSAFE_AwaitContextProvider, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, type DataWithResponseInit as UNSAFE_DataWithResponseInit, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, FetchersContext as UNSAFE_FetchersContext, FrameworkContext as UNSAFE_FrameworkContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteContext as UNSAFE_RouteContext, type RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, ViewTransitionContext as UNSAFE_ViewTransitionContext, WithComponentProps as UNSAFE_WithComponentProps, WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps, WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps, createBrowserHistory as UNSAFE_createBrowserHistory, createClientRoutes as UNSAFE_createClientRoutes, createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, createHashHistory as UNSAFE_createHashHistory, createMemoryHistory as UNSAFE_createMemoryHistory, createRouter as UNSAFE_createRouter, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, defaultMapRouteProperties as UNSAFE_defaultMapRouteProperties, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, hydrationRouteProperties as UNSAFE_hydrationRouteProperties, invariant as UNSAFE_invariant, shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, useScrollRestoration as UNSAFE_useScrollRestoration, withComponentProps as UNSAFE_withComponentProps, withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps, withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps, type URLSearchParamsInit, createBrowserRouter, createContext, createCookie, createCookieSessionStorage, createHashRouter, createMemoryRouter, createMemorySessionStorage, createPath, createRequestHandler, createRoutesFromChildren, createRoutesFromElements, createRoutesStub, createSearchParams, createSession, createSessionStorage, createStaticHandler, createStaticRouter, data, generatePath, href, isCookie, isRouteErrorResponse, isSession, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, replace, resolvePath, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, HistoryRouter as unstable_HistoryRouter, type LoadServerActionFunction as unstable_LoadServerActionFunction, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type unstable_RouterState, type unstable_RouterStateActiveVariant, type unstable_RouterStatePendingVariant, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, type unstable_SerializesTo, unstable_getRequest, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, usePrompt as unstable_usePrompt, useRoute as unstable_useRoute, useRouterState as unstable_useRouterState, useActionData, useAsyncError, useAsyncValue, useBeforeUnload, useBlocker, useFetcher, useFetchers, useFormAction, useHref, useInRouterContext, useLinkClickHandler, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, useSearchParams, useSubmit, useViewTransitionState };
44
+ export { type ActionFunction, type ActionFunctionArgs, Await, type AwaitProps, type BaseRouteObject, type Blocker, type BlockerFunction, BrowserRouter, type BrowserRouterProps, type ClientActionFunction, type ClientActionFunctionArgs, type ClientInstrumentation, type ClientLoaderFunction, type ClientLoaderFunctionArgs, type ClientOnErrorFunction, type Cookie, type CookieOptions, type CookieParseOptions, type CookieSerializeOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, type DOMRouterOpts, type DataRouteMatch, type DataRouteObject, type Router as DataRouter, type DataStrategyFunction, type DataStrategyFunctionArgs, type DataStrategyMatch, type DataStrategyResult, type DiscoverBehavior, type EntryContext, type ErrorResponse, type Fetcher, type FetcherFormProps, type FetcherSubmitFunction, type FetcherSubmitOptions, type FetcherWithComponents, type FlashSessionData, Form, type FormEncType, type FormMethod, type FormProps, type Future, type GetScrollPositionFunction, type GetScrollRestorationKeyFunction, type HTMLFormMethod, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HashRouter, type HashRouterProps, type HeadersArgs, type HeadersFunction, type HistoryRouterProps, type HtmlLinkDescriptor, type HydrationState, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, type IndexRouteObject, type IndexRouteProps, type InitialEntry, type InstrumentRequestHandlerFunction, type InstrumentRouteFunction, type InstrumentRouterFunction, type InstrumentationHandlerResult, type IsCookieFunction, type IsSessionFunction, type LayoutRouteProps, type LazyRouteFunction, Link, type LinkDescriptor, type LinkProps, Links, type LinksFunction, type LinksProps, type LoaderFunction, type LoaderFunctionArgs, type Location, MemoryRouter, type MemoryRouterOpts, type MemoryRouterProps, Meta, type MetaArgs, type MetaDescriptor, type MetaFunction, type MiddlewareFunction, NavLink, type NavLinkProps, type NavLinkRenderProps, Navigate, type NavigateFunction, type NavigateOptions, type NavigateProps, type Navigation, type NavigationStates, Action as NavigationType, type Navigator, type NonIndexRouteObject, Outlet, type OutletProps, type PageLinkDescriptor, type ParamKeyValuePair, type ParamParseKey, type Params, type PatchRoutesOnNavigationFunction, type PatchRoutesOnNavigationFunctionArgs, type Path, type PathMatch, type PathParam, type PathPattern, type PathRouteProps, type PrefetchBehavior, PrefetchPageLinks, type RedirectFunction, type Register, type RelativeRoutingType, type RequestHandler, type RevalidationState, Route, type RouteMatch, type RouteObject, type RouteProps, Router$1 as Router, type RouterContext, RouterContextProvider, type RouterFetchOptions, type RouterInit, type RouterNavigateOptions, type RouterProps, RouterProvider, type RouterProviderProps, type RouterState, type RouterSubscriber, Routes, type RoutesProps, type RoutesTestStubProps, Scripts, type ScriptsProps, ScrollRestoration, type ScrollRestorationProps, type ServerBuild, type ServerEntryModule, type ServerInstrumentation, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, type SetURLSearchParams, type ShouldRevalidateFunction, type ShouldRevalidateFunctionArgs, type StaticHandler, type StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, type SubmitFunction, type SubmitOptions, type SubmitTarget, type To, type UIMatch, type AssetsManifest as UNSAFE_AssetsManifest, AwaitContextProvider as UNSAFE_AwaitContextProvider, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, type DataWithResponseInit as UNSAFE_DataWithResponseInit, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, FetchersContext as UNSAFE_FetchersContext, FrameworkContext as UNSAFE_FrameworkContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteContext as UNSAFE_RouteContext, type RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, ViewTransitionContext as UNSAFE_ViewTransitionContext, WithComponentProps as UNSAFE_WithComponentProps, WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps, WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps, createBrowserHistory as UNSAFE_createBrowserHistory, createClientRoutes as UNSAFE_createClientRoutes, createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, createHashHistory as UNSAFE_createHashHistory, createMemoryHistory as UNSAFE_createMemoryHistory, createRouter as UNSAFE_createRouter, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, defaultMapRouteProperties as UNSAFE_defaultMapRouteProperties, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, hydrationRouteProperties as UNSAFE_hydrationRouteProperties, invariant as UNSAFE_invariant, shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, useScrollRestoration as UNSAFE_useScrollRestoration, withComponentProps as UNSAFE_withComponentProps, withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps, withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps, type URLSearchParamsInit, createBrowserRouter, createContext, createCookie, createCookieSessionStorage, createHashRouter, createMemoryRouter, createMemorySessionStorage, createPath, createRequestHandler, createRoutesFromChildren, createRoutesFromElements, createRoutesStub, createSearchParams, createSession, createSessionStorage, createStaticHandler, createStaticRouter, data, generatePath, href, isCookie, isRouteErrorResponse, isSession, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, replace, resolvePath, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, HistoryRouter as unstable_HistoryRouter, type LoadServerActionFunction as unstable_LoadServerActionFunction, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type unstable_RouterState, type unstable_RouterStateActiveVariant, type unstable_RouterStatePendingVariant, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, type unstable_SerializesTo, unstable_getRequest, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, usePrompt as unstable_usePrompt, useRoute as unstable_useRoute, useRouterState as unstable_useRouterState, useActionData, useAsyncError, useAsyncValue, useBeforeUnload, useBlocker, useFetcher, useFetchers, useFormAction, useHref, useInRouterContext, useLinkClickHandler, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, useSearchParams, useSubmit, useViewTransitionState };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -22,7 +22,7 @@ import * as React$1 from "react";
22
22
  //#region lib/dom/lib.tsx
23
23
  const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
24
24
  try {
25
- if (isBrowser) window.__reactRouterVersion = "8.0.0";
25
+ if (isBrowser) window.__reactRouterVersion = "8.0.1";
26
26
  } catch (e) {}
27
27
  /**
28
28
  * Create a new {@link DataRouter| data router} that manages the application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -252,11 +252,10 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, createFromReadableStream,
252
252
  return M.route.hasComponent && !M.route.element;
253
253
  });
254
254
  return async (args) => args.runClientMiddleware(async () => {
255
- let context = args.context;
256
- context.set(renderedRoutesContext, []);
255
+ args.context.set(renderedRoutesContext, []);
257
256
  let results = await dataStrategy(args);
258
257
  const renderedRoutesById = /* @__PURE__ */ new Map();
259
- for (const route of context.get(renderedRoutesContext)) {
258
+ for (const route of args.context.get(renderedRoutesContext)) {
260
259
  if (!renderedRoutesById.has(route.id)) renderedRoutesById.set(route.id, []);
261
260
  renderedRoutesById.get(route.id).push(route);
262
261
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v8.0.0
2
+ * react-router v8.0.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -335,7 +335,7 @@ Client middleware is simpler because since we are already on the client and are
335
335
 
336
336
  ### Context API
337
337
 
338
- The new context system provides type safety and prevents naming conflicts and allows you to provide data to nested middlewares and `action`/`loader` functions. In Framework Mode, this replaces the previous `AppLoadContext` API.
338
+ The context system provides type safety, prevents naming conflicts, and allows you to provide data to nested middlewares and `action`/`loader` functions.
339
339
 
340
340
  ```ts
341
341
  // ✅ Type-safe
@@ -50,22 +50,7 @@ If you want to run type checking as its own command — for example, as part of
50
50
  }
51
51
  ```
52
52
 
53
- ## 4. Typing `AppLoadContext`
54
-
55
- ## Extending app `Context` types
56
-
57
- To define your app's `context` type, add the following in a `.ts` or `.d.ts` file within your project:
58
-
59
- ```typescript
60
- import "react-router";
61
- declare module "react-router" {
62
- interface AppLoadContext {
63
- // add context properties here
64
- }
65
- }
66
- ```
67
-
68
- ## 5. Type-only auto-imports (optional)
53
+ ## 4. Type-only auto-imports (optional)
69
54
 
70
55
  When auto-importing the `Route` type helper, TypeScript will generate:
71
56
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-router",
3
3
  "type": "module",
4
- "version": "8.0.0",
4
+ "version": "8.0.1",
5
5
  "description": "Declarative routing for React",
6
6
  "keywords": [
7
7
  "react",
@@ -1,13 +0,0 @@
1
-
2
- //#region lib/server-runtime/data.d.ts
3
- /**
4
- * An object of unknown type for route loaders and actions provided by the
5
- * server's `getLoadContext()` function. This is defined as an empty interface
6
- * specifically so apps can leverage declaration merging to augment this type
7
- * globally: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
8
- */
9
- interface AppLoadContext {
10
- [key: string]: unknown;
11
- }
12
- //#endregion
13
- export { AppLoadContext };