From f19e5064c6de62b6f89ec5bdcdb044c78c590a83 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Jan 2023 21:22:38 +0000 Subject: [PATCH 1/4] chore: Update version for release (pre) --- .changeset/pre.json | 13 ++++++++++++- .../react-router-dom-v5-compat/CHANGELOG.md | 9 +++++++++ .../react-router-dom-v5-compat/package.json | 4 ++-- packages/react-router-dom/CHANGELOG.md | 18 ++++++++++++++++++ packages/react-router-dom/package.json | 6 +++--- packages/react-router-native/CHANGELOG.md | 8 ++++++++ packages/react-router-native/package.json | 4 ++-- packages/react-router/CHANGELOG.md | 14 ++++++++++++++ packages/react-router/package.json | 4 ++-- packages/router/CHANGELOG.md | 11 +++++++++++ packages/router/package.json | 2 +- 11 files changed, 82 insertions(+), 11 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index e565b15c37..bcd93df4a2 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,5 +8,16 @@ "react-router-native": "6.7.0", "@remix-run/router": "1.3.0" }, - "changesets": [] + "changesets": [ + "afraid-ducks-know", + "chilly-stingrays-rhyme", + "little-taxis-bake", + "orange-insects-complain", + "silent-oranges-pay", + "silver-snails-destroy", + "small-squids-wash", + "spotty-cheetahs-live", + "sweet-swans-cry", + "twenty-badgers-notice" + ] } diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index e540cfb644..f416caf4bc 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router-dom-v5-compat` +## 6.7.1-pre.0 + +### Patch Changes + +- Fix SSR `useLayoutEffect` `console.error` when using `CompatRouter` ([#9820](https://github.com/remix-run/react-router/pull/9820)) ([`4640b2a2`](https://github.com/remix-run/react-router/commit/4640b2a23e3f6a6654e2cc4d59e9c86d5e9b0777)) +- Updated dependencies: + - `react-router-dom@6.7.1-pre.0` + - `react-router@6.7.1-pre.0` + ## 6.7.0 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index c552e2209c..420203c2b7 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.7.0", + "version": "6.7.1-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.7.0" + "react-router": "6.7.1-pre.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index a715094030..2a980af069 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,23 @@ # `react-router-dom` +## 6.7.1-pre.0 + +### Patch Changes + +- Fix bug with search params removal ([#9969](https://github.com/remix-run/react-router/pull/9969)) +- Respect `preventScrollReset` on `fetcher.Form` ([#9963](https://github.com/remix-run/react-router/pull/9963)) +- allow using `` with external URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) + + ```tsx + + + ``` + +- Use `pagehide` instead of `beforeunload` for ``. This has better cross-browser support, specifically on Mobile Safari. ([#9945](https://github.com/remix-run/react-router/pull/9945)) +- Updated dependencies: + - `@remix-run/router@1.3.1-pre.0` + - `react-router@6.7.1-pre.0` + ## 6.7.0 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index cb97d88e2f..26d6bf7643 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.7.0", + "version": "6.7.1-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.3.0", - "react-router": "6.7.0" + "@remix-run/router": "1.3.1-pre.0", + "react-router": "6.7.1-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 4b27fee2c5..633d29ed48 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,13 @@ # `react-router-native` +## 6.7.1-pre.0 + +### Patch Changes + +- Fix bug with search params removal ([#9969](https://github.com/remix-run/react-router/pull/9969)) +- Updated dependencies: + - `react-router@6.7.1-pre.0` + ## 6.7.0 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index ca0e3e9c2c..811cd4c0ef 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.7.0", + "version": "6.7.1-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.7.0" + "react-router": "6.7.1-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index f7bf85d4d2..771bdc99d9 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,19 @@ # `react-router` +## 6.7.1-pre.0 + +### Patch Changes + +- allow using `` with external URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) + + ```tsx + + + ``` + +- Updated dependencies: + - `@remix-run/router@1.3.1-pre.0` + ## 6.7.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index d630efa5cd..9f865b74c0 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.7.0", + "version": "6.7.1-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.3.0" + "@remix-run/router": "1.3.1-pre.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index dcd242a130..bf5d53a3be 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,16 @@ # `@remix-run/router` +## 1.3.1-pre.0 + +### Patch Changes + +- Respect `preventScrollReset` on `fetcher.Form` ([#9963](https://github.com/remix-run/react-router/pull/9963)) +- Fix revalidating fetcher `shouldRevalidate` params ([#9948](https://github.com/remix-run/react-router/pull/9948)) +- Do not short circuit on hash change only mutation submissions ([#9944](https://github.com/remix-run/react-router/pull/9944)) +- Remove instanceof check from isRouteErrorResponse to avoid bundling issues on the server ([#9930](https://github.com/remix-run/react-router/pull/9930)) +- Detect no lazy data and remove abort controller for defer ([#9965](https://github.com/remix-run/react-router/pull/9965)) +- Send the name as the value when url-encoding File form data entries ([#9867](https://github.com/remix-run/react-router/pull/9867)) + ## 1.3.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index dcccad7b37..9f98a7305a 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.3.0", + "version": "1.3.1-pre.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix", From 1bd3fa92c06c3796e45d13e6610cc5787e392b90 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 24 Jan 2023 16:32:20 -0500 Subject: [PATCH 2/4] Update changelogs --- .changeset/silent-oranges-pay.md | 5 +++-- .changeset/silver-snails-destroy.md | 2 +- .changeset/spotty-cheetahs-live.md | 2 +- .changeset/sweet-swans-cry.md | 2 +- package.json | 2 +- packages/react-router-dom-v5-compat/CHANGELOG.md | 2 +- packages/react-router-dom/CHANGELOG.md | 13 +++++++------ packages/react-router/CHANGELOG.md | 11 ++++++----- packages/router/CHANGELOG.md | 6 +++--- 9 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.changeset/silent-oranges-pay.md b/.changeset/silent-oranges-pay.md index e1dd391960..c6c72bb804 100644 --- a/.changeset/silent-oranges-pay.md +++ b/.changeset/silent-oranges-pay.md @@ -3,9 +3,10 @@ "react-router-dom": patch --- -allow using `` with external URLs +Allow using `` with external URLs ```tsx - + + ``` diff --git a/.changeset/silver-snails-destroy.md b/.changeset/silver-snails-destroy.md index 85b4e8347a..fcf5951f4a 100644 --- a/.changeset/silver-snails-destroy.md +++ b/.changeset/silver-snails-destroy.md @@ -2,4 +2,4 @@ "@remix-run/router": patch --- -Remove instanceof check from isRouteErrorResponse to avoid bundling issues on the server +Remove `instanceof` check from `isRouteErrorResponse` to avoid bundling issues on the server diff --git a/.changeset/spotty-cheetahs-live.md b/.changeset/spotty-cheetahs-live.md index d5b34158d0..78ba92ab24 100644 --- a/.changeset/spotty-cheetahs-live.md +++ b/.changeset/spotty-cheetahs-live.md @@ -2,4 +2,4 @@ "@remix-run/router": patch --- -Detect no lazy data and remove abort controller for defer +Detect no lazy data and remove abort controller for `defer` diff --git a/.changeset/sweet-swans-cry.md b/.changeset/sweet-swans-cry.md index 800f5a05f2..4edf3c911b 100644 --- a/.changeset/sweet-swans-cry.md +++ b/.changeset/sweet-swans-cry.md @@ -2,4 +2,4 @@ "@remix-run/router": patch --- -Send the name as the value when url-encoding File form data entries +Send the name as the value when url-encoding `File` `FormData` entries diff --git a/package.json b/package.json index cb6359bc2d..978f9c9542 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ }, "filesize": { "packages/router/dist/router.umd.min.js": { - "none": "41 kB" + "none": "41.5 kB" }, "packages/react-router/dist/react-router.production.min.js": { "none": "13 kB" diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index f416caf4bc..5680f43e6c 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -4,7 +4,7 @@ ### Patch Changes -- Fix SSR `useLayoutEffect` `console.error` when using `CompatRouter` ([#9820](https://github.com/remix-run/react-router/pull/9820)) ([`4640b2a2`](https://github.com/remix-run/react-router/commit/4640b2a23e3f6a6654e2cc4d59e9c86d5e9b0777)) +- Fix SSR `useLayoutEffect` `console.error` when using `CompatRouter` ([#9820](https://github.com/remix-run/react-router/pull/9820)) - Updated dependencies: - `react-router-dom@6.7.1-pre.0` - `react-router@6.7.1-pre.0` diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 2a980af069..b9bb447c6f 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -6,14 +6,15 @@ - Fix bug with search params removal ([#9969](https://github.com/remix-run/react-router/pull/9969)) - Respect `preventScrollReset` on `fetcher.Form` ([#9963](https://github.com/remix-run/react-router/pull/9963)) -- allow using `` with external URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) +- Use `pagehide` instead of `beforeunload` for ``. This has better cross-browser support, specifically on Mobile Safari. ([#9945](https://github.com/remix-run/react-router/pull/9945)) +- Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) - ```tsx - - - ``` +```tsx + + + +``` -- Use `pagehide` instead of `beforeunload` for ``. This has better cross-browser support, specifically on Mobile Safari. ([#9945](https://github.com/remix-run/react-router/pull/9945)) - Updated dependencies: - `@remix-run/router@1.3.1-pre.0` - `react-router@6.7.1-pre.0` diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 771bdc99d9..e806883d96 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -4,12 +4,13 @@ ### Patch Changes -- allow using `` with external URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) +- Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) - ```tsx - - - ``` +```tsx + + + +``` - Updated dependencies: - `@remix-run/router@1.3.1-pre.0` diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index bf5d53a3be..287e0a749a 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -7,9 +7,9 @@ - Respect `preventScrollReset` on `fetcher.Form` ([#9963](https://github.com/remix-run/react-router/pull/9963)) - Fix revalidating fetcher `shouldRevalidate` params ([#9948](https://github.com/remix-run/react-router/pull/9948)) - Do not short circuit on hash change only mutation submissions ([#9944](https://github.com/remix-run/react-router/pull/9944)) -- Remove instanceof check from isRouteErrorResponse to avoid bundling issues on the server ([#9930](https://github.com/remix-run/react-router/pull/9930)) -- Detect no lazy data and remove abort controller for defer ([#9965](https://github.com/remix-run/react-router/pull/9965)) -- Send the name as the value when url-encoding File form data entries ([#9867](https://github.com/remix-run/react-router/pull/9867)) +- Remove `instanceof` check from `isRouteErrorResponse` to avoid bundling issues on the server ([#9930](https://github.com/remix-run/react-router/pull/9930)) +- Detect no lazy data and remove abort controller for `defer` ([#9965](https://github.com/remix-run/react-router/pull/9965)) +- Send the name as the value when url-encoding `File` `FormData` entries ([#9867](https://github.com/remix-run/react-router/pull/9867)) ## 1.3.0 From e40128a2c5f74aef70cee0253cd53e2a06da549e Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 24 Jan 2023 16:34:10 -0500 Subject: [PATCH 3/4] Fix indentation --- packages/react-router-dom/CHANGELOG.md | 10 +++++----- packages/react-router/CHANGELOG.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index b9bb447c6f..4bee1e15d4 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -9,11 +9,11 @@ - Use `pagehide` instead of `beforeunload` for ``. This has better cross-browser support, specifically on Mobile Safari. ([#9945](https://github.com/remix-run/react-router/pull/9945)) - Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) -```tsx - - - -``` + ```tsx + + + + ``` - Updated dependencies: - `@remix-run/router@1.3.1-pre.0` diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index e806883d96..66f5808472 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -6,11 +6,11 @@ - Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) -```tsx - - - -``` + ```tsx + + + + ``` - Updated dependencies: - `@remix-run/router@1.3.1-pre.0` From d78f06de4e9244e0b44e1e6794764c3fb6b26cf8 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 24 Jan 2023 16:36:34 -0500 Subject: [PATCH 4/4] Update changelog --- .changeset/silent-oranges-pay.md | 2 +- packages/react-router-dom/CHANGELOG.md | 2 +- packages/react-router/CHANGELOG.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/silent-oranges-pay.md b/.changeset/silent-oranges-pay.md index c6c72bb804..6a823800f0 100644 --- a/.changeset/silent-oranges-pay.md +++ b/.changeset/silent-oranges-pay.md @@ -3,7 +3,7 @@ "react-router-dom": patch --- -Allow using `` with external URLs +Allow using `` with absolute URLs ```tsx diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 4bee1e15d4..8e65c45b6c 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -7,7 +7,7 @@ - Fix bug with search params removal ([#9969](https://github.com/remix-run/react-router/pull/9969)) - Respect `preventScrollReset` on `fetcher.Form` ([#9963](https://github.com/remix-run/react-router/pull/9963)) - Use `pagehide` instead of `beforeunload` for ``. This has better cross-browser support, specifically on Mobile Safari. ([#9945](https://github.com/remix-run/react-router/pull/9945)) -- Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) +- Allow using `` with absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) ```tsx diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 66f5808472..692ecf98b0 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -4,7 +4,7 @@ ### Patch Changes -- Allow using `` with external absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) +- Allow using `` with absolute URLs ([#9900](https://github.com/remix-run/react-router/pull/9900)) ```tsx