From 82a3a778b23ed991fb71e6f188bb7d06cc3c7d62 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:28:31 -0400 Subject: [PATCH] chore: Update version for release (#11486) --- .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 ----- CHANGELOG.md | 2 +- .../react-router-dom-v5-compat/CHANGELOG.md | 18 ++++------------- .../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 | 12 ++--------- packages/react-router-native/package.json | 2 +- packages/react-router/CHANGELOG.md | 12 ++--------- packages/react-router/package.json | 2 +- packages/router/CHANGELOG.md | 20 +++---------------- packages/router/package.json | 2 +- 17 files changed, 20 insertions(+), 125 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/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))) diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 31c10b82b0..ee5bac22db 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,29 +1,19 @@ # `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 - 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` + - `@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..c19bc004b8 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,27 +1,18 @@ # `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 - 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` + - `@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..5da49a7c3d 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,25 +1,17 @@ # `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 - 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` + - `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..53b8b016ad 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,25 +1,17 @@ # `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 - 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` + - `@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..f63876348a 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,34 +1,20 @@ # `@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 - 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 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)) ## 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",