From 8af4b467d078bec45df2eba944d69c8166068e2a Mon Sep 17 00:00:00 2001 From: Alex Page Date: Tue, 14 Feb 2023 20:11:25 +1100 Subject: [PATCH 1/4] Remove react 16 and 17 support --- polaris-react/package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/polaris-react/package.json b/polaris-react/package.json index 07cf19d817a..6e7cc955f5f 100644 --- a/polaris-react/package.json +++ b/polaris-react/package.json @@ -65,10 +65,6 @@ "react-fast-compare": "^3.2.0", "react-transition-group": "^4.4.2" }, - "peerDependencies": { - "react": "^16.14.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0" - }, "devDependencies": { "@changesets/get-release-plan": "^3.0.13", "@shopify/browserslist-config": "^3.0.0", From fe8d5e1d88469ff3bdb6cc694b97e3cff7cf2f98 Mon Sep 17 00:00:00 2001 From: Alex Page Date: Tue, 14 Feb 2023 20:54:36 +1100 Subject: [PATCH 2/4] Update rollup.config.mjs --- polaris-react/rollup.config.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/polaris-react/rollup.config.mjs b/polaris-react/rollup.config.mjs index d4c67eb25f9..1ebb6092c1a 100644 --- a/polaris-react/rollup.config.mjs +++ b/polaris-react/rollup.config.mjs @@ -33,7 +33,6 @@ function generateConfig({output, targets, stylesConfig}) { // Options that may be present on the `babelConfig` object but // we want to override envName: 'production', - // @ts-expect-error targets is a valid babel option but @types/babel__core doesn't know that yet targets, }), replace({ From cd959fa25ae6b0d39bc2b92a17398849c726e6e1 Mon Sep 17 00:00:00 2001 From: Alex Page Date: Wed, 15 Feb 2023 11:19:57 +1100 Subject: [PATCH 3/4] Update package.json --- polaris-react/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polaris-react/package.json b/polaris-react/package.json index 6e7cc955f5f..4b8bc304501 100644 --- a/polaris-react/package.json +++ b/polaris-react/package.json @@ -65,6 +65,10 @@ "react-fast-compare": "^3.2.0", "react-transition-group": "^4.4.2" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "devDependencies": { "@changesets/get-release-plan": "^3.0.13", "@shopify/browserslist-config": "^3.0.0", From 546984486acef02c4a4111e5d66597a07c70c281 Mon Sep 17 00:00:00 2001 From: Alex Page Date: Wed, 15 Feb 2023 12:54:48 +1100 Subject: [PATCH 4/4] Update migrating-from-v10-to-v11.md --- documentation/guides/migrating-from-v10-to-v11.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/guides/migrating-from-v10-to-v11.md b/documentation/guides/migrating-from-v10-to-v11.md index 4436cd26920..b82cfc6a940 100644 --- a/documentation/guides/migrating-from-v10-to-v11.md +++ b/documentation/guides/migrating-from-v10-to-v11.md @@ -14,6 +14,10 @@ Polaris v11.0.0 ([full release notes](https://github.com/Shopify/polaris/release NodeJS version 14 is no longer supported. NodeJS 18 is recommended and 16 is the minimum supported version. +## React support + +React version 16 and 17 is no longer supported. React 18 is the minimum supported version. + ## TypeScript Built types in `@shopify/polaris` have moved from `build/ts/latest` to `build/ts`.