Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2787 from Shopify/drop-react-17
Browse files Browse the repository at this point in the history
Drop support for React 17
  • Loading branch information
vsumner authored Jun 7, 2024
2 parents ca656da + 4eb6248 commit 81697af
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 31 deletions.
32 changes: 32 additions & 0 deletions .changeset/selfish-cats-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'@shopify/react-app-bridge-universal-provider': minor
'@shopify/react-async': minor
'@shopify/react-bugsnag': minor
'@shopify/react-compose': minor
'@shopify/react-cookie': minor
'@shopify/react-csrf': minor
'@shopify/react-csrf-universal-provider': minor
'@shopify/react-effect': minor
'@shopify/react-form': minor
'@shopify/react-form-state': minor
'@shopify/react-google-analytics': minor
'@shopify/react-graphql': minor
'@shopify/react-graphql-universal-provider': minor
'@shopify/react-hooks': minor
'@shopify/react-html': minor
'@shopify/react-hydrate': minor
'@shopify/react-i18n': minor
'@shopify/react-i18n-universal-provider': minor
'@shopify/react-idle': minor
'@shopify/react-import-remote': minor
'@shopify/react-intersection-observer': minor
'@shopify/react-network': minor
'@shopify/react-performance': minor
'@shopify/react-router': minor
'@shopify/react-shortcuts': minor
'@shopify/react-testing': minor
'@shopify/react-universal-provider': minor
'@shopify/react-web-worker': minor
---

Drop support for React 17
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# directly from node dist.
# https://github.com/actions/setup-node
node-version: ['18', '20']
react-version: ['17', '18']
react-version: ['18']
timeout-minutes: 15

steps:
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@
"puppeteer": "^13.2.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-dom17": "npm:react-dom@^17.0.2",
"react-dom18": "npm:react-dom@^18.1.0",
"react17": "npm:react@^17.0.2",
"react18": "npm:react@^18.1.0",
"rimraf": "^2.6.2",
"rollup": "^2.60.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-app-bridge-universal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@shopify/react-html": "^13.0.8"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "^5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@shopify/useful-types": "^5.1.2"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-bugsnag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@bugsnag/plugin-react": "^7.18.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-testing": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"hoist-non-react-statics": "^3.0.1"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-testing": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-cookie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cookie": "^0.4.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-csrf-universal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@shopify/react-universal-provider": "^3.0.15"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-effect": "^5.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-csrf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node": ">=18.12.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-testing": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-effect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"server.esnext"
],
"peerDependencies": {
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-form-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"fast-deep-equal": "^3.1.3"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-testing": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node": ">=18.12.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-google-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@shopify/react-import-remote": "^4.1.8"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-graphql-universal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"peerDependencies": {
"@apollo/client": ">=3.5.8 || <4.0.0",
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-effect": "^5.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
],
"peerDependencies": {
"@apollo/client": ">=3.5.8 || <4.0.0",
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"module": "index.mjs",
"esnext": "index.esnext",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/Shopify/quilt/issues"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"homepage": "https://github.com/Shopify/quilt/blob/main/packages/react-hooks/README.md",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"serialize-javascript": "^3.0.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hydrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@shopify/react-hooks": "^3.1.1"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-i18n-universal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@shopify/react-i18n": "^7.10.3"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-effect": "^5.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"sideEffects": false,
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"optionalDependencies": {
"@babel/template": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-idle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@shopify/async": "^4.0.4"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-import-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@shopify/react-intersection-observer": "^4.0.4"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"sideEffects": false,
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-intersection-observer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"index.esnext"
],
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"peerDependencies": {
"koa": "^2.5.0",
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-performance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@shopify/performance": "^4.2.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"peerDependencies": {
"react-router-dom": "^6.4.0",
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-shortcuts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"node": ">=18.12.0"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"matchers.esnext"
],
"peerDependencies": {
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"module": "index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-universal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@shopify/react-html": "^13.0.8"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"files": [
"build/",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-web-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@shopify/web-worker": "^6.1.2"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0",
"react": ">=18.0.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
"files": [
Expand Down

0 comments on commit 81697af

Please sign in to comment.