@remix-run/router 1.16.1 → 1.17.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
@@ -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, DataStrategyFunction, 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, AgnosticPatchRoutesOnMissFunction } from "./utils";
4
4
  /**
5
5
  * A Router instance manages all navigation and data loading/mutations
6
6
  */
@@ -160,6 +160,15 @@ export interface Router {
160
160
  * @param key The identifier for the blocker
161
161
  */
162
162
  deleteBlocker(key: string): void;
163
+ /**
164
+ * @internal
165
+ * PRIVATE DO NOT USE
166
+ *
167
+ * Patch additional children routes into an existing parent route
168
+ * @param routeId The parent route id
169
+ * @param children The additional children routes
170
+ */
171
+ patchRoutes(routeId: string | null, children: AgnosticRouteObject[]): void;
163
172
  /**
164
173
  * @internal
165
174
  * PRIVATE - DO NOT USE
@@ -275,6 +284,7 @@ export interface RouterInit {
275
284
  future?: Partial<FutureConfig>;
276
285
  hydrationData?: HydrationState;
277
286
  window?: Window;
287
+ unstable_patchRoutesOnMiss?: AgnosticPatchRoutesOnMissFunction;
278
288
  unstable_dataStrategy?: DataStrategyFunction;
279
289
  }
280
290
  /**