Skip to content

Commit da11d79

Browse files
committed
fix(deps): upgrade react compiler to v1
1 parent 9c5ae23 commit da11d79

File tree

5 files changed

+292
-307
lines changed

5 files changed

+292
-307
lines changed

.github/workflows/react-compiler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/setup-node@v5
2323
with:
2424
node-version: lts/*
25-
- run: pnpm -r up --ignore-scripts react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@rc eslint-plugin-react-hooks-with-use-effect-event@npm:eslint-plugin-react-hooks@experimental
25+
- run: pnpm -r up --ignore-scripts react-compiler-runtime@latest babel-plugin-react-compiler@latest eslint-plugin-react-hooks@latest
2626
- uses: actions/create-github-app-token@v2
2727
id: generate-token
2828
with:
@@ -38,7 +38,7 @@ jobs:
3838
- if: steps.check-changes.outputs.changed == 'true'
3939
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
4040
with:
41-
body: I ran `pnpm -r up --ignore-scripts react-compiler-runtime@rc babel-plugin-react-compiler@rc eslint-plugin-react-hooks@rc eslint-plugin-react-hooks-with-use-effect-event@npm:eslint-plugin-react-hooks@experimental` 🧑‍💻
41+
body: I ran `pnpm -r up --ignore-scripts react-compiler-runtime@latest babel-plugin-react-compiler@latest eslint-plugin-react-hooks@latest` 🧑‍💻
4242
branch: actions/react-compiler
4343
commit-message: "fix(deps): update react compiler dependencies 🤖 ✨"
4444
labels: 🤖 bot

eslint.config.mjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import js from '@eslint/js'
22
import {defineConfig, globalIgnores} from 'eslint/config'
33
import eslintConfigPrettier from 'eslint-config-prettier/flat'
44
import reactPlugin from 'eslint-plugin-react'
5-
import reactHooksPlugin from 'eslint-plugin-react-hooks'
6-
import reactHooksPluginWithUseEffectEvent from 'eslint-plugin-react-hooks-with-use-effect-event'
5+
import reactHooks from 'eslint-plugin-react-hooks'
76
import simpleImportSort from 'eslint-plugin-simple-import-sort'
87
import tseslint from 'typescript-eslint'
98

@@ -12,19 +11,16 @@ export default defineConfig([
1211
js.configs.recommended,
1312
tseslint.configs.recommended,
1413
eslintConfigPrettier,
15-
...reactHooksPlugin.configs['flat/recommended'],
14+
reactHooks.configs.flat.recommended,
1615
{
1716
plugins: {
1817
'simple-import-sort': simpleImportSort,
1918
'react': reactPlugin,
20-
'react-hooks-with-use-effect-event': reactHooksPluginWithUseEffectEvent,
2119
},
2220
rules: {
2321
'simple-import-sort/imports': 'error',
2422
'simple-import-sort/exports': 'error',
25-
// This rule understands useEffectEvent, unlike the original react-hooks plugin
26-
'react-hooks-with-use-effect-event/exhaustive-deps': 'error',
27-
'react-hooks/exhaustive-deps': 'off',
23+
'react-hooks/exhaustive-deps': 'error',
2824
'@typescript-eslint/no-explicit-any': 'off',
2925
},
3026
},

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"prettier": "@sanity/prettier-config",
7676
"dependencies": {
7777
"observable-callback": "^1.0.3",
78-
"react-compiler-runtime": "19.1.0-rc.3",
78+
"react-compiler-runtime": "1.0.0",
7979
"use-effect-event": "^2.0.3"
8080
},
8181
"devDependencies": {
@@ -86,22 +86,21 @@
8686
"@testing-library/dom": "^10.4.1",
8787
"@testing-library/react": "^16.3.0",
8888
"@types/node": "^24.3.0",
89-
"@types/react": "^19.1.12",
90-
"@types/react-dom": "^19.1.9",
89+
"@types/react": "^19.2.2",
90+
"@types/react-dom": "^19.2.2",
9191
"@typescript-eslint/eslint-plugin": "^8.41.0",
9292
"@typescript-eslint/parser": "^8.41.0",
9393
"@vitejs/plugin-react": "^5.0.3",
94-
"babel-plugin-react-compiler": "19.1.0-rc.3",
94+
"babel-plugin-react-compiler": "1.0.0",
9595
"eslint": "^9.34.0",
9696
"eslint-config-prettier": "^10.1.8",
9797
"eslint-plugin-react": "^7.37.5",
98-
"eslint-plugin-react-hooks": "6.0.0-rc.2",
99-
"eslint-plugin-react-hooks-with-use-effect-event": "npm:[email protected]",
98+
"eslint-plugin-react-hooks": "7.0.0",
10099
"eslint-plugin-simple-import-sort": "^12.1.1",
101100
"jsdom": "^26.1.0",
102101
"prettier": "^3.6.2",
103-
"react": "^19.1.1",
104-
"react-dom": "^19.1.1",
102+
"react": "^19.2.0",
103+
"react-dom": "^19.2.0",
105104
"react-test-renderer": "^19.1.1",
106105
"rxjs": "^7.8.2",
107106
"semantic-release": "^24.2.7",

0 commit comments

Comments
 (0)