Skip to content

Commit 214e0be

Browse files
authored
upgrade React to the latest 19.x release (#4733)
* upgrade React to the latest 19.x release * bump lint-examples dependencies * add `@manypkg/cli` to check dependencies, align versions in monorepo * add dependencies align check to CI * correct operations order
1 parent cb1a697 commit 214e0be

File tree

5 files changed

+1132
-1373
lines changed

5 files changed

+1132
-1373
lines changed

.github/workflows/pre-merge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
node-version: "20"
2222
cache: "yarn"
2323

24-
- name: Check dependencies
24+
- name: Check lock for duplications
2525
run: yarn dedupe --check
2626

2727
- name: Install dependencies
2828
run: yarn install --immutable
2929

30+
- name: Check dependencies alignment
31+
run: yarn check-dependencies
32+
3033
- name: Run Lint
3134
run: yarn ci:lint
3235
working-directory: website

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
"build": "yarn --cwd website build",
1818
"build:fast": "yarn --cwd website build:fast",
1919
"serve": "yarn --cwd website serve",
20-
"prepare": "husky"
20+
"prepare": "husky",
21+
"check-dependencies": "manypkg check"
2122
},
22-
"dependencies": {
23+
"devDependencies": {
24+
"@manypkg/cli": "^0.25.0",
2325
"eslint": "^8.57.1",
2426
"eslint-config-prettier": "^10.1.8",
2527
"eslint-plugin-mdx": "^3.6.2",
@@ -30,5 +32,8 @@
3032
"prettier": "^3.6.2",
3133
"pretty-quick": "^4.2.2"
3234
},
35+
"resolutions": {
36+
"@typescript-eslint/typescript-estree": "8.39.1"
37+
},
3338
"packageManager": "[email protected]"
3439
}

scripts/lint-examples/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"tsc-examples": "./bin/tsc-examples.js"
99
},
1010
"devDependencies": {
11-
"@babel/core": "^7.25.2",
12-
"@babel/preset-env": "^7.25.4",
13-
"@babel/runtime": "^7.26.10",
14-
"@react-native-community/slider": "^4.5.3",
15-
"@react-native/babel-preset": "^0.76.0-rc.2",
16-
"@react-native/eslint-config": "^0.76.0-rc.2",
17-
"@react-native/typescript-config": "^0.76.0-rc.2",
18-
"@types/react": "^18.2.79",
11+
"@babel/core": "^7.28.3",
12+
"@babel/preset-env": "^7.28.3",
13+
"@babel/runtime": "^7.28.3",
14+
"@react-native-community/slider": "^4.5.7",
15+
"@react-native/babel-preset": "^0.81.0",
16+
"@react-native/eslint-config": "^0.81.0",
17+
"@react-native/typescript-config": "^0.81.0",
18+
"@types/react": "^19.1.10",
1919
"eslint": "^8.57.1",
2020
"glob": "^11.0.0",
21-
"prettier": "^3.4.2",
22-
"react": "18.3.1",
23-
"react-native": "^0.76.0-rc.2",
24-
"react-native-safe-area-context": "^4.11.0",
25-
"typescript": "5.5.4"
21+
"prettier": "^3.6.2",
22+
"react": "^19.1.1",
23+
"react-native": "^0.81.0",
24+
"react-native-safe-area-context": "^5.6.0",
25+
"typescript": "^5.9.2"
2626
}
2727
}

website/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"@docusaurus/plugin-pwa": "3.8.1",
5858
"@docusaurus/preset-classic": "3.8.1",
5959
"docusaurus-plugin-sass": "^0.2.6",
60-
"react": "^18.2.0",
61-
"react-dom": "^18.2.0",
60+
"react": "^19.1.1",
61+
"react-dom": "^19.1.1",
6262
"react-github-btn": "^1.4.0",
6363
"sass": "1.76.0"
6464
},
@@ -69,14 +69,14 @@
6969
"@react-native-website/lint-examples": "0.0.0",
7070
"@react-native-website/update-redirects": "0.0.0",
7171
"@types/google.analytics": "^0.0.46",
72-
"@types/react": "^18.2.79",
72+
"@types/react": "^19.1.10",
7373
"alex": "^11.0.1",
7474
"case-police": "^1.0.0",
7575
"eslint": "^8.57.1",
7676
"fs-extra": "^11.2.0",
7777
"glob": "^11.0.0",
78-
"prettier": "^3.5.3",
78+
"prettier": "^3.6.2",
7979
"remark-cli": "^12.0.1",
80-
"typescript": "^5.7.2"
80+
"typescript": "^5.9.2"
8181
}
8282
}

0 commit comments

Comments
 (0)