@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/CHANGELOG.md +27 -0
- package/dist/index.d.ts +2 -2
- package/dist/router.cjs.js +188 -174
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +8 -8
- package/dist/router.js +180 -171
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +188 -174
- 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/dist/utils.d.ts +6 -7
- package/index.ts +7 -6
- package/package.json +1 -1
- package/router.ts +235 -216
- package/utils.ts +14 -8
package/utils.ts
CHANGED
|
@@ -255,15 +255,21 @@ export interface DataStrategyFunction {
|
|
|
255
255
|
(args: DataStrategyFunctionArgs): Promise<Record<string, DataStrategyResult>>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
export
|
|
258
|
+
export type AgnosticPatchRoutesOnNavigationFunctionArgs<
|
|
259
|
+
O extends AgnosticRouteObject = AgnosticRouteObject,
|
|
259
260
|
M extends AgnosticRouteMatch = AgnosticRouteMatch
|
|
260
|
-
> {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
> = {
|
|
262
|
+
path: string;
|
|
263
|
+
matches: M[];
|
|
264
|
+
patch: (routeId: string | null, children: O[]) => void;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export type AgnosticPatchRoutesOnNavigationFunction<
|
|
268
|
+
O extends AgnosticRouteObject = AgnosticRouteObject,
|
|
269
|
+
M extends AgnosticRouteMatch = AgnosticRouteMatch
|
|
270
|
+
> = (
|
|
271
|
+
opts: AgnosticPatchRoutesOnNavigationFunctionArgs<O, M>
|
|
272
|
+
) => void | Promise<void>;
|
|
267
273
|
|
|
268
274
|
/**
|
|
269
275
|
* Function provided by the framework-aware layers to set any framework-specific
|