From 737e5f821df279102c82f25cb6807c89b2212364 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Tue, 22 Nov 2022 15:57:44 +0100 Subject: [PATCH 1/3] [docs] Fix migration feedback --- .../migration/migration-v4/migration-v4.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/data/material/migration/migration-v4/migration-v4.md b/docs/data/material/migration/migration-v4/migration-v4.md index 92aea69c39ee5e..c60a1c79b35bfc 100644 --- a/docs/data/material/migration/migration-v4/migration-v4.md +++ b/docs/data/material/migration/migration-v4/migration-v4.md @@ -83,6 +83,20 @@ We will not change the minimum supported version in a major version of Material However, we generally recommend not to use a TypeScript version older than the lowest supported version of DefinitelyTyped. ::: +If you are using a react verison bellow 17.0.0, update your packages to at least v14.11.2 for Material UI and v17.0.0 for react. + +With npm: + +```sh +npm update @material-ui/core@^4.11.2 react@^17.0.0 +``` + +With yarn: + +```sh +yarn upgrade @material-ui/core@^4.11.2 react@^17.0.0 +``` + If your project includes these packages, you'll need to update them to the `latest` version: - `react-scripts` From e7713113bd10cf9bd45feeff666957d7175b1770 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 22 Nov 2022 20:39:03 +0100 Subject: [PATCH 2/3] feedbacks --- .../migration/migration-v4/migration-v4.md | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/data/material/migration/migration-v4/migration-v4.md b/docs/data/material/migration/migration-v4/migration-v4.md index c60a1c79b35bfc..3d2599f3772db8 100644 --- a/docs/data/material/migration/migration-v4/migration-v4.md +++ b/docs/data/material/migration/migration-v4/migration-v4.md @@ -71,19 +71,11 @@ If you need to support IE 11, check out our [legacy bundle](/material-ui/guides/ ## Update React & TypeScript version -The minimum supported version of React has been increased from v16.8.0 to v17.0.0. - -The minimum supported version of TypeScript has been increased from v3.2 to v3.5. - -:::warning -We try to align with types released by [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) (i.e. packages published on npm under the `@types` namespace). +### Update React -We will not change the minimum supported version in a major version of Material UI. - -However, we generally recommend not to use a TypeScript version older than the lowest supported version of DefinitelyTyped. -::: +The minimum supported version of React has been increased from v16.8.0 to v17.0.0. -If you are using a react verison bellow 17.0.0, update your packages to at least v14.11.2 for Material UI and v17.0.0 for react. +If you are using a React version below 17.0.0, update your packages to at least v14.11.2 for Material UI and v17.0.0 for React. With npm: @@ -97,7 +89,19 @@ With yarn: yarn upgrade @material-ui/core@^4.11.2 react@^17.0.0 ``` -If your project includes these packages, you'll need to update them to the `latest` version: +### Update TypeScript + +The minimum supported version of TypeScript has been increased from v3.2 to v3.5. + +:::warning +We try to align with types released by [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) (i.e. packages published on npm under the `@types` namespace). + +We will not change the minimum supported version in a major version of Material UI. + +However, we generally recommend not to use a TypeScript version older than the lowest supported version of DefinitelyTyped. +::: + +If your project includes these packages, you'll need to update them: - `react-scripts` - `@types/react` From c3c48ac6c6f739863f73a0dba625f833ede920de Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 23 Nov 2022 12:54:41 +0100 Subject: [PATCH 3/3] off topic: this feels more like an info --- docs/data/material/migration/migration-v4/migration-v4.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/data/material/migration/migration-v4/migration-v4.md b/docs/data/material/migration/migration-v4/migration-v4.md index 3d2599f3772db8..6b5c1a1059cfbf 100644 --- a/docs/data/material/migration/migration-v4/migration-v4.md +++ b/docs/data/material/migration/migration-v4/migration-v4.md @@ -93,11 +93,10 @@ yarn upgrade @material-ui/core@^4.11.2 react@^17.0.0 The minimum supported version of TypeScript has been increased from v3.2 to v3.5. -:::warning +:::info We try to align with types released by [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) (i.e. packages published on npm under the `@types` namespace). -We will not change the minimum supported version in a major version of Material UI. - +We will not change the minimum supported version in a minor version of Material UI. However, we generally recommend not to use a TypeScript version older than the lowest supported version of DefinitelyTyped. :::