From af62cc07560f3fd771658dec98f6882d36ec35ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 14 Jun 2023 15:37:41 +0000 Subject: [PATCH 1/2] chore: Update version for release --- .changeset/pre.json | 15 --------- .changeset/start-transition-minification.md | 6 ---- .changeset/v7-start-transition.md | 26 --------------- .../react-router-dom-v5-compat/CHANGELOG.md | 8 +++++ .../react-router-dom-v5-compat/package.json | 4 +-- packages/react-router-dom/CHANGELOG.md | 32 +++++++++++++++++++ packages/react-router-dom/package.json | 4 +-- packages/react-router-native/CHANGELOG.md | 7 ++++ packages/react-router-native/package.json | 4 +-- packages/react-router/CHANGELOG.md | 30 +++++++++++++++++ packages/react-router/package.json | 2 +- 11 files changed, 84 insertions(+), 54 deletions(-) delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/start-transition-minification.md delete mode 100644 .changeset/v7-start-transition.md diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index b8034e1ccd..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.12.1", - "react-router-dom": "6.12.1", - "react-router-dom-v5-compat": "6.12.1", - "react-router-native": "6.12.1", - "@remix-run/router": "1.6.3" - }, - "changesets": [ - "start-transition-minification", - "v7-start-transition" - ] -} diff --git a/.changeset/start-transition-minification.md b/.changeset/start-transition-minification.md deleted file mode 100644 index 79ae098c06..0000000000 --- a/.changeset/start-transition-minification.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-router": patch -"react-router-dom": patch ---- - -Work around webpack/terser `React.startTransition` minification bug in production mode diff --git a/.changeset/v7-start-transition.md b/.changeset/v7-start-transition.md deleted file mode 100644 index 22a204b4f5..0000000000 --- a/.changeset/v7-start-transition.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"react-router": minor -"react-router-dom": minor ---- - -Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. - -Existing behavior will no longer include `React.startTransition`: - -```jsx - - {/*...*/} - - - -``` - -If you wish to enable `React.startTransition`, pass the future flag to your component: - -```jsx - - {/*...*/} - - - -``` diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index eff97a47cc..044b047367 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.13.0 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.13.0` + - `react-router-dom@6.13.0` + ## 6.13.0-pre.1 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 6119777266..bc520b9a99 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.13.0-pre.1", + "version": "6.13.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.13.0-pre.1" + "react-router": "6.13.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 59cb240210..6c73b54a20 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,37 @@ # `react-router-dom` +## 6.13.0 + +### Minor Changes + +- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) + + Existing behavior will no longer include `React.startTransition`: + + ```jsx + + {/*...*/} + + + + ``` + + If you wish to enable `React.startTransition`, pass the future flag to your component: + + ```jsx + + {/*...*/} + + + + ``` + +### Patch Changes + +- Work around webpack/terser `React.startTransition` minification bug in production mode ([#10588](https://github.com/remix-run/react-router/pull/10588)) +- Updated dependencies: + - `react-router@6.13.0` + ## 6.13.0-pre.1 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index b84c42025f..0363c2ed91 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.13.0-pre.1", + "version": "6.13.0", "description": "Declarative routing for React web applications", "keywords": [ "react", @@ -24,7 +24,7 @@ "types": "./dist/index.d.ts", "dependencies": { "@remix-run/router": "1.6.3", - "react-router": "6.13.0-pre.1" + "react-router": "6.13.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index bc4bff18e0..8297832fe6 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router-native` +## 6.13.0 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.13.0` + ## 6.13.0-pre.1 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 2e1b65d2fe..4c8f909def 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.13.0-pre.1", + "version": "6.13.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.13.0-pre.1" + "react-router": "6.13.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index fb2ad8f611..d251dd8f44 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,35 @@ # `react-router` +## 6.13.0 + +### Minor Changes + +- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) + + Existing behavior will no longer include `React.startTransition`: + + ```jsx + + {/*...*/} + + + + ``` + + If you wish to enable `React.startTransition`, pass the future flag to your component: + + ```jsx + + {/*...*/} + + + + ``` + +### Patch Changes + +- Work around webpack/terser `React.startTransition` minification bug in production mode ([#10588](https://github.com/remix-run/react-router/pull/10588)) + ## 6.13.0-pre.1 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index c605aac09b..820a336697 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.13.0-pre.1", + "version": "6.13.0", "description": "Declarative routing for React", "keywords": [ "react", From ad3b34dfcd3b546e3873faa0bd578b88622441d1 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 14 Jun 2023 11:44:38 -0400 Subject: [PATCH 2/2] Update changelogs --- .../react-router-dom-v5-compat/CHANGELOG.md | 16 ------- packages/react-router-dom/CHANGELOG.md | 44 ++----------------- packages/react-router-native/CHANGELOG.md | 14 ------ packages/react-router/CHANGELOG.md | 37 ++-------------- 4 files changed, 8 insertions(+), 103 deletions(-) diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 044b047367..8f556e7ac7 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -8,22 +8,6 @@ - `react-router@6.13.0` - `react-router-dom@6.13.0` -## 6.13.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.13.0-pre.1` - - `react-router-dom@6.13.0-pre.1` - -## 6.12.2-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.12.2-pre.0` - - `react-router-dom@6.12.2-pre.0` - ## 6.12.1 ### Patch Changes diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 6c73b54a20..10c395031a 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) +- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) Existing behavior will no longer include `React.startTransition`: @@ -32,47 +32,11 @@ - Updated dependencies: - `react-router@6.13.0` -## 6.13.0-pre.1 - -### Minor Changes - -- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) - - Existing behavior will no longer include `React.startTransition`: - - ```jsx - - {/*...*/} - - - - ``` - - If you wish to enable `React.startTransition`, pass the future flag to your component: - - ```jsx - - {/*...*/} - - - - ``` - -### Patch Changes - -- Updated dependencies: - - `react-router@6.13.0-pre.1` - -## 6.12.2-pre.0 - -### Patch Changes - -- Work around webpack/terser `React.startTransition` minification bug in production mode ([`2f79bcef`](https://github.com/remix-run/react-router/commit/2f79bcef5f396943cf95d0d23fbd67df9b8e17a6)) -- Updated dependencies: - - `react-router@6.12.2-pre.0` - ## 6.12.1 +> **Warning** +> Please use version `6.13.0` or later instead of `6.12.1`. This version suffers from a `webpack`/`terser` minification issue resulting in invalid minified code in your resulting production bundles which can cause issues in your application. See [#10579](https://github.com/remix-run/react-router/issues/10579) for more details. + ### Patch Changes - Adjust feature detection of `React.startTransition` to fix webpack + react 17 compilation error ([#10569](https://github.com/remix-run/react-router/pull/10569)) diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 8297832fe6..6bba29b74b 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -7,20 +7,6 @@ - Updated dependencies: - `react-router@6.13.0` -## 6.13.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.13.0-pre.1` - -## 6.12.2-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.12.2-pre.0` - ## 6.12.1 ### Patch Changes diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index d251dd8f44..0caac4d8b0 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) +- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) Existing behavior will no longer include `React.startTransition`: @@ -30,40 +30,11 @@ - Work around webpack/terser `React.startTransition` minification bug in production mode ([#10588](https://github.com/remix-run/react-router/pull/10588)) -## 6.13.0-pre.1 - -### Minor Changes - -- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) - - Existing behavior will no longer include `React.startTransition`: - - ```jsx - - {/*...*/} - - - - ``` - - If you wish to enable `React.startTransition`, pass the future flag to your component: - - ```jsx - - {/*...*/} - - - - ``` - -## 6.12.2-pre.0 - -### Patch Changes - -- Work around webpack/terser `React.startTransition` minification bug in production mode ([`2f79bcef`](https://github.com/remix-run/react-router/commit/2f79bcef5f396943cf95d0d23fbd67df9b8e17a6)) - ## 6.12.1 +> **Warning** +> Please use version `6.13.0` or later instead of `6.12.1`. This version suffers from a `webpack`/`terser` minification issue resulting in invalid minified code in your resulting production bundles which can cause issues in your application. See [#10579](https://github.com/remix-run/react-router/issues/10579) for more details. + ### Patch Changes - Adjust feature detection of `React.startTransition` to fix webpack + react 17 compilation error ([#10569](https://github.com/remix-run/react-router/pull/10569))