From 09b6cbeabb02ffaccc3d5a6ca751b9f5221b0d5b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Jun 2023 15:56:23 -0400 Subject: [PATCH] chore: Update version for release (#10636) * chore: Update version for release * Update changelogs --------- Co-authored-by: github-actions[bot] Co-authored-by: Matt Brophy --- .changeset/blocker-key-strict-mode.md | 6 --- .changeset/brave-mails-relate.md | 5 -- .changeset/formdata-submitter.md | 5 -- .changeset/pre.json | 25 --------- .changeset/purple-islands-cough.md | 5 -- .changeset/raw-payload-submission-router.md | 42 --------------- .changeset/raw-payload-submission.md | 53 ------------------- .changeset/skip-fetcher-revalidate.md | 5 -- .changeset/smart-pots-repair.md | 9 ---- .changeset/strip-basename-getkey.md | 5 -- .changeset/strip-blocker-basename.md | 5 -- .changeset/sync-window-location.md | 6 --- .changeset/tsc-skiplibcheck-react17.md | 6 --- .../react-router-dom-v5-compat/CHANGELOG.md | 16 ++---- .../react-router-dom-v5-compat/package.json | 4 +- packages/react-router-dom/CHANGELOG.md | 33 ++++++------ packages/react-router-dom/package.json | 6 +-- packages/react-router-native/CHANGELOG.md | 13 ++--- packages/react-router-native/package.json | 4 +- packages/react-router/CHANGELOG.md | 8 ++- packages/react-router/package.json | 4 +- packages/router/CHANGELOG.md | 19 ++++--- packages/router/package.json | 2 +- 23 files changed, 44 insertions(+), 242 deletions(-) delete mode 100644 .changeset/blocker-key-strict-mode.md delete mode 100644 .changeset/brave-mails-relate.md delete mode 100644 .changeset/formdata-submitter.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/purple-islands-cough.md delete mode 100644 .changeset/raw-payload-submission-router.md delete mode 100644 .changeset/raw-payload-submission.md delete mode 100644 .changeset/skip-fetcher-revalidate.md delete mode 100644 .changeset/smart-pots-repair.md delete mode 100644 .changeset/strip-basename-getkey.md delete mode 100644 .changeset/strip-blocker-basename.md delete mode 100644 .changeset/sync-window-location.md delete mode 100644 .changeset/tsc-skiplibcheck-react17.md diff --git a/.changeset/blocker-key-strict-mode.md b/.changeset/blocker-key-strict-mode.md deleted file mode 100644 index 2851da4ade..0000000000 --- a/.changeset/blocker-key-strict-mode.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-router": patch -"@remix-run/router": patch ---- - -Fix `unstable_useBlocker` key issues in `StrictMode` diff --git a/.changeset/brave-mails-relate.md b/.changeset/brave-mails-relate.md deleted file mode 100644 index 2987836dd3..0000000000 --- a/.changeset/brave-mails-relate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -(Remove) Fix FormData submitter feature detection check diff --git a/.changeset/formdata-submitter.md b/.changeset/formdata-submitter.md deleted file mode 100644 index 062de9b49b..0000000000 --- a/.changeset/formdata-submitter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -When submitting a form from a `submitter` element, prefer the built-in `new FormData(form, submitter)` instead of the previous manual approach in modern browsers (those that support the new `submitter` parameter). For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for `type="image"` buttons. If developers want full spec-compliant support for legacy browsers, they can use the `formdata-submitter-polyfill`. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 328bdfae30..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.13.0", - "react-router-dom": "6.13.0", - "react-router-dom-v5-compat": "6.13.0", - "react-router-native": "6.13.0", - "@remix-run/router": "1.6.3" - }, - "changesets": [ - "blocker-key-strict-mode", - "brave-mails-relate", - "formdata-submitter", - "purple-islands-cough", - "raw-payload-submission-router", - "raw-payload-submission", - "skip-fetcher-revalidate", - "smart-pots-repair", - "strip-basename-getkey", - "strip-blocker-basename", - "sync-window-location", - "tsc-skiplibcheck-react17" - ] -} diff --git a/.changeset/purple-islands-cough.md b/.changeset/purple-islands-cough.md deleted file mode 100644 index ab9b2a3bb2..0000000000 --- a/.changeset/purple-islands-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": patch ---- - -Fix `generatePath` when passed a numeric `0` value parameter diff --git a/.changeset/raw-payload-submission-router.md b/.changeset/raw-payload-submission-router.md deleted file mode 100644 index bcd11df0df..0000000000 --- a/.changeset/raw-payload-submission-router.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -"@remix-run/router": minor ---- - -Add support for `application/json` and `text/plain` encodings for `router.navigate`/`router.fetch` submissions. To leverage these encodings, pass your data in a `body` parameter and specify the desired `formEncType`: - -```js -// By default, the encoding is "application/x-www-form-urlencoded" -router.navigate("/", { - formMethod: "post", - body: { key: "value" }, -}); - -async function action({ request }) { - // await request.formData() => FormData instance with entry [key=value] -} -``` - -```js -// Pass `formEncType` to opt-into a different encoding -router.navigate("/", { - formMethod: "post", - formEncType: "application/json", - body: { key: "value" }, -}); - -async function action({ request }) { - // await request.json() => { key: "value" } -} -``` - -```js -router.navigate("/", { - formMethod: "post", - formEncType: "text/plain", - body: "Text submission", -}); - -async function action({ request }) { - // await request.text() => "Text submission" -} -``` diff --git a/.changeset/raw-payload-submission.md b/.changeset/raw-payload-submission.md deleted file mode 100644 index cd875be4e5..0000000000 --- a/.changeset/raw-payload-submission.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -"react-router-dom": minor ---- - -Add support for `application/json` and `text/plain` encodings for `useSubmit`/`fetcher.submit`. To reflect these additional types, `useNavigation`/`useFetcher` now also contain `navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text` which include the json/text submission if applicable. - -```jsx -// The default behavior will still serialize as FormData -function Component() { - let navigation = useNavigation(); - let submit = useSubmit(); - submit({ key: "value" }, { method: "post" }); - // navigation.formEncType => "application/x-www-form-urlencoded" - // navigation.formData => FormData instance -} - -async function action({ request }) { - // request.headers.get("Content-Type") => "application/x-www-form-urlencoded" - // await request.formData() => FormData instance -} -``` - -```js -// Opt-into JSON encoding with `encType: "application/json"` -function Component() { - let navigation = useNavigation(); - let submit = useSubmit(); - submit({ key: "value" }, { method: "post", encType: "application/json" }); - // navigation.formEncType => "application/json" - // navigation.json => { key: "value" } -} - -async function action({ request }) { - // request.headers.get("Content-Type") => "application/json" - // await request.json() => { key: "value" } -} -``` - -```js -// Opt-into text encoding with `encType: "text/plain"` -function Component() { - let navigation = useNavigation(); - let submit = useSubmit(); - submit("Text submission", { method: "post", encType: "text/plain" }); - // navigation.formEncType => "text/plain" - // navigation.text => "Text submission" -} - -async function action({ request }) { - // request.headers.get("Content-Type") => "text/plain" - // await request.text() => "Text submission" -} -``` diff --git a/.changeset/skip-fetcher-revalidate.md b/.changeset/skip-fetcher-revalidate.md deleted file mode 100644 index 128a2c4d39..0000000000 --- a/.changeset/skip-fetcher-revalidate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Avoid calling `shouldRevalidate` for fetchers that have not yet completed a data load diff --git a/.changeset/smart-pots-repair.md b/.changeset/smart-pots-repair.md deleted file mode 100644 index 4c292766a1..0000000000 --- a/.changeset/smart-pots-repair.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"react-router": patch -"react-router-dom": patch -"react-router-dom-v5-compat": patch -"react-router-native": patch -"@remix-run/router": patch ---- - -Upgrade `typescript` to 5.1 diff --git a/.changeset/strip-basename-getkey.md b/.changeset/strip-basename-getkey.md deleted file mode 100644 index 7b3b292191..0000000000 --- a/.changeset/strip-basename-getkey.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Strip `basename` from the `location` provided to `` to match the `useLocation` behavior diff --git a/.changeset/strip-blocker-basename.md b/.changeset/strip-blocker-basename.md deleted file mode 100644 index ff12963ec0..0000000000 --- a/.changeset/strip-blocker-basename.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": patch ---- - -Strip `basename` from locations provided to `unstable_useBlocker` functions to match `useLocation` diff --git a/.changeset/sync-window-location.md b/.changeset/sync-window-location.md deleted file mode 100644 index 3dca050e55..0000000000 --- a/.changeset/sync-window-location.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@remix-run/router": patch -"react-router-dom": patch ---- - -Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering. However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) ([#10448](https://github.com/remix-run/react-router/pull/10448)) diff --git a/.changeset/tsc-skiplibcheck-react17.md b/.changeset/tsc-skiplibcheck-react17.md deleted file mode 100644 index 22c75a0e66..0000000000 --- a/.changeset/tsc-skiplibcheck-react17.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-router": patch -"react-router-dom": patch ---- - -Fix `tsc --skipLibCheck:false` issues on React 17 diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index a95e6493ef..3c895c97d6 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,21 +1,13 @@ # `react-router-dom-v5-compat` -## 6.14.0-pre.1 +## 6.14.0 ### Patch Changes +- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) - Updated dependencies: - - `react-router-dom@6.14.0-pre.1` - - `react-router@6.14.0-pre.1` - -## 6.14.0-pre.0 - -### Patch Changes - -- upgrade typescript to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) -- Updated dependencies: - - `react-router@6.14.0-pre.0` - - `react-router-dom@6.14.0-pre.0` + - `react-router@6.14.0` + - `react-router-dom@6.14.0` ## 6.13.0 diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 00c3e4cd9c..bbddf58542 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.14.0-pre.1", + "version": "6.14.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.14.0-pre.1" + "react-router": "6.14.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index e6bf55187c..e7a50734e5 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,25 +1,17 @@ # `react-router-dom` -## 6.14.0-pre.1 - -### Patch Changes - -- (Remove) Fix FormData submitter feature detection check ([#10627](https://github.com/remix-run/react-router/pull/10627)) -- Updated dependencies: - - `react-router@6.14.0-pre.1` - -## 6.14.0-pre.0 +## 6.14.0 ### Minor Changes -- Add support for `application/json` and `text/plain` encodings for `useSubmit`/`fetcher.submit`. To reflect these additional types, `useNavigation`/`useFetcher` now also contain `navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text` which include the json/text submission if applicable. ([#10413](https://github.com/remix-run/react-router/pull/10413)) +- Add support for `application/json` and `text/plain` encodings for `useSubmit`/`fetcher.submit`. To reflect these additional types, `useNavigation`/`useFetcher` now also contain `navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text` which include the json/text submission if applicable ([#10413](https://github.com/remix-run/react-router/pull/10413)) ```jsx // The default behavior will still serialize as FormData function Component() { let navigation = useNavigation(); let submit = useSubmit(); - submit({ key: "value" }); + submit({ key: "value" }, { method: "post" }); // navigation.formEncType => "application/x-www-form-urlencoded" // navigation.formData => FormData instance } @@ -33,8 +25,9 @@ ```js // Opt-into JSON encoding with `encType: "application/json"` function Component() { + let navigation = useNavigation(); let submit = useSubmit(); - submit({ key: "value" }, { encType: "application/json" }); + submit({ key: "value" }, { method: "post", encType: "application/json" }); // navigation.formEncType => "application/json" // navigation.json => { key: "value" } } @@ -48,8 +41,9 @@ ```js // Opt-into text encoding with `encType: "text/plain"` function Component() { + let navigation = useNavigation(); let submit = useSubmit(); - submit("Text submission", { encType: "text/plain" }); + submit("Text submission", { method: "post", encType: "text/plain" }); // navigation.formEncType => "text/plain" // navigation.text => "Text submission" } @@ -62,13 +56,16 @@ ### Patch Changes -- When submitting a form from a `submitter` element, prefer the built-in `new FormData(form, submitter)` instead of the previous manual approach in modern browsers (those that support the new `submitter` parameter). For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for `type="image"` buttons. If developers want full spec-compliant support for legacy browsers, they can use the `formdata-submitter-polyfill`. ([#9865](https://github.com/remix-run/react-router/pull/9865)) -- upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) -- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering. However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) ([#10448](https://github.com/remix-run/react-router/pull/10448)) +- When submitting a form from a `submitter` element, prefer the built-in `new FormData(form, submitter)` instead of the previous manual approach in modern browsers (those that support the new `submitter` parameter) ([#9865](https://github.com/remix-run/react-router/pull/9865), [#10627](https://github.com/remix-run/react-router/pull/10627)) + - For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for `type="image"` buttons + - If developers want full spec-compliant support for legacy browsers, they can use the `formdata-submitter-polyfill` +- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering ([#10448](https://github.com/remix-run/react-router/pull/10448)) + - ⚠️ However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) - Fix `tsc --skipLibCheck:false` issues on React 17 ([#10622](https://github.com/remix-run/react-router/pull/10622)) +- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) - Updated dependencies: - - `react-router@6.14.0-pre.0` - - `@remix-run/router@1.7.0-pre.0` + - `react-router@6.14.0` + - `@remix-run/router@1.7.0` ## 6.13.0 diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 173eca220c..92399bedb7 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.14.0-pre.1", + "version": "6.14.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.7.0-pre.0", - "react-router": "6.14.0-pre.1" + "@remix-run/router": "1.7.0", + "react-router": "6.14.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 42a3f390fd..7ffa8b763d 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,19 +1,12 @@ # `react-router-native` -## 6.14.0-pre.1 +## 6.14.0 ### Patch Changes +- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) - Updated dependencies: - - `react-router@6.14.0-pre.1` - -## 6.14.0-pre.0 - -### Patch Changes - -- upgrade typescript to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) -- Updated dependencies: - - `react-router@6.14.0-pre.0` + - `react-router@6.14.0` ## 6.13.0 diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 26a01eddd8..ddb61ef3b3 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.14.0-pre.1", + "version": "6.14.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.14.0-pre.1" + "react-router": "6.14.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index b53d113b2e..9195ab0783 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,8 +1,6 @@ # `react-router` -## 6.14.0-pre.1 - -## 6.14.0-pre.0 +## 6.14.0 ### Patch Changes @@ -10,9 +8,9 @@ - Fix `generatePath` when passed a numeric `0` value parameter ([#10612](https://github.com/remix-run/react-router/pull/10612)) - Fix `unstable_useBlocker` key issues in `StrictMode` ([#10573](https://github.com/remix-run/react-router/pull/10573)) - Fix `tsc --skipLibCheck:false` issues on React 17 ([#10622](https://github.com/remix-run/react-router/pull/10622)) -- upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) +- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) - Updated dependencies: - - `@remix-run/router@1.7.0-pre.0` + - `@remix-run/router@1.7.0` ## 6.13.0 diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 5cd8c687e8..718980f625 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.14.0-pre.1", + "version": "6.14.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.7.0-pre.0" + "@remix-run/router": "1.7.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 844fe6d4db..db013caa35 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,6 +1,6 @@ # `@remix-run/router` -## 1.7.0-pre.0 +## 1.7.0 ### Minor Changes @@ -14,13 +14,12 @@ }); async function action({ request }) { - let formData = await request.formData(); - // formData => FormData instance with entry [key=value] + // await request.formData() => FormData instance with entry [key=value] } ``` ```js - // Pass `formEncType` to opt-into a different encoding + // Pass `formEncType` to opt-into a different encoding (json) router.navigate("/", { formMethod: "post", formEncType: "application/json", @@ -28,12 +27,12 @@ }); async function action({ request }) { - let json = await request.json(); - // json => { key: "value" } + // await request.json() => { key: "value" } } ``` ```js + // Pass `formEncType` to opt-into a different encoding (text) router.navigate("/", { formMethod: "post", formEncType: "text/plain", @@ -41,16 +40,16 @@ }); async function action({ request }) { - let text = await request.text(); - // text => "Text submission" + // await request.text() => "Text submission" } ``` ### Patch Changes -- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering. However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) ([#10448](https://github.com/remix-run/react-router/pull/10448)) -- Avoid calling `shouldRevalidate` for fetchers that have not yet completed a data load ([#10623](https://github.com/remix-run/react-router/pull/10623)) +- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering ([#10448](https://github.com/remix-run/react-router/pull/10448)) + - ⚠️ However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) - Strip `basename` from the `location` provided to `` to match the `useLocation` behavior ([#10550](https://github.com/remix-run/react-router/pull/10550)) +- Avoid calling `shouldRevalidate` for fetchers that have not yet completed a data load ([#10623](https://github.com/remix-run/react-router/pull/10623)) - Fix `unstable_useBlocker` key issues in `StrictMode` ([#10573](https://github.com/remix-run/react-router/pull/10573)) - Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581)) diff --git a/packages/router/package.json b/packages/router/package.json index e1166feea3..5a796fd48d 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.7.0-pre.0", + "version": "1.7.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",