From 59a753daaf0257fbb5739e0c1e5d9c80ac12c78c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Mar 2023 18:22:37 +0000 Subject: [PATCH 1/2] chore: Update version for release (pre) --- .changeset/pre.json | 9 +++++++- .../react-router-dom-v5-compat/CHANGELOG.md | 8 +++++++ .../react-router-dom-v5-compat/package.json | 4 ++-- packages/react-router-dom/CHANGELOG.md | 22 +++++++++++++++++++ packages/react-router-dom/package.json | 6 ++--- packages/react-router-native/CHANGELOG.md | 7 ++++++ packages/react-router-native/package.json | 4 ++-- packages/react-router/CHANGELOG.md | 21 ++++++++++++++++++ packages/react-router/package.json | 4 ++-- packages/router/CHANGELOG.md | 21 ++++++++++++++++++ packages/router/package.json | 2 +- 11 files changed, 97 insertions(+), 11 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index bb4613abe2..406ee255d3 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,5 +8,12 @@ "react-router-native": "6.9.0", "@remix-run/router": "1.4.0" }, - "changesets": [] + "changesets": [ + "fetcher-submission-revalidation", + "fix-fragments-ids", + "initialize-lazy-errors", + "normalize-form-method", + "ssr-error-boundary", + "update-web-fetch" + ] } diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index ffd61436ad..b3231ba99e 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,13 @@ # `react-router-dom-v5-compat` +## 6.10.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.10.0-pre.0` + - `react-router-dom@6.10.0-pre.0` + ## 6.9.0 ### Minor Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index aaa7d44c4e..4b79178422 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.9.0", + "version": "6.10.0-pre.0", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", @@ -24,7 +24,7 @@ "types": "./dist/index.d.ts", "dependencies": { "history": "^5.3.0", - "react-router": "6.9.0" + "react-router": "6.10.0-pre.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 516b60eeeb..461acf52ab 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,27 @@ # `react-router-dom` +## 6.10.0-pre.0 + +### Minor Changes + +- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) + + - When `future.v7_normalizeFormMethod === false`, + - `useNavigation().formMethod` is lowercase + - `useFetcher().formMethod` is lowercase + - When `future.v7_normalizeFormMethod === true`: + - `useNavigation().formMethod` is uppercase + - `useFetcher().formMethod` is uppercase + + [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy + +### Patch Changes + +- Check for `ErrorBoundary` property (not only `errorElement`) in `detectErrorBoundary` ([#10211](/~https://github.com/remix-run/react-router/pull/10211)) +- Updated dependencies: + - `@remix-run/router@1.5.0-pre.0` + - `react-router@6.10.0-pre.0` + ## 6.9.0 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 6f85f3d8be..f508aaf126 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.9.0", + "version": "6.10.0-pre.0", "description": "Declarative routing for React web applications", "keywords": [ "react", @@ -23,8 +23,8 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.4.0", - "react-router": "6.9.0" + "@remix-run/router": "1.5.0-pre.0", + "react-router": "6.10.0-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 28e162cbeb..409c702bf2 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router-native` +## 6.10.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.10.0-pre.0` + ## 6.9.0 ### Minor Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 98090f0d72..e7a2e9abf8 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.9.0", + "version": "6.10.0-pre.0", "description": "Declarative routing for React Native applications", "keywords": [ "react", @@ -22,7 +22,7 @@ "types": "./dist/index.d.ts", "dependencies": { "@ungap/url-search-params": "^0.1.4", - "react-router": "6.9.0" + "react-router": "6.10.0-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index e6f50ecf2c..fc93fbfae7 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,26 @@ # `react-router` +## 6.10.0-pre.0 + +### Minor Changes + +- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) + + - When `future.v7_normalizeFormMethod === false`, + - `useNavigation().formMethod` is lowercase + - `useFetcher().formMethod` is lowercase + - When `future.v7_normalizeFormMethod === true`: + - `useNavigation().formMethod` is uppercase + - `useFetcher().formMethod` is uppercase + + [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy + +### Patch Changes + +- Fix route ID generation when using Fragments in `createRouteFromElements` ([#10193](/~https://github.com/remix-run/react-router/pull/10193)) +- Updated dependencies: + - `@remix-run/router@1.5.0-pre.0` + ## 6.9.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 91ee522311..869fd4c55a 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.9.0", + "version": "6.10.0-pre.0", "description": "Declarative routing for React", "keywords": [ "react", @@ -23,7 +23,7 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.4.0" + "@remix-run/router": "1.5.0-pre.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 3a18e5517d..10ccb2afcd 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,26 @@ # `@remix-run/router` +## 1.5.0-pre.0 + +### Minor Changes + +- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) + + - When `future.v7_normalizeFormMethod === false`, + - `useNavigation().formMethod` is lowercase + - `useFetcher().formMethod` is lowercase + - When `future.v7_normalizeFormMethod === true`: + - `useNavigation().formMethod` is uppercase + - `useFetcher().formMethod` is uppercase + + [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy + +### Patch Changes + +- Provide fetcher submission to `shouldRevalidate` if the fetcher action redirects ([#10208](/~https://github.com/remix-run/react-router/pull/10208)) +- Properly handle `lazy()` errors during router initialization ([#10211](/~https://github.com/remix-run/react-router/pull/10211)) +- Update to latest `@remix-run/web-fetch@4.3.3` ([#10216](/~https://github.com/remix-run/react-router/pull/10216)) + ## 1.4.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index 9d40452755..679be57d29 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.4.0", + "version": "1.5.0-pre.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix", From 90b2d10214dbb4675532de203a6ea2339b23d82e Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 21 Mar 2023 14:35:00 -0400 Subject: [PATCH 2/2] Update changelogs --- .changeset/fix-fragments-ids.md | 2 +- .changeset/normalize-form-method.md | 6 ++---- .changeset/ssr-error-boundary.md | 2 +- packages/react-router-dom/CHANGELOG.md | 8 +++----- packages/react-router/CHANGELOG.md | 8 +++----- packages/router/CHANGELOG.md | 8 +++----- 6 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.changeset/fix-fragments-ids.md b/.changeset/fix-fragments-ids.md index b6d8cc21b4..23b311bb02 100644 --- a/.changeset/fix-fragments-ids.md +++ b/.changeset/fix-fragments-ids.md @@ -2,4 +2,4 @@ "react-router": patch --- -Fix route ID generation when using Fragments in `createRouteFromElements` +Fix route ID generation when using Fragments in `createRoutesFromElements` diff --git a/.changeset/normalize-form-method.md b/.changeset/normalize-form-method.md index 7e3e247a65..faa7003b95 100644 --- a/.changeset/normalize-form-method.md +++ b/.changeset/normalize-form-method.md @@ -4,13 +4,11 @@ "@remix-run/router": minor --- -Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. +Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. -- When `future.v7_normalizeFormMethod === false`, +- When `future.v7_normalizeFormMethod === false` (default v6 behavior), - `useNavigation().formMethod` is lowercase - `useFetcher().formMethod` is lowercase - When `future.v7_normalizeFormMethod === true`: - `useNavigation().formMethod` is uppercase - `useFetcher().formMethod` is uppercase - -[api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy diff --git a/.changeset/ssr-error-boundary.md b/.changeset/ssr-error-boundary.md index 012cb56841..9149f6b771 100644 --- a/.changeset/ssr-error-boundary.md +++ b/.changeset/ssr-error-boundary.md @@ -2,4 +2,4 @@ "react-router-dom": patch --- -Check for `ErrorBoundary` property (not only `errorElement`) in `detectErrorBoundary` +Fix `createStaticHandler` to also check for `ErrorBoundary` on routes in addition to `errorElement` diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 461acf52ab..4757b0c786 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -4,20 +4,18 @@ ### Minor Changes -- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) +- Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) - - When `future.v7_normalizeFormMethod === false`, + - When `future.v7_normalizeFormMethod === false` (default v6 behavior), - `useNavigation().formMethod` is lowercase - `useFetcher().formMethod` is lowercase - When `future.v7_normalizeFormMethod === true`: - `useNavigation().formMethod` is uppercase - `useFetcher().formMethod` is uppercase - [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy - ### Patch Changes -- Check for `ErrorBoundary` property (not only `errorElement`) in `detectErrorBoundary` ([#10211](/~https://github.com/remix-run/react-router/pull/10211)) +- Fix `createStaticHandler` to also check for `ErrorBoundary` on routes in addition to `errorElement` ([#10190](/~https://github.com/remix-run/react-router/pull/10190)) - Updated dependencies: - `@remix-run/router@1.5.0-pre.0` - `react-router@6.10.0-pre.0` diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index fc93fbfae7..770959c8c1 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -4,20 +4,18 @@ ### Minor Changes -- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) +- Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) - - When `future.v7_normalizeFormMethod === false`, + - When `future.v7_normalizeFormMethod === false` (default v6 behavior), - `useNavigation().formMethod` is lowercase - `useFetcher().formMethod` is lowercase - When `future.v7_normalizeFormMethod === true`: - `useNavigation().formMethod` is uppercase - `useFetcher().formMethod` is uppercase - [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy - ### Patch Changes -- Fix route ID generation when using Fragments in `createRouteFromElements` ([#10193](/~https://github.com/remix-run/react-router/pull/10193)) +- Fix route ID generation when using Fragments in `createRoutesFromElements` ([#10193](/~https://github.com/remix-run/react-router/pull/10193)) - Updated dependencies: - `@remix-run/router@1.5.0-pre.0` diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 10ccb2afcd..2409d24dae 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -4,21 +4,19 @@ ### Minor Changes -- Added support for [**Future Flags**][api-development-strategy] in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) +- Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](/~https://github.com/remix-run/react-router/pull/10207)) - - When `future.v7_normalizeFormMethod === false`, + - When `future.v7_normalizeFormMethod === false` (default v6 behavior), - `useNavigation().formMethod` is lowercase - `useFetcher().formMethod` is lowercase - When `future.v7_normalizeFormMethod === true`: - `useNavigation().formMethod` is uppercase - `useFetcher().formMethod` is uppercase - [api-development-strategy]: https://reactrouter.com/en/main/guides/api-development-strategy - ### Patch Changes - Provide fetcher submission to `shouldRevalidate` if the fetcher action redirects ([#10208](/~https://github.com/remix-run/react-router/pull/10208)) -- Properly handle `lazy()` errors during router initialization ([#10211](/~https://github.com/remix-run/react-router/pull/10211)) +- Properly handle `lazy()` errors during router initialization ([#10201](/~https://github.com/remix-run/react-router/pull/10201)) - Update to latest `@remix-run/web-fetch@4.3.3` ([#10216](/~https://github.com/remix-run/react-router/pull/10216)) ## 1.4.0