@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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/router",
3
- "version": "1.21.2-pre-v6.0",
3
+ "version": "1.22.0-pre-v6.1",
4
4
  "description": "Nested/Data-driven/Framework-agnostic Routing",
5
5
  "keywords": [
6
6
  "remix",
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
- path,
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
- path,
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;