@remix-run/router 1.21.2-pre-v6.0 → 1.22.0-pre-v6.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/CHANGELOG.md +12 -0
- package/dist/router.cjs.js +4 -3
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +4 -3
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +4 -3
- 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 +1 -0
- package/package.json +1 -1
- package/router.ts +3 -2
- package/utils.ts +1 -0
package/dist/utils.d.ts
CHANGED
|
@@ -201,6 +201,7 @@ export interface DataStrategyFunction {
|
|
|
201
201
|
(args: DataStrategyFunctionArgs): Promise<Record<string, DataStrategyResult>>;
|
|
202
202
|
}
|
|
203
203
|
export type AgnosticPatchRoutesOnNavigationFunctionArgs<O extends AgnosticRouteObject = AgnosticRouteObject, M extends AgnosticRouteMatch = AgnosticRouteMatch> = {
|
|
204
|
+
signal: AbortSignal;
|
|
204
205
|
path: string;
|
|
205
206
|
matches: M[];
|
|
206
207
|
patch: (routeId: string | null, children: O[]) => void;
|
package/package.json
CHANGED
package/router.ts
CHANGED
|
@@ -2264,7 +2264,7 @@ export function createRouter(init: RouterInit): Router {
|
|
|
2264
2264
|
if (isFogOfWar) {
|
|
2265
2265
|
let discoverResult = await discoverRoutes(
|
|
2266
2266
|
requestMatches,
|
|
2267
|
-
|
|
2267
|
+
new URL(fetchRequest.url).pathname,
|
|
2268
2268
|
fetchRequest.signal
|
|
2269
2269
|
);
|
|
2270
2270
|
|
|
@@ -2556,7 +2556,7 @@ export function createRouter(init: RouterInit): Router {
|
|
|
2556
2556
|
if (isFogOfWar) {
|
|
2557
2557
|
let discoverResult = await discoverRoutes(
|
|
2558
2558
|
matches,
|
|
2559
|
-
|
|
2559
|
+
new URL(fetchRequest.url).pathname,
|
|
2560
2560
|
fetchRequest.signal
|
|
2561
2561
|
);
|
|
2562
2562
|
|
|
@@ -3293,6 +3293,7 @@ export function createRouter(init: RouterInit): Router {
|
|
|
3293
3293
|
let localManifest = manifest;
|
|
3294
3294
|
try {
|
|
3295
3295
|
await patchRoutesOnNavigationImpl({
|
|
3296
|
+
signal,
|
|
3296
3297
|
path: pathname,
|
|
3297
3298
|
matches: partialMatches,
|
|
3298
3299
|
patch: (routeId, children) => {
|
package/utils.ts
CHANGED
|
@@ -259,6 +259,7 @@ export type AgnosticPatchRoutesOnNavigationFunctionArgs<
|
|
|
259
259
|
O extends AgnosticRouteObject = AgnosticRouteObject,
|
|
260
260
|
M extends AgnosticRouteMatch = AgnosticRouteMatch
|
|
261
261
|
> = {
|
|
262
|
+
signal: AbortSignal;
|
|
262
263
|
path: string;
|
|
263
264
|
matches: M[];
|
|
264
265
|
patch: (routeId: string | null, children: O[]) => void;
|