From 7cbe349fac324fdf908ef39c5528c633610fbc78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:56:30 -0400 Subject: [PATCH] chore: Update version for release (pre) (#11955) * chore: Update version for release (pre) * Draft release notes --------- Co-authored-by: github-actions[bot] Co-authored-by: Matt Brophy --- .changeset/pre.json | 7 +++++- .changeset/serious-news-kick.md | 2 +- CHANGELOG.md | 22 +++++++++++++++++++ .../react-router-dom-v5-compat/CHANGELOG.md | 9 ++++++++ .../react-router-dom-v5-compat/package.json | 2 +- packages/react-router-dom/CHANGELOG.md | 8 +++++++ packages/react-router-dom/package.json | 2 +- packages/react-router-native/CHANGELOG.md | 7 ++++++ packages/react-router-native/package.json | 2 +- packages/react-router/CHANGELOG.md | 7 ++++++ packages/react-router/package.json | 2 +- packages/router/CHANGELOG.md | 19 ++++++++++++++++ packages/router/package.json | 2 +- 13 files changed, 84 insertions(+), 7 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 11b95fd69d..b30d841cc7 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,5 +8,10 @@ "react-router-native": "6.26.1", "@remix-run/router": "1.19.1" }, - "changesets": [] + "changesets": [ + "four-books-bow", + "hot-insects-rescue", + "serious-news-kick", + "soft-socks-remain" + ] } diff --git a/.changeset/serious-news-kick.md b/.changeset/serious-news-kick.md index 0aca964802..91011995ae 100644 --- a/.changeset/serious-news-kick.md +++ b/.changeset/serious-news-kick.md @@ -2,4 +2,4 @@ "@remix-run/router": patch --- -Fix blocker usage when `blocker.proceed` is called quickly/syncronously +Fix blocker usage when `blocker.proceed` is called quickly/synchronously diff --git a/CHANGELOG.md b/CHANGELOG.md index 8957fe7539..7d7493cedc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -203,6 +203,28 @@ 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.2 + +Date: 2024-09-04 + +### Patch Changes + +- Update the `unstable_dataStrategy` API to allow for more advanced implementations ([#11943](https://github.com/remix-run/react-router/pull/11943)) + - ⚠️ If you have already adopted `unstable_dataStrategy`, please review carefully as this includes breaking changes to this API + - Rename `unstable_HandlerResult` to `unstable_DataStrategyResult` + - Change the return signature of `unstable_dataStrategy` from a parallel array of `unstable_DataStrategyResult[]` (parallel to `matches`) to a key/value object of `routeId => unstable_DataStrategyResult` + - This allows more advanced control over revalidation behavior because you can opt-into or out-of revalidating data that may not have been revalidated by default (via `match.shouldLoad`) + - You should now return/throw a result from your `handlerOverride` instead of returning a `DataStrategyResult` + - The return value (or thrown error) from your `handlerOverride` will be wrapped up into a `DataStrategyResult` and returned fromm `match.resolve` + - Therefore, if you are aggregating the results of `match.resolve()` into a final results object you should not need to think about the `DataStrategyResult` type + - If you are manually filling your results object from within your `handlerOverride`, then you will need to assign a `DataStrategyResult` as the value so React Router knows if it's a successful execution or an error (see examples in the documentation for details) + - Added a new `fetcherKey` parameter to `unstable_dataStrategy` to allow differentiation from navigational and fetcher calls +- Preserve opted-in view transitions through redirects ([#11925](https://github.com/remix-run/react-router/pull/11925)) +- Preserve pending view transitions through a router revalidation call ([#11917](https://github.com/remix-run/react-router/pull/11917)) +- Fix blocker usage when `blocker.proceed` is called quickly/synchronously ([#11930](https://github.com/remix-run/react-router/pull/11930)) + +**Full Changelog**: [`v6.26.1...v6.26.2`](https://github.com/remix-run/react-router/compare/react-router@6.26.1...react-router@6.26.2) + ## v6.26.1 Date: 2024-08-15 diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 8cabb0d5e1..3e1361a69f 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.2-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.19.2-pre.0` + - `react-router@6.26.2-pre.0` + - `react-router-dom@6.26.2-pre.0` + ## 6.26.1 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 5a30e2489f..4717cc4aaa 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.1", + "version": "6.26.2-pre.0", "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 fff536fecc..3c420db033 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,13 @@ # `react-router-dom` +## 6.26.2-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.19.2-pre.0` + - `react-router@6.26.2-pre.0` + ## 6.26.1 ### Patch Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index f0dc27ce8e..c194fde91f 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.1", + "version": "6.26.2-pre.0", "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 8a08692665..aef73f5a62 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router-native` +## 6.26.2-pre.0 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.26.2-pre.0` + ## 6.26.1 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 6d693a8f79..3527ed771b 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.1", + "version": "6.26.2-pre.0", "description": "Declarative routing for React Native applications", "keywords": [ "react", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index dbde50bfec..0946108c3c 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router` +## 6.26.2-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.19.2-pre.0` + ## 6.26.1 ### Patch Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index db7f9b2a3a..108d0fb0e3 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.26.1", + "version": "6.26.2-pre.0", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index b24d37ebb5..9a62f249fd 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,24 @@ # `@remix-run/router` +## 1.19.2-pre.0 + +### Patch Changes + +- Update the `unstable_dataStrategy` API to allow for more advanced implementations ([#11943](https://github.com/remix-run/react-router/pull/11943)) + + - Rename `unstable_HandlerResult` to `unstable_DataStrategyResult` + - The return signature has changed from a parallel array of `unstable_DataStrategyResult[]` (parallel to `matches`) to a key/value object of `routeId => unstable_DataStrategyResult` + - This allows you to more easily decide to opt-into or out-of revalidating data that may not have been revalidated by default (via `match.shouldLoad`) + - ⚠️ This is a breaking change if you've currently adopted `unstable_dataStrategy` + - Added a new `fetcherKey` parameter to `unstable_dataStrategy` to allow differentiation from navigational and fetcher calls + - You should now return/throw a result from your `handlerOverride` instead of returning a `DataStrategyResult` + - If you are aggregating the results of `match.resolve()` into a final results object you should not need to think about the `DataStrategyResult` type + - If you are manually filling your results object from within your `handlerOverride`, then you will need to assign a `DataStrategyResult` as the value so React Router knows if it's a successful execution or an error. + +- Preserve view transition through redirects ([#11925](https://github.com/remix-run/react-router/pull/11925)) +- Fix blocker usage when `blocker.proceed` is called quickly/syncronously ([#11930](https://github.com/remix-run/react-router/pull/11930)) +- Preserve pending view transitions through a router revalidation call ([#11917](https://github.com/remix-run/react-router/pull/11917)) + ## 1.19.1 ### Patch Changes diff --git a/packages/router/package.json b/packages/router/package.json index 0a978727e2..354e579016 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.19.1", + "version": "1.19.2-pre.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",