@remix-run/router 1.16.0 → 1.16.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 +6 -0
- package/dist/router.cjs.js +4 -3
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +1 -0
- package/dist/router.js +4 -3
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +4 -3
- 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/package.json +1 -1
- package/router.ts +12 -3
package/package.json
CHANGED
package/router.ts
CHANGED
|
@@ -412,7 +412,11 @@ export interface StaticHandler {
|
|
|
412
412
|
): Promise<StaticHandlerContext | Response>;
|
|
413
413
|
queryRoute(
|
|
414
414
|
request: Request,
|
|
415
|
-
opts?: {
|
|
415
|
+
opts?: {
|
|
416
|
+
routeId?: string;
|
|
417
|
+
requestContext?: unknown;
|
|
418
|
+
unstable_dataStrategy?: DataStrategyFunction;
|
|
419
|
+
}
|
|
416
420
|
): Promise<any>;
|
|
417
421
|
}
|
|
418
422
|
|
|
@@ -3099,7 +3103,12 @@ export function createStaticHandler(
|
|
|
3099
3103
|
{
|
|
3100
3104
|
routeId,
|
|
3101
3105
|
requestContext,
|
|
3102
|
-
|
|
3106
|
+
unstable_dataStrategy,
|
|
3107
|
+
}: {
|
|
3108
|
+
requestContext?: unknown;
|
|
3109
|
+
routeId?: string;
|
|
3110
|
+
unstable_dataStrategy?: DataStrategyFunction;
|
|
3111
|
+
} = {}
|
|
3103
3112
|
): Promise<any> {
|
|
3104
3113
|
let url = new URL(request.url);
|
|
3105
3114
|
let method = request.method;
|
|
@@ -3132,7 +3141,7 @@ export function createStaticHandler(
|
|
|
3132
3141
|
location,
|
|
3133
3142
|
matches,
|
|
3134
3143
|
requestContext,
|
|
3135
|
-
null,
|
|
3144
|
+
unstable_dataStrategy || null,
|
|
3136
3145
|
false,
|
|
3137
3146
|
match
|
|
3138
3147
|
);
|