@remix-run/router 1.19.2 → 1.20.0-pre.0

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
@@ -285,8 +285,8 @@ export interface RouterInit {
285
285
  future?: Partial<FutureConfig>;
286
286
  hydrationData?: HydrationState;
287
287
  window?: Window;
288
- unstable_patchRoutesOnNavigation?: AgnosticPatchRoutesOnNavigationFunction;
289
- unstable_dataStrategy?: DataStrategyFunction;
288
+ dataStrategy?: DataStrategyFunction;
289
+ patchRoutesOnNavigation?: AgnosticPatchRoutesOnNavigationFunction;
290
290
  }
291
291
  /**
292
292
  * State returned from a server-side query() call
@@ -312,12 +312,12 @@ export interface StaticHandler {
312
312
  query(request: Request, opts?: {
313
313
  requestContext?: unknown;
314
314
  skipLoaderErrorBubbling?: boolean;
315
- unstable_dataStrategy?: DataStrategyFunction;
315
+ dataStrategy?: DataStrategyFunction;
316
316
  }): Promise<StaticHandlerContext | Response>;
317
317
  queryRoute(request: Request, opts?: {
318
318
  routeId?: string;
319
319
  requestContext?: unknown;
320
- unstable_dataStrategy?: DataStrategyFunction;
320
+ dataStrategy?: DataStrategyFunction;
321
321
  }): Promise<any>;
322
322
  }
323
323
  type ViewTransitionOpts = {
@@ -330,8 +330,8 @@ type ViewTransitionOpts = {
330
330
  export interface RouterSubscriber {
331
331
  (state: RouterState, opts: {
332
332
  deletedFetchers: string[];
333
- unstable_viewTransitionOpts?: ViewTransitionOpts;
334
- unstable_flushSync: boolean;
333
+ viewTransitionOpts?: ViewTransitionOpts;
334
+ flushSync: boolean;
335
335
  }): void;
336
336
  }
337
337
  /**
@@ -351,13 +351,13 @@ export type RelativeRoutingType = "route" | "path";
351
351
  type BaseNavigateOrFetchOptions = {
352
352
  preventScrollReset?: boolean;
353
353
  relative?: RelativeRoutingType;
354
- unstable_flushSync?: boolean;
354
+ flushSync?: boolean;
355
355
  };
356
356
  type BaseNavigateOptions = BaseNavigateOrFetchOptions & {
357
357
  replace?: boolean;
358
358
  state?: any;
359
359
  fromRouteId?: string;
360
- unstable_viewTransition?: boolean;
360
+ viewTransition?: boolean;
361
361
  };
362
362
  type BaseSubmissionOptions = {
363
363
  formMethod?: HTMLFormMethod;