Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router

Package Overview
Dependencies
Maintainers
3
Versions
633
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Compare versions

Comparing version 0.0.0-experimental-6844c5934 to 0.0.0-experimental-6b51a129b

dist/development/chunk-P6R3I7EZ.mjs

10

CHANGELOG.md
# `react-router`
## 7.1.1
## 7.1.0
### Patch Changes
- Throw unwrapped single fetch redirect to align with pre-single fetch behavior ([#12506](https://github.com/remix-run/react-router/pull/12506))
- Ignore redirects when inferring loader data types ([#12527](https://github.com/remix-run/react-router/pull/12527))
- Remove `<Link prefetch>` warning which suffers from false positives in a lazy route discovery world ([#12485](https://github.com/remix-run/react-router/pull/12485))
## 7.0.2

@@ -14,0 +4,0 @@

18

dist/development/dom-export.d.ts
import * as React from 'react';
import { R as RouterProviderProps$1 } from './fog-of-war-D8HgFD2R.js';
import { L as LoadRouteModuleFunction } from './route-data-Dwy1K32H.js';
import { R as RouterProviderProps$1 } from './fog-of-war-Bw4B6JoE.js';
import { D as DefaultRouterContext } from './route-data-CcXs0cOY.js';

@@ -8,9 +8,17 @@ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;

interface HydratedRouterProps {
/**
* Context object to passed through to `createBrowserRouter` and made available
* to `clientLoader`/`clientActon` functions
*/
context?: DefaultRouterContext;
}
/**
* Framework-mode router component to be used in `entry.client.tsx` to hydrate a
* router from a `ServerRouter`
*
* @category Router Components
*/
declare function HydratedRouter({ loadRouteModule, }: {
loadRouteModule?: LoadRouteModuleFunction;
}): React.JSX.Element;
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
export { HydratedRouter, RouterProvider, type RouterProviderProps };

@@ -1,9 +0,10 @@

import { A as AssetsManifest, R as RouteModules, a as Router, D as DataStrategyFunction, b as ActionFunction, c as LoaderFunction, C as ClientActionFunction, d as ClientLoaderFunction, e as LinksFunction, M as MetaFunction, f as RouteManifest, g as Route, F as FutureConfig, E as EntryContext, h as LoaderFunctionArgs, i as ActionFunctionArgs, T as To, j as RelativeRoutingType, k as Location, l as Action, P as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, N as NavigateOptions, p as Params, q as RouteObject, r as Navigation, s as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, t as Blocker, u as StaticHandlerContext, v as StaticHandler, w as FutureConfig$1, x as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, L as LoadRouteModuleFunction, y as IndexRouteObject, z as NonIndexRouteObject, G as RouterState } from './route-data-Dwy1K32H.js';
export { au as ClientActionFunctionArgs, av as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, O as Fetcher, a2 as FormEncType, a3 as FormMethod, J as GetScrollPositionFunction, K as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a5 as LazyRouteFunction, aA as LinkDescriptor, aw as MetaArgs, ax as MetaDescriptor, Q as NavigationStates, aq as Navigator, ay as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a6 as PathParam, a7 as RedirectFunction, at as RouteMatch, Y as RouterFetchOptions, V as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, a8 as ShouldRevalidateFunction, a9 as ShouldRevalidateFunctionArgs, aF as UNSAFE_DataRouterContext, aG as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aE as UNSAFE_ErrorResponseImpl, aH as UNSAFE_FetchersContext, aI as UNSAFE_LocationContext, aJ as UNSAFE_NavigationContext, aK as UNSAFE_RouteContext, aL as UNSAFE_ViewTransitionContext, aB as UNSAFE_createBrowserHistory, aM as UNSAFE_createClientRoutes, aN as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aD as UNSAFE_createRouter, aC as UNSAFE_invariant, aO as UNSAFE_shouldHydrateRouteLoader, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath } from './route-data-Dwy1K32H.js';
export { d as Await, A as AwaitProps, C as BrowserRouter, B as BrowserRouterProps, F as FetcherFormProps, w as FetcherSubmitFunction, a0 as FetcherSubmitOptions, x as FetcherWithComponents, K as Form, t as FormProps, D as HashRouter, H as HashRouterProps, o as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, E as Link, p as LinkProps, a7 as Links, e as MemoryRouter, M as MemoryRouterProps, a6 as Meta, J as NavLink, q as NavLinkProps, s as NavLinkRenderProps, f as Navigate, N as NavigateProps, g as Outlet, O as OutletProps, a1 as ParamKeyValuePair, P as PathRouteProps, a9 as PrefetchPageLinks, h as Route, a as RouteProps, i as Router, b as RouterProps, j as RouterProvider, R as RouterProviderProps, k as Routes, c as RoutesProps, a8 as Scripts, aa as ScriptsProps, Q as ScrollRestoration, S as ScrollRestorationProps, u as SetURLSearchParams, v as SubmitFunction, a2 as SubmitOptions, a4 as SubmitTarget, ac as UNSAFE_FrameworkContext, ad as UNSAFE_getPatchRoutesOnNavigationFunction, ab as UNSAFE_mapRouteProperties, ae as UNSAFE_useFogOFWarDiscovery, af as UNSAFE_useScrollRestoration, a3 as URLSearchParamsInit, y as createBrowserRouter, z as createHashRouter, l as createMemoryRouter, m as createRoutesFromChildren, n as createRoutesFromElements, a5 as createSearchParams, r as renderMatches, G as unstable_HistoryRouter, _ as unstable_usePrompt, Z as useBeforeUnload, X as useFetcher, Y as useFetchers, W as useFormAction, T as useLinkClickHandler, U as useSearchParams, V as useSubmit, $ as useViewTransitionState } from './fog-of-war-D8HgFD2R.js';
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as LoaderFunctionArgs, i as ActionFunctionArgs, T as To, j as RelativeRoutingType, k as Location, l as Action, P as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, N as NavigateOptions, p as Params, q as RouteObject, r as Navigation, s as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, t as Blocker, u as StaticHandlerContext, v as StaticHandler, F as FutureConfig$1, w as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, x as IndexRouteObject, y as NonIndexRouteObject, z as RouterState } from './route-data-CcXs0cOY.js';
export { as as ClientActionFunctionArgs, at as ClientLoaderFunctionArgs, am as DataRouteMatch, an as DataRouteObject, X as DataStrategyFunctionArgs, Y as DataStrategyMatch, Z as DataStrategyResult, $ as ErrorResponse, J as Fetcher, a0 as FormEncType, a1 as FormMethod, G as GetScrollPositionFunction, E as GetScrollRestorationKeyFunction, a2 as HTMLFormMethod, ax as HtmlLinkDescriptor, ac as IDLE_BLOCKER, ab as IDLE_FETCHER, aa as IDLE_NAVIGATION, a3 as LazyRouteFunction, ay as LinkDescriptor, au as MetaArgs, av as MetaDescriptor, K as NavigationStates, ao as Navigator, aw as PageLinkDescriptor, ap as PatchRoutesOnNavigationFunction, aq as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, ar as RouteMatch, W as RouterFetchOptions, O as RouterInit, V as RouterNavigateOptions, Q as RouterSubscriber, a6 as ShouldRevalidateFunction, a7 as ShouldRevalidateFunctionArgs, aD as UNSAFE_DataRouterContext, aE as UNSAFE_DataRouterStateContext, _ as UNSAFE_DataWithResponseInit, aC as UNSAFE_ErrorResponseImpl, aF as UNSAFE_FetchersContext, aG as UNSAFE_LocationContext, aH as UNSAFE_NavigationContext, aI as UNSAFE_RouteContext, aJ as UNSAFE_ViewTransitionContext, az as UNSAFE_createBrowserHistory, aB as UNSAFE_createRouter, aA as UNSAFE_invariant, a8 as createPath, ad as data, ae as generatePath, af as isRouteErrorResponse, ag as matchPath, ah as matchRoutes, a9 as parsePath, ai as redirect, aj as redirectDocument, ak as replace, al as resolvePath } from './route-data-CcXs0cOY.js';
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-Bw4B6JoE.js';
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-Bw4B6JoE.js';
import * as React from 'react';
import { ReactElement } from 'react';
import { A as AppLoadContext } from './data-CQbyyGzl.js';
import { ParseOptions, SerializeOptions } from 'cookie';
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
import { A as AppLoadContext$1 } from './data-CQbyyGzl.js';

@@ -46,2 +47,3 @@ declare const SingleFetchRedirectSymbol: unique symbol;

clientLoader?: ClientLoaderFunction;
clientMiddleware?: ClientMiddlewareFunction[];
ErrorBoundary?: any;

@@ -61,2 +63,3 @@ HydrateFallback?: any;

loader?: LoaderFunction;
middleware?: MiddlewareFunction[];
}

@@ -86,3 +89,3 @@

interface HandleDocumentRequestFunction {
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext$1): Promise<Response> | Response;
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
}

@@ -539,5 +542,2 @@ interface HandleDataRequestFunction {

type StubRouteObject = StubIndexRouteObject | StubNonIndexRouteObject;
interface AppLoadContext {
[key: string]: unknown;
}
interface RoutesTestStubProps {

@@ -571,6 +571,2 @@ /**

future?: Partial<FutureConfig>;
/**
* LoadRouteModuleFunction to use in the test
*/
loadRouteModule?: LoadRouteModuleFunction;
}

@@ -580,3 +576,3 @@ /**

*/
declare function createRoutesStub(routes: StubRouteObject[], context?: AppLoadContext): ({ initialEntries, initialIndex, hydrationData, future, loadRouteModule, }: RoutesTestStubProps) => React.JSX.Element;
declare function createRoutesStub(routes: StubRouteObject[], context?: AppLoadContext): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;

@@ -644,3 +640,3 @@ interface CookieSignatureOptions {

type RequestHandler = (request: Request, loadContext?: AppLoadContext$1) => Promise<Response>;
type RequestHandler = (request: Request, loadContext?: AppLoadContext) => Promise<Response>;
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;

@@ -849,2 +845,2 @@ declare const createRequestHandler: CreateRequestHandlerFunction;

export { ActionFunction, ActionFunctionArgs, AppLoadContext$1 as AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, ClientMiddlewareFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, MiddlewareFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };

@@ -1,2 +0,2 @@

import { aA as LinkDescriptor, ax as MetaDescriptor, aR as ServerDataFrom, aS as ClientDataFrom, aT as Func, aU as Equal, aV as Pretty } from '../../route-data-Dwy1K32H.js';
import { ay as LinkDescriptor, av as MetaDescriptor, aM as ServerDataFrom, aN as ClientDataFrom, aO as Func, M as MiddlewareFunction, d as ClientMiddlewareFunction, aP as Equal, aQ as Pretty } from '../../route-data-CcXs0cOY.js';
import { A as AppLoadContext } from '../../data-CQbyyGzl.js';

@@ -79,2 +79,6 @@ import 'react';

};
type CreateServerMiddlewareArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
type ServerMiddlewareNextFunction = Parameters<MiddlewareFunction>[1];
type CreateClientMiddlewareArgs<T extends RouteInfo> = Parameters<ClientMiddlewareFunction>[0];
type ClientMiddlewareNextFunction = Parameters<ClientMiddlewareFunction>[1];
type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;

@@ -110,2 +114,2 @@ type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {

export type { CreateActionData, CreateClientActionArgs, CreateClientLoaderArgs, CreateComponentProps, CreateErrorBoundaryProps, CreateHydrateFallbackProps, CreateLoaderData, CreateMetaArgs, CreateServerActionArgs, CreateServerLoaderArgs, HeadersArgs, LinkDescriptors, MetaDescriptors };
export type { ClientMiddlewareNextFunction, CreateActionData, CreateClientActionArgs, CreateClientLoaderArgs, CreateClientMiddlewareArgs, CreateComponentProps, CreateErrorBoundaryProps, CreateHydrateFallbackProps, CreateLoaderData, CreateMetaArgs, CreateServerActionArgs, CreateServerLoaderArgs, CreateServerMiddlewareArgs, HeadersArgs, LinkDescriptors, MetaDescriptors, ServerMiddlewareNextFunction };
/**
* react-router v0.0.0-experimental-6844c5934
* react-router v0.0.0-experimental-6b51a129b
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

import * as React from 'react';
import { R as RouterProviderProps$1 } from './fog-of-war-D8HgFD2R.js';
import { L as LoadRouteModuleFunction } from './route-data-Dwy1K32H.js';
import { R as RouterProviderProps$1 } from './fog-of-war-Bw4B6JoE.js';
import { D as DefaultRouterContext } from './route-data-CcXs0cOY.js';

@@ -8,9 +8,17 @@ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;

interface HydratedRouterProps {
/**
* Context object to passed through to `createBrowserRouter` and made available
* to `clientLoader`/`clientActon` functions
*/
context?: DefaultRouterContext;
}
/**
* Framework-mode router component to be used in `entry.client.tsx` to hydrate a
* router from a `ServerRouter`
*
* @category Router Components
*/
declare function HydratedRouter({ loadRouteModule, }: {
loadRouteModule?: LoadRouteModuleFunction;
}): React.JSX.Element;
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
export { HydratedRouter, RouterProvider, type RouterProviderProps };

@@ -1,9 +0,10 @@

import { A as AssetsManifest, R as RouteModules, a as Router, D as DataStrategyFunction, b as ActionFunction, c as LoaderFunction, C as ClientActionFunction, d as ClientLoaderFunction, e as LinksFunction, M as MetaFunction, f as RouteManifest, g as Route, F as FutureConfig, E as EntryContext, h as LoaderFunctionArgs, i as ActionFunctionArgs, T as To, j as RelativeRoutingType, k as Location, l as Action, P as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, N as NavigateOptions, p as Params, q as RouteObject, r as Navigation, s as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, t as Blocker, u as StaticHandlerContext, v as StaticHandler, w as FutureConfig$1, x as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, L as LoadRouteModuleFunction, y as IndexRouteObject, z as NonIndexRouteObject, G as RouterState } from './route-data-Dwy1K32H.js';
export { au as ClientActionFunctionArgs, av as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, O as Fetcher, a2 as FormEncType, a3 as FormMethod, J as GetScrollPositionFunction, K as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a5 as LazyRouteFunction, aA as LinkDescriptor, aw as MetaArgs, ax as MetaDescriptor, Q as NavigationStates, aq as Navigator, ay as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a6 as PathParam, a7 as RedirectFunction, at as RouteMatch, Y as RouterFetchOptions, V as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, a8 as ShouldRevalidateFunction, a9 as ShouldRevalidateFunctionArgs, aF as UNSAFE_DataRouterContext, aG as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aE as UNSAFE_ErrorResponseImpl, aH as UNSAFE_FetchersContext, aI as UNSAFE_LocationContext, aJ as UNSAFE_NavigationContext, aK as UNSAFE_RouteContext, aL as UNSAFE_ViewTransitionContext, aB as UNSAFE_createBrowserHistory, aM as UNSAFE_createClientRoutes, aN as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aD as UNSAFE_createRouter, aC as UNSAFE_invariant, aO as UNSAFE_shouldHydrateRouteLoader, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath } from './route-data-Dwy1K32H.js';
export { d as Await, A as AwaitProps, C as BrowserRouter, B as BrowserRouterProps, F as FetcherFormProps, w as FetcherSubmitFunction, a0 as FetcherSubmitOptions, x as FetcherWithComponents, K as Form, t as FormProps, D as HashRouter, H as HashRouterProps, o as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, E as Link, p as LinkProps, a7 as Links, e as MemoryRouter, M as MemoryRouterProps, a6 as Meta, J as NavLink, q as NavLinkProps, s as NavLinkRenderProps, f as Navigate, N as NavigateProps, g as Outlet, O as OutletProps, a1 as ParamKeyValuePair, P as PathRouteProps, a9 as PrefetchPageLinks, h as Route, a as RouteProps, i as Router, b as RouterProps, j as RouterProvider, R as RouterProviderProps, k as Routes, c as RoutesProps, a8 as Scripts, aa as ScriptsProps, Q as ScrollRestoration, S as ScrollRestorationProps, u as SetURLSearchParams, v as SubmitFunction, a2 as SubmitOptions, a4 as SubmitTarget, ac as UNSAFE_FrameworkContext, ad as UNSAFE_getPatchRoutesOnNavigationFunction, ab as UNSAFE_mapRouteProperties, ae as UNSAFE_useFogOFWarDiscovery, af as UNSAFE_useScrollRestoration, a3 as URLSearchParamsInit, y as createBrowserRouter, z as createHashRouter, l as createMemoryRouter, m as createRoutesFromChildren, n as createRoutesFromElements, a5 as createSearchParams, r as renderMatches, G as unstable_HistoryRouter, _ as unstable_usePrompt, Z as useBeforeUnload, X as useFetcher, Y as useFetchers, W as useFormAction, T as useLinkClickHandler, U as useSearchParams, V as useSubmit, $ as useViewTransitionState } from './fog-of-war-D8HgFD2R.js';
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as LoaderFunctionArgs, i as ActionFunctionArgs, T as To, j as RelativeRoutingType, k as Location, l as Action, P as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, N as NavigateOptions, p as Params, q as RouteObject, r as Navigation, s as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, t as Blocker, u as StaticHandlerContext, v as StaticHandler, F as FutureConfig$1, w as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, x as IndexRouteObject, y as NonIndexRouteObject, z as RouterState } from './route-data-CcXs0cOY.js';
export { as as ClientActionFunctionArgs, at as ClientLoaderFunctionArgs, am as DataRouteMatch, an as DataRouteObject, X as DataStrategyFunctionArgs, Y as DataStrategyMatch, Z as DataStrategyResult, $ as ErrorResponse, J as Fetcher, a0 as FormEncType, a1 as FormMethod, G as GetScrollPositionFunction, E as GetScrollRestorationKeyFunction, a2 as HTMLFormMethod, ax as HtmlLinkDescriptor, ac as IDLE_BLOCKER, ab as IDLE_FETCHER, aa as IDLE_NAVIGATION, a3 as LazyRouteFunction, ay as LinkDescriptor, au as MetaArgs, av as MetaDescriptor, K as NavigationStates, ao as Navigator, aw as PageLinkDescriptor, ap as PatchRoutesOnNavigationFunction, aq as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, ar as RouteMatch, W as RouterFetchOptions, O as RouterInit, V as RouterNavigateOptions, Q as RouterSubscriber, a6 as ShouldRevalidateFunction, a7 as ShouldRevalidateFunctionArgs, aD as UNSAFE_DataRouterContext, aE as UNSAFE_DataRouterStateContext, _ as UNSAFE_DataWithResponseInit, aC as UNSAFE_ErrorResponseImpl, aF as UNSAFE_FetchersContext, aG as UNSAFE_LocationContext, aH as UNSAFE_NavigationContext, aI as UNSAFE_RouteContext, aJ as UNSAFE_ViewTransitionContext, az as UNSAFE_createBrowserHistory, aB as UNSAFE_createRouter, aA as UNSAFE_invariant, a8 as createPath, ad as data, ae as generatePath, af as isRouteErrorResponse, ag as matchPath, ah as matchRoutes, a9 as parsePath, ai as redirect, aj as redirectDocument, ak as replace, al as resolvePath } from './route-data-CcXs0cOY.js';
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-Bw4B6JoE.js';
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-Bw4B6JoE.js';
import * as React from 'react';
import { ReactElement } from 'react';
import { A as AppLoadContext } from './data-CQbyyGzl.js';
import { ParseOptions, SerializeOptions } from 'cookie';
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
import { A as AppLoadContext$1 } from './data-CQbyyGzl.js';

@@ -46,2 +47,3 @@ declare const SingleFetchRedirectSymbol: unique symbol;

clientLoader?: ClientLoaderFunction;
clientMiddleware?: ClientMiddlewareFunction[];
ErrorBoundary?: any;

@@ -61,2 +63,3 @@ HydrateFallback?: any;

loader?: LoaderFunction;
middleware?: MiddlewareFunction[];
}

@@ -86,3 +89,3 @@

interface HandleDocumentRequestFunction {
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext$1): Promise<Response> | Response;
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
}

@@ -539,5 +542,2 @@ interface HandleDataRequestFunction {

type StubRouteObject = StubIndexRouteObject | StubNonIndexRouteObject;
interface AppLoadContext {
[key: string]: unknown;
}
interface RoutesTestStubProps {

@@ -571,6 +571,2 @@ /**

future?: Partial<FutureConfig>;
/**
* LoadRouteModuleFunction to use in the test
*/
loadRouteModule?: LoadRouteModuleFunction;
}

@@ -580,3 +576,3 @@ /**

*/
declare function createRoutesStub(routes: StubRouteObject[], context?: AppLoadContext): ({ initialEntries, initialIndex, hydrationData, future, loadRouteModule, }: RoutesTestStubProps) => React.JSX.Element;
declare function createRoutesStub(routes: StubRouteObject[], context?: AppLoadContext): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;

@@ -644,3 +640,3 @@ interface CookieSignatureOptions {

type RequestHandler = (request: Request, loadContext?: AppLoadContext$1) => Promise<Response>;
type RequestHandler = (request: Request, loadContext?: AppLoadContext) => Promise<Response>;
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;

@@ -849,2 +845,2 @@ declare const createRequestHandler: CreateRequestHandlerFunction;

export { ActionFunction, ActionFunctionArgs, AppLoadContext$1 as AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, ClientMiddlewareFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, MiddlewareFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };

@@ -1,2 +0,2 @@

import { aA as LinkDescriptor, ax as MetaDescriptor, aR as ServerDataFrom, aS as ClientDataFrom, aT as Func, aU as Equal, aV as Pretty } from '../../route-data-Dwy1K32H.js';
import { ay as LinkDescriptor, av as MetaDescriptor, aM as ServerDataFrom, aN as ClientDataFrom, aO as Func, M as MiddlewareFunction, d as ClientMiddlewareFunction, aP as Equal, aQ as Pretty } from '../../route-data-CcXs0cOY.js';
import { A as AppLoadContext } from '../../data-CQbyyGzl.js';

@@ -79,2 +79,6 @@ import 'react';

};
type CreateServerMiddlewareArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
type ServerMiddlewareNextFunction = Parameters<MiddlewareFunction>[1];
type CreateClientMiddlewareArgs<T extends RouteInfo> = Parameters<ClientMiddlewareFunction>[0];
type ClientMiddlewareNextFunction = Parameters<ClientMiddlewareFunction>[1];
type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;

@@ -110,2 +114,2 @@ type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {

export type { CreateActionData, CreateClientActionArgs, CreateClientLoaderArgs, CreateComponentProps, CreateErrorBoundaryProps, CreateHydrateFallbackProps, CreateLoaderData, CreateMetaArgs, CreateServerActionArgs, CreateServerLoaderArgs, HeadersArgs, LinkDescriptors, MetaDescriptors };
export type { ClientMiddlewareNextFunction, CreateActionData, CreateClientActionArgs, CreateClientLoaderArgs, CreateClientMiddlewareArgs, CreateComponentProps, CreateErrorBoundaryProps, CreateHydrateFallbackProps, CreateLoaderData, CreateMetaArgs, CreateServerActionArgs, CreateServerLoaderArgs, CreateServerMiddlewareArgs, HeadersArgs, LinkDescriptors, MetaDescriptors, ServerMiddlewareNextFunction };
/**
* react-router v0.0.0-experimental-6844c5934
* react-router v0.0.0-experimental-6b51a129b
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

{
"name": "react-router",
"version": "0.0.0-experimental-6844c5934",
"version": "0.0.0-experimental-6b51a129b",
"description": "Declarative routing for React",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc