From e38dd4f2db8fd218b9e322bceb3114d8a473fc95 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 23 Apr 2024 15:11:17 +0000 Subject: [PATCH 1/3] chore: Update version for release --- .changeset/data-strategy.md | 12 ------------ .changeset/funny-tips-beg.md | 5 ----- .changeset/pre.json | 18 ------------------ .changeset/skip-action-revalidation.md | 11 ----------- .changeset/slow-flies-help.md | 5 ----- .changeset/static-query-flags.md | 5 ----- .../react-router-dom-v5-compat/CHANGELOG.md | 17 ++++------------- .../react-router-dom-v5-compat/package.json | 2 +- packages/react-router-dom/CHANGELOG.md | 14 +++----------- packages/react-router-dom/package.json | 2 +- packages/react-router-native/CHANGELOG.md | 11 ++--------- packages/react-router-native/package.json | 2 +- packages/react-router/CHANGELOG.md | 11 ++--------- packages/react-router/package.json | 2 +- packages/router/CHANGELOG.md | 17 ++++++----------- packages/router/package.json | 2 +- 16 files changed, 22 insertions(+), 114 deletions(-) delete mode 100644 .changeset/data-strategy.md delete mode 100644 .changeset/funny-tips-beg.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/skip-action-revalidation.md delete mode 100644 .changeset/slow-flies-help.md delete mode 100644 .changeset/static-query-flags.md diff --git a/.changeset/data-strategy.md b/.changeset/data-strategy.md deleted file mode 100644 index f42a15bb40..0000000000 --- a/.changeset/data-strategy.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@remix-run/router": minor -"react-router": minor -"react-router-dom": minor -"react-router-dom-v5-compat": minor -"react-router-native": minor ---- - -Add a new `unstable_dataStrategy` configuration option - -- This option allows Data Router applications to take control over the approach for executing route loaders and actions -- The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more diff --git a/.changeset/funny-tips-beg.md b/.changeset/funny-tips-beg.md deleted file mode 100644 index f3ef8818e7..0000000000 --- a/.changeset/funny-tips-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -[REMOVE] Remove staticHandler.query flags that we can implement in dataStrategy diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 8012661080..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.22.3", - "react-router-dom": "6.22.3", - "react-router-dom-v5-compat": "6.22.3", - "react-router-native": "6.22.3", - "@remix-run/router": "1.15.3" - }, - "changesets": [ - "data-strategy", - "funny-tips-beg", - "skip-action-revalidation", - "slow-flies-help", - "static-query-flags" - ] -} diff --git a/.changeset/skip-action-revalidation.md b/.changeset/skip-action-revalidation.md deleted file mode 100644 index 379d4a7c13..0000000000 --- a/.changeset/skip-action-revalidation.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@remix-run/router": minor ---- - -Add a new `future.unstable_skipActionRevalidation` future flag - -- Currently, active loaders revalidate after any action, regardless of the result -- With this flag enabled, actions that return/throw a 4xx/5xx response status will no longer automatically revalidate -- This should reduce load on your server since it's rare that a 4xx/5xx should actually mutate any data -- If you need to revalidate after a 4xx/5xx result with this flag enabled, you can still do that via returning `true` from `shouldRevalidate` -- `shouldRevalidate` now also receives a new `unstable_actionStatus` argument alongside `actionResult` so you can make decision based on the status of the `action` response without having to encode it into the action data diff --git a/.changeset/slow-flies-help.md b/.changeset/slow-flies-help.md deleted file mode 100644 index 26479b827d..0000000000 --- a/.changeset/slow-flies-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": minor ---- - -- Move `unstable_dataStrategy` from `createStaticHandler` to `staticHandler.query` so it can be request-specific for use with the `ResponseStub` approach in Remix. It's not really applicable to `queryRoute` for now since that's a singular handler call anyway so any pre-processing/post/processing could be done there manually. diff --git a/.changeset/static-query-flags.md b/.changeset/static-query-flags.md deleted file mode 100644 index bbdfebc292..0000000000 --- a/.changeset/static-query-flags.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": minor ---- - -Added a `skipLoaderErrorBubbling` flag to `staticHandler.query` to disable error bubbling on loader executions for single-fetch scenarios where the client-side router will handle the bubbling diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 31c10b82b0..9d6719f1ee 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,15 +1,6 @@ # `react-router-dom-v5-compat` -## 6.23.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/router@1.16.0-pre.1` - - `react-router@6.23.0-pre.1` - - `react-router-dom@6.23.0-pre.1` - -## 6.23.0-pre.0 +## 6.23.0 ### Minor Changes @@ -21,9 +12,9 @@ ### Patch Changes - Updated dependencies: - - `@remix-run/router@1.16.0-pre.0` - - `react-router@6.23.0-pre.0` - - `react-router-dom@6.23.0-pre.0` + - `@remix-run/router@1.16.0` + - `react-router@6.23.0` + - `react-router-dom@6.23.0` ## 6.22.3 diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 4082dc6a46..cccca5fe5d 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.23.0-pre.1", + "version": "6.23.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 3fd7068636..585fbecfe2 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,14 +1,6 @@ # `react-router-dom` -## 6.23.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/router@1.16.0-pre.1` - - `react-router@6.23.0-pre.1` - -## 6.23.0-pre.0 +## 6.23.0 ### Minor Changes @@ -20,8 +12,8 @@ ### Patch Changes - Updated dependencies: - - `@remix-run/router@1.16.0-pre.0` - - `react-router@6.23.0-pre.0` + - `@remix-run/router@1.16.0` + - `react-router@6.23.0` ## 6.22.3 diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index cd81ed1bf0..407c913a5d 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.23.0-pre.1", + "version": "6.23.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 dee2fd4e8a..5d234f3a4b 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,13 +1,6 @@ # `react-router-native` -## 6.23.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.23.0-pre.1` - -## 6.23.0-pre.0 +## 6.23.0 ### Minor Changes @@ -19,7 +12,7 @@ ### Patch Changes - Updated dependencies: - - `react-router@6.23.0-pre.0` + - `react-router@6.23.0` ## 6.22.3 diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 0e48053c33..adfe7b83a1 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.23.0-pre.1", + "version": "6.23.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 4dfd1d2da6..c312149e1a 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,13 +1,6 @@ # `react-router` -## 6.23.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/router@1.16.0-pre.1` - -## 6.23.0-pre.0 +## 6.23.0 ### Minor Changes @@ -19,7 +12,7 @@ ### Patch Changes - Updated dependencies: - - `@remix-run/router@1.16.0-pre.0` + - `@remix-run/router@1.16.0` ## 6.22.3 diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 9761112e80..692a6b3a71 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.23.0-pre.1", + "version": "6.23.0", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 9ba2d9ae32..cd2c03c689 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,12 +1,6 @@ # `@remix-run/router` -## 1.16.0-pre.1 - -### Patch Changes - -- [REMOVE] Remove staticHandler.query flags that we can implement in dataStrategy ([#11384](https://github.com/remix-run/react-router/pull/11384)) - -## 1.16.0-pre.0 +## 1.16.0 ### Minor Changes @@ -24,11 +18,12 @@ - `shouldRevalidate` now also receives a new `unstable_actionStatus` argument alongside `actionResult` so you can make decision based on the status of the `action` response without having to encode it into the action data - - Move `unstable_dataStrategy` from `createStaticHandler` to `staticHandler.query` so it can be request-specific for use with the `ResponseStub` approach in Remix. It's not really applicable to `queryRoute` for now since that's a singular handler call anyway so any pre-processing/post/processing could be done there manually. ([#11377](https://github.com/remix-run/react-router/pull/11377)) - - Added a new `skipLoaders` flag to `staticHandler.query` for calling only the action in Remix Single Fetch -- Added 2 new options to the `staticHandler.query` method for use in Remix's Single Fetch implementation: ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - `loadRouteIds`: An optional array of route IDs to load if you wish to load a subset of the matched routes (useful for fine-grained revalidation) - - `skipLoaderErrorBubbling`: Disable error bubbling on loader executions for single-fetch scenarios where the client-side router will handle the bubbling +- Added a `skipLoaderErrorBubbling` flag to `staticHandler.query` to disable error bubbling on loader executions for single-fetch scenarios where the client-side router will handle the bubbling ([#11098](https://github.com/remix-run/react-router/pull/11098)) + +### Patch Changes + +- \[REMOVE] Remove staticHandler.query flags that we can implement in dataStrategy ([#11384](https://github.com/remix-run/react-router/pull/11384)) ## 1.15.3 diff --git a/packages/router/package.json b/packages/router/package.json index 7ee7f7ba4e..2560dadb8d 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.16.0-pre.1", + "version": "1.16.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix", From 4da250fc52061d3bda62b70d9fa60a1105b7fabe Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 23 Apr 2024 11:16:02 -0400 Subject: [PATCH 2/3] Update release notes --- packages/react-router-dom-v5-compat/CHANGELOG.md | 1 - packages/react-router-dom/CHANGELOG.md | 1 - packages/react-router-native/CHANGELOG.md | 1 - packages/react-router/CHANGELOG.md | 1 - packages/router/CHANGELOG.md | 11 +---------- 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 9d6719f1ee..ee5bac22db 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -5,7 +5,6 @@ ### Minor Changes - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - This option allows Data Router applications to take control over the approach for executing route loaders and actions - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 585fbecfe2..c19bc004b8 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -5,7 +5,6 @@ ### Minor Changes - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - This option allows Data Router applications to take control over the approach for executing route loaders and actions - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 5d234f3a4b..5da49a7c3d 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -5,7 +5,6 @@ ### Minor Changes - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - This option allows Data Router applications to take control over the approach for executing route loaders and actions - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index c312149e1a..53b8b016ad 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -5,7 +5,6 @@ ### Minor Changes - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - This option allows Data Router applications to take control over the approach for executing route loaders and actions - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index cd2c03c689..f63876348a 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -5,26 +5,17 @@ ### Minor Changes - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - This option allows Data Router applications to take control over the approach for executing route loaders and actions - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more - +- Move `unstable_dataStrategy` from `createStaticHandler` to `staticHandler.query` so it can be request-specific for use with the `ResponseStub` approach in Remix. It's not really applicable to `queryRoute` for now since that's a singular handler call anyway so any pre-processing/post/processing could be done there manually. ([#11377](https://github.com/remix-run/react-router/pull/11377)) - Add a new `future.unstable_skipActionRevalidation` future flag ([#11098](https://github.com/remix-run/react-router/pull/11098)) - - Currently, active loaders revalidate after any action, regardless of the result - With this flag enabled, actions that return/throw a 4xx/5xx response status will no longer automatically revalidate - This should reduce load on your server since it's rare that a 4xx/5xx should actually mutate any data - If you need to revalidate after a 4xx/5xx result with this flag enabled, you can still do that via returning `true` from `shouldRevalidate` - `shouldRevalidate` now also receives a new `unstable_actionStatus` argument alongside `actionResult` so you can make decision based on the status of the `action` response without having to encode it into the action data - -- - Move `unstable_dataStrategy` from `createStaticHandler` to `staticHandler.query` so it can be request-specific for use with the `ResponseStub` approach in Remix. It's not really applicable to `queryRoute` for now since that's a singular handler call anyway so any pre-processing/post/processing could be done there manually. ([#11377](https://github.com/remix-run/react-router/pull/11377)) - - Added a `skipLoaderErrorBubbling` flag to `staticHandler.query` to disable error bubbling on loader executions for single-fetch scenarios where the client-side router will handle the bubbling ([#11098](https://github.com/remix-run/react-router/pull/11098)) -### Patch Changes - -- \[REMOVE] Remove staticHandler.query flags that we can implement in dataStrategy ([#11384](https://github.com/remix-run/react-router/pull/11384)) - ## 1.15.3 ### Patch Changes From d5b35a12e214ca56ffc80e96b4eb840982bd59a1 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 23 Apr 2024 11:18:52 -0400 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fb1d76666..dcd3e0e023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -202,7 +202,7 @@ With this flag enabled, `action`'s that return/throw a `4xx`/`5xx` response stat ### Minor Changes -- Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098), ([#11377](https://github.com/remix-run/react-router/pull/11377))) +- Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098), [#11377](https://github.com/remix-run/react-router/pull/11377)) - `@remix-run/router` - Add a new `future.unstable_skipActionRevalidation` future flag ([#11098](https://github.com/remix-run/react-router/pull/11098)) - `@remix-run/router` - SSR: Added a new `skipLoaderErrorBubbling` options to the `staticHandler.query` method to disable error bubbling by the static handler for use in Remix's Single Fetch implementation ([#11098](https://github.com/remix-run/react-router/pull/11098), ([#11377](https://github.com/remix-run/react-router/pull/11377)))