diff --git a/.changeset/cyan-bobcats-notice.md b/.changeset/cyan-bobcats-notice.md deleted file mode 100644 index cb696a9fe8..0000000000 --- a/.changeset/cyan-bobcats-notice.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Fog of War: Update `unstable_patchRoutesOnMiss` logic so that we call the method when we match routes with dynamic param or splat segments in case there exists a higher-scoring static route that we've not yet discovered. - -- We also now leverage an internal FIFO queue of previous paths we've already called `unstable_patchRouteOnMiss` against so that we don't re-call on subsequent navigations to the same path diff --git a/.changeset/silver-coats-work.md b/.changeset/silver-coats-work.md deleted file mode 100644 index 6fd814c3f7..0000000000 --- a/.changeset/silver-coats-work.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router-dom": patch -"react-router": patch -"@remix-run/router": patch ---- - -Rename `unstable_patchRoutesOnMiss` to `unstable_patchRoutesOnNavigation` because it will now be called on the first navigation to paths matching splat/param routes in case there exists a higher-scoring route match not yet discovered diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b4451730d..8957fe7539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -203,6 +203,18 @@ Date: YYYY-MM-DD **Full Changelog**: [`v6.X.Y...v6.X.Y`](https://github.com/remix-run/react-router/compare/react-router@6.X.Y...react-router@6.X.Y) --> +## v6.26.1 + +Date: 2024-08-15 + +### Patch Changes + +- Rename `unstable_patchRoutesOnMiss` to `unstable_patchRoutesOnNavigation` to match new behavior ([#11888](https://github.com/remix-run/react-router/pull/11888)) +- Update `unstable_patchRoutesOnNavigation` logic so that we call the method when we match routes with dynamic param or splat segments in case there exists a higher-scoring static route that we've not yet discovered ([#11883](https://github.com/remix-run/react-router/pull/11883)) + - We also now leverage an internal FIFO queue of previous paths we've already called `unstable_patchRoutesOnNavigation` against so that we don't re-call on subsequent navigations to the same path + +**Full Changelog**: [`v6.26.0...v6.26.1`](https://github.com/remix-run/react-router/compare/react-router@6.26.0...react-router@6.26.1) + ## v6.26.0 Date: 2024-08-01 diff --git a/package.json b/package.json index e1c0dd4700..3edd2894c7 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "none": "17.3 kB" }, "packages/react-router-dom/dist/umd/react-router-dom.production.min.js": { - "none": "23.7 kB" + "none": "23.8 kB" } }, "pnpm": { diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 51677f954e..8cabb0d5e1 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router-dom-v5-compat` +## 6.26.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.19.1` + - `react-router-dom@6.26.1` + - `react-router@6.26.1` + ## 6.26.0 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 5bb981bb10..5a30e2489f 100644 --- a/packages/react-router-dom-v5-compat/package.json +++ b/packages/react-router-dom-v5-compat/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom-v5-compat", - "version": "6.26.0", + "version": "6.26.1", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 152d358a9b..fff536fecc 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router-dom` +## 6.26.1 + +### Patch Changes + +- Rename `unstable_patchRoutesOnMiss` to `unstable_patchRoutesOnNavigation` to match new behavior ([#11888](https://github.com/remix-run/react-router/pull/11888)) +- Updated dependencies: + - `@remix-run/router@1.19.1` + - `react-router@6.26.1` + ## 6.26.0 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 54ed162217..f0dc27ce8e 100644 --- a/packages/react-router-dom/package.json +++ b/packages/react-router-dom/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom", - "version": "6.26.0", + "version": "6.26.1", "description": "Declarative routing for React web applications", "keywords": [ "react", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 7f7b3d6108..8a08692665 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router-native` +## 6.26.1 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.26.1` + ## 6.26.0 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index c6833d0c15..6d693a8f79 100644 --- a/packages/react-router-native/package.json +++ b/packages/react-router-native/package.json @@ -1,6 +1,6 @@ { "name": "react-router-native", - "version": "6.26.0", + "version": "6.26.1", "description": "Declarative routing for React Native applications", "keywords": [ "react", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 083bdb9b16..dbde50bfec 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,13 @@ # `react-router` +## 6.26.1 + +### Patch Changes + +- Rename `unstable_patchRoutesOnMiss` to `unstable_patchRoutesOnNavigation` to match new behavior ([#11888](https://github.com/remix-run/react-router/pull/11888)) +- Updated dependencies: + - `@remix-run/router@1.19.1` + ## 6.26.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index be90f5b3e5..db7f9b2a3a 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.26.0", + "version": "6.26.1", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index d250f4ab2d..b24d37ebb5 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,15 @@ # `@remix-run/router` +## 1.19.1 + +### Patch Changes + +- Fog of War: Update `unstable_patchRoutesOnMiss` logic so that we call the method when we match routes with dynamic param or splat segments in case there exists a higher-scoring static route that we've not yet discovered. ([#11883](https://github.com/remix-run/react-router/pull/11883)) + + - We also now leverage an internal FIFO queue of previous paths we've already called `unstable_patchRouteOnMiss` against so that we don't re-call on subsequent navigations to the same path + +- Rename `unstable_patchRoutesOnMiss` to `unstable_patchRoutesOnNavigation` to match new behavior ([#11888](https://github.com/remix-run/react-router/pull/11888)) + ## 1.19.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index 2369d2ade1..0a978727e2 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.19.0", + "version": "1.19.1", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",