Skip to content

Commit

Permalink
feat!: drop React v17 support
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 9, 2023
1 parent eb1ce02 commit e3a2486
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 40 deletions.
7 changes: 7 additions & 0 deletions .changeset/purple-tables-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@remix-run/eslint-config": major
"@remix-run/react": major
"@remix-run/testing": major
---

Drop React v17 support
8 changes: 4 additions & 4 deletions docs/guides/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ The Remix compiler will not do any type checking (it simply removes the types).
"@remix-run/node": "latest",
"@remix-run/react": "latest",
"@remix-run/serve": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "latest",
"@remix-run/eslint-config": "latest",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.23.1",
"typescript": "^5.1.6"
},
Expand Down
4 changes: 2 additions & 2 deletions integration/server-entry-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ test.describe("Default Server Entry (React 17)", () => {
"@remix-run/react": "0.0.0-local-version",
"@remix-run/serve": "0.0.0-local-version",
isbot: "0.0.0-local-version",
react: "17.0.2",
"react-dom": "17.0.2",
react: "^18.2.0",
"react-dom": "^18.2.0",
},
devDependencies: {
"@remix-run/dev": "0.0.0-local-version",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"@types/jest": "^27.4.1",
"@types/jsonfile": "^6.1.0",
"@types/lodash": "^4.14.182",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/react-test-renderer": "^18.0.0",
"@types/retry": "^0.12.0",
"@types/semver": "^7.3.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-dev/__tests__/fixtures/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@cloudflare/workers-types": "^3.18.0",
"@remix-run/dev": "^1.12.0",
"@remix-run/eslint-config": "^1.12.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.27.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.1.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@remix-run/server-runtime": "https://esm.sh/@remix-run/server-runtime@1.9.0",
"@remix-run/dev/server-build": "https://esm.sh/@remix-run/dev@1.9.0/server-build",
"@remix-run/react": "https://esm.sh/@remix-run/react@1.9.0",
"react": "https://esm.sh/react@17.0.2",
"react-dom": "https://esm.sh/react-dom@17.0.2",
"react-dom/server": "https://esm.sh/react-dom@17.0.2/server"
"react": "https://esm.sh/react@18.2.0",
"react-dom": "https://esm.sh/react-dom@18.2.0",
"react-dom/server": "https://esm.sh/react-dom@18.2.0/server"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"devDependencies": {
"@remix-run/dev": "*",
"@types/node": "^18.17.1",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"typescript": "^5.1.6"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-dev/__tests__/fixtures/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"devDependencies": {
"@remix-run/dev": "^1.12.0",
"@remix-run/eslint-config": "^1.12.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.27.0",
"typescript": "^5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"peerDependencies": {
"eslint": "^8.0.0",
"react": "^17.0.0 || ^18.0.0",
"react": "^18.0.0",
"typescript": "^5.1.0"
},
"peerDependenciesMeta": {
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"@remix-run/server-runtime": "1.19.3",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.3.0",
"@types/react": "^18.0.15",
"@types/react": "^18.2.20",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"typescript": "^5.1.0"
},
"peerDependenciesMeta": {
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
},
"devDependencies": {
"@types/node": "^18.17.1",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react": "^18.0.0",
"typescript": "^5.1.0"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/playground/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@remix-run/dev": "*",
"@types/bcryptjs": "^2.4.2",
"@types/node": "^18.17.1",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"autoprefixer": "^10.4.8",
"cross-env": "^7.0.3",
"npm-run-all": "^4.1.5",
Expand Down
4 changes: 2 additions & 2 deletions templates/arc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@architect/architect": "^10.12.1",
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/source-map-support": "^0.5.6",
"eslint": "^8.38.0",
"typescript": "^5.1.6"
Expand Down
4 changes: 2 additions & 2 deletions templates/cloudflare-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@cloudflare/workers-types": "^4.20230518.0",
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.38.0",
"typescript": "^5.1.0",
"wrangler": "^3.1.1"
Expand Down
4 changes: 2 additions & 2 deletions templates/cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@cloudflare/workers-types": "^4.20230518.0",
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.38.0",
"typescript": "^5.1.6",
"wrangler": "^3.1.1"
Expand Down
4 changes: 2 additions & 2 deletions templates/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@types/compression": "^1.7.2",
"@types/express": "^4.17.17",
"@types/morgan": "^1.9.4",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/source-map-support": "^0.5.6",
"chokidar": "^3.5.3",
"eslint": "^8.38.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/fly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"devDependencies": {
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.38.0",
"typescript": "^5.1.6"
},
Expand Down
4 changes: 2 additions & 2 deletions templates/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"devDependencies": {
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"eslint": "^8.38.0",
"typescript": "^5.1.6"
},
Expand Down
20 changes: 18 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2693,21 +2693,28 @@
resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz"
integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==

"@types/react-dom@^18.0.0", "@types/react-dom@^18.0.6", "@types/react-dom@^18.0.8":
"@types/react-dom@^18.0.0":
version "18.0.8"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.8.tgz"
integrity sha512-C3GYO0HLaOkk9dDAz3Dl4sbe4AKUGTCfFIZsz3n/82dPNN8Du533HzKatDxeUYWu24wJgMP1xICqkWk1YOLOIw==
dependencies:
"@types/react" "*"

"@types/react-dom@^18.2.7":
version "18.2.7"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.7.tgz#67222a08c0a6ae0a0da33c3532348277c70abb63"
integrity sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==
dependencies:
"@types/react" "*"

"@types/react-test-renderer@^18.0.0":
version "18.0.0"
resolved "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-18.0.0.tgz"
integrity sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ==
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.15", "@types/react@^18.0.24":
"@types/react@*":
version "18.0.24"
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.24.tgz"
integrity sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q==
Expand All @@ -2716,6 +2723,15 @@
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.2.20":
version "18.2.20"
resolved "https://registry.npmjs.org/@types/react/-/react-18.2.20.tgz#1605557a83df5c8a2cc4eeb743b3dfc0eb6aaeb2"
integrity sha512-WKNtmsLWJM/3D5mG4U84cysVY31ivmyw85dE84fOCk5Hx78wezB/XEjVPWl2JTZ5FkEeaTJf+VgUAUn3PE7Isw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/resolve@1.17.1":
version "1.17.1"
resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz"
Expand Down

0 comments on commit e3a2486

Please sign in to comment.