@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/dist/router.d.ts CHANGED
@@ -306,6 +306,7 @@ export interface StaticHandler {
306
306
  queryRoute(request: Request, opts?: {
307
307
  routeId?: string;
308
308
  requestContext?: unknown;
309
+ unstable_dataStrategy?: DataStrategyFunction;
309
310
  }): Promise<any>;
310
311
  }
311
312
  type ViewTransitionOpts = {
package/dist/router.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.16.0
2
+ * @remix-run/router v1.16.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -2997,7 +2997,8 @@ function createStaticHandler(routes, opts) {
2997
2997
  async function queryRoute(request, _temp4) {
2998
2998
  let {
2999
2999
  routeId,
3000
- requestContext
3000
+ requestContext,
3001
+ unstable_dataStrategy
3001
3002
  } = _temp4 === void 0 ? {} : _temp4;
3002
3003
  let url = new URL(request.url);
3003
3004
  let method = request.method;
@@ -3025,7 +3026,7 @@ function createStaticHandler(routes, opts) {
3025
3026
  pathname: location.pathname
3026
3027
  });
3027
3028
  }
3028
- let result = await queryImpl(request, location, matches, requestContext, null, false, match);
3029
+ let result = await queryImpl(request, location, matches, requestContext, unstable_dataStrategy || null, false, match);
3029
3030
  if (isResponse(result)) {
3030
3031
  return result;
3031
3032
  }