From 3446b82eaa13e71e850ebdf40c5beecbdf3f9dc6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 27 Mar 2024 14:53:26 +0000 Subject: [PATCH] chore: Update version for release (pre) --- .changeset/pre.json | 7 +++++- .../react-router-dom-v5-compat/CHANGELOG.md | 16 +++++++++++++ .../react-router-dom-v5-compat/package.json | 2 +- packages/react-router-dom/CHANGELOG.md | 15 ++++++++++++ packages/react-router-dom/package.json | 2 +- packages/react-router-native/CHANGELOG.md | 14 +++++++++++ packages/react-router-native/package.json | 2 +- packages/react-router/CHANGELOG.md | 14 +++++++++++ packages/react-router/package.json | 2 +- packages/router/CHANGELOG.md | 24 +++++++++++++++++++ packages/router/package.json | 2 +- 11 files changed, 94 insertions(+), 6 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index ef6ac484f0..aa7bfe2e1e 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,5 +8,10 @@ "react-router-native": "6.22.3", "@remix-run/router": "1.15.3" }, - "changesets": [] + "changesets": [ + "data-strategy", + "skip-action-revalidation", + "slow-flies-help", + "static-query-flags" + ] } diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index d2d34d7b39..be1a572873 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,21 @@ # `react-router-dom-v5-compat` +## 6.23.0-pre.0 + +### 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 + +### 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` + ## 6.22.3 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 8d6224f0c7..3ebafcda5b 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.22.3", + "version": "6.23.0-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 1122670fbf..c8fedbd8d1 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,20 @@ # `react-router-dom` +## 6.23.0-pre.0 + +### 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 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.16.0-pre.0` + - `react-router@6.23.0-pre.0` + ## 6.22.3 ### Patch Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 8fdba2481d..69d2c713c9 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.22.3", + "version": "6.23.0-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 7f4c448440..749c09e777 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,19 @@ # `react-router-native` +## 6.23.0-pre.0 + +### 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 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.23.0-pre.0` + ## 6.22.3 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 53b84afa26..40a2d94a03 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.22.3", + "version": "6.23.0-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 adb2265b21..e4d20859dc 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,19 @@ # `react-router` +## 6.23.0-pre.0 + +### 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 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.16.0-pre.0` + ## 6.22.3 ### Patch Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 90fb508973..3070fb76ff 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.22.3", + "version": "6.23.0-pre.0", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index ac112bde1e..cdb5d4a8c2 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,29 @@ # `@remix-run/router` +## 1.16.0-pre.0 + +### 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 + +- 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 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 + ## 1.15.3 ### Patch Changes diff --git a/packages/router/package.json b/packages/router/package.json index 68f6d00e32..7e87ef16c5 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.15.3", + "version": "1.16.0-pre.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",