@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# `@remix-run/router`
|
|
2
2
|
|
|
3
|
+
## 1.22.0-pre-v6.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Provide the request `signal` as a parameter to `patchRoutesOnNavigation` ([#12900](https://github.com/remix-run/react-router/pull/12900))
|
|
8
|
+
|
|
9
|
+
- This can be used to abort any manifest fetches if the in-flight navigation/fetcher is aborted
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Strip search parameters from `patchRoutesOnNavigation` `path` param for fetcher calls ([#12899](https://github.com/remix-run/react-router/pull/12899))
|
|
14
|
+
|
|
3
15
|
## 1.21.2-pre-v6.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/router.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/router v1.
|
|
2
|
+
* @remix-run/router v1.22.0-pre-v6.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2856,7 +2856,7 @@ function createRouter(init) {
|
|
|
2856
2856
|
let abortController = new AbortController();
|
|
2857
2857
|
let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);
|
|
2858
2858
|
if (isFogOfWar) {
|
|
2859
|
-
let discoverResult = await discoverRoutes(requestMatches,
|
|
2859
|
+
let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
|
|
2860
2860
|
if (discoverResult.type === "aborted") {
|
|
2861
2861
|
return;
|
|
2862
2862
|
} else if (discoverResult.type === "error") {
|
|
@@ -3042,7 +3042,7 @@ function createRouter(init) {
|
|
|
3042
3042
|
let abortController = new AbortController();
|
|
3043
3043
|
let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);
|
|
3044
3044
|
if (isFogOfWar) {
|
|
3045
|
-
let discoverResult = await discoverRoutes(matches,
|
|
3045
|
+
let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
|
|
3046
3046
|
if (discoverResult.type === "aborted") {
|
|
3047
3047
|
return;
|
|
3048
3048
|
} else if (discoverResult.type === "error") {
|
|
@@ -3600,6 +3600,7 @@ function createRouter(init) {
|
|
|
3600
3600
|
let localManifest = manifest;
|
|
3601
3601
|
try {
|
|
3602
3602
|
await patchRoutesOnNavigationImpl({
|
|
3603
|
+
signal,
|
|
3603
3604
|
path: pathname,
|
|
3604
3605
|
matches: partialMatches,
|
|
3605
3606
|
patch: (routeId, children) => {
|