@remix-run/router 1.15.3 → 1.16.0-pre.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.
- package/CHANGELOG.md +30 -0
- package/dist/index.d.ts +1 -1
- package/dist/router.cjs.js +396 -247
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +5 -1
- package/dist/router.js +382 -235
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +396 -247
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/dist/utils.d.ts +28 -10
- package/index.ts +4 -0
- package/package.json +2 -2
- package/router.ts +677 -354
- package/utils.ts +46 -14
package/dist/router.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { History, Location, Path, To } from "./history";
|
|
2
2
|
import { Action as HistoryAction } from "./history";
|
|
3
|
-
import type { AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticRouteObject, DeferredData, DetectErrorBoundaryFunction, FormEncType, HTMLFormMethod, MapRoutePropertiesFunction, RouteData, Submission, UIMatch } from "./utils";
|
|
3
|
+
import type { AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticRouteObject, DataStrategyFunction, DeferredData, DetectErrorBoundaryFunction, FormEncType, HTMLFormMethod, MapRoutePropertiesFunction, RouteData, Submission, UIMatch } from "./utils";
|
|
4
4
|
/**
|
|
5
5
|
* A Router instance manages all navigation and data loading/mutations
|
|
6
6
|
*/
|
|
@@ -258,6 +258,7 @@ export interface FutureConfig {
|
|
|
258
258
|
v7_partialHydration: boolean;
|
|
259
259
|
v7_prependBasename: boolean;
|
|
260
260
|
v7_relativeSplatPath: boolean;
|
|
261
|
+
unstable_skipActionErrorRevalidation: boolean;
|
|
261
262
|
}
|
|
262
263
|
/**
|
|
263
264
|
* Initialization options for createRouter
|
|
@@ -274,6 +275,7 @@ export interface RouterInit {
|
|
|
274
275
|
future?: Partial<FutureConfig>;
|
|
275
276
|
hydrationData?: HydrationState;
|
|
276
277
|
window?: Window;
|
|
278
|
+
unstable_dataStrategy?: DataStrategyFunction;
|
|
277
279
|
}
|
|
278
280
|
/**
|
|
279
281
|
* State returned from a server-side query() call
|
|
@@ -298,6 +300,8 @@ export interface StaticHandler {
|
|
|
298
300
|
dataRoutes: AgnosticDataRouteObject[];
|
|
299
301
|
query(request: Request, opts?: {
|
|
300
302
|
requestContext?: unknown;
|
|
303
|
+
skipLoaderErrorBubbling?: boolean;
|
|
304
|
+
unstable_dataStrategy?: DataStrategyFunction;
|
|
301
305
|
}): Promise<StaticHandlerContext | Response>;
|
|
302
306
|
queryRoute(request: Request, opts?: {
|
|
303
307
|
routeId?: string;
|