Skip to content

Commit

Permalink
Remove support for React 16 and 17 (#8340)
Browse files Browse the repository at this point in the history
### WHY are these changes introduced?

Fixes #8331

### WHAT is this pull request doing?

Removing support for v16 and v17 from Shopify Polaris.
  • Loading branch information
alex-page authored Feb 15, 2023
1 parent c07bf0c commit 79f40cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions documentation/guides/migrating-from-v10-to-v11.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions polaris-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"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"
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@changesets/get-release-plan": "^3.0.13",
Expand Down
1 change: 0 additions & 1 deletion polaris-react/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 79f40cd

Please sign in to comment.