@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/router",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Nested/Data-driven/Framework-agnostic Routing",
5
5
  "keywords": [
6
6
  "remix",
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?: { routeId?: string; requestContext?: unknown }
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
- }: { requestContext?: unknown; routeId?: string } = {}
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
  );