Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/guide-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@vitejs/plugin-react": "^4.5.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-react-refresh": "^0.5.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default import removed in v0.5 breaks ESLint config

High Severity

The bump to eslint-plugin-react-refresh@^0.5.2 removes the default export from the package. The existing examples/guide-example/eslint.config.js uses import reactRefresh from 'eslint-plugin-react-refresh' (a default import) and passes it directly as a plugin via 'react-refresh': reactRefresh. In v0.5.x, this default import returns undefined, causing an "Expected an object" error at lint time. The import needs to change to the named export (import { reactRefresh }) and the plugin reference needs to use reactRefresh.plugin.

Fix in Cursor Fix in Web

"globals": "^16.0.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.54.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@vitejs/plugin-react": "^4.5.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-react-refresh": "^0.5.2",
"expo": "~53.0.22",
"expo-constants": "~17.1.7",
"expo-device": "^7.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"babel-plugin-react-require": "^4.0.3",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-react-refresh": "^0.5.2",
"jsdom": "^27.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@vitejs/plugin-react": "^4.5.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-react-refresh": "^0.5.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-native": "^0.79.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"eslint": "^8.56.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.14",
"eslint-plugin-react-refresh": "^0.5.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint 8 incompatible with react-refresh 0.5.x peer requirement

High Severity

eslint-plugin-react-refresh v0.5.2 requires eslint: ^9 || ^10 as a peer dependency, but every package and example in this repo still depends on eslint: "^8.56.0" (resolving to 8.57.1). This is a breaking major version bump — the plugin now ships as ESM-only, requires flat config, and drops ESLint 8 support. All four packages and the guide-example will have unmet peer dependencies, and ESLint may fail to load the plugin at runtime.

Additional Locations (2)
Fix in Cursor Fix in Web

"jsdom": "^27.1.0",
"next": "15.3.6",
"react": "^19.0.0",
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4401,7 +4401,7 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.5.1"
eslint: "npm:^8.56.0"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-react-refresh: "npm:^0.4.14"
eslint-plugin-react-refresh: "npm:^0.5.2"
expo: "npm:~53.0.22"
expo-constants: "npm:~17.1.7"
expo-device: "npm:^7.1.4"
Expand Down Expand Up @@ -4486,7 +4486,7 @@ __metadata:
date-fns: "npm:^4.0.0"
eslint: "npm:^8.56.0"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-react-refresh: "npm:^0.4.14"
eslint-plugin-react-refresh: "npm:^0.5.2"
fast-deep-equal: "npm:^3.1.3"
jsdom: "npm:^27.1.0"
react: "npm:^19.0.0"
Expand Down Expand Up @@ -4519,7 +4519,7 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.5.1"
eslint: "npm:^8.56.0"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-react-refresh: "npm:^0.4.14"
eslint-plugin-react-refresh: "npm:^0.5.2"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
react-native: "npm:^0.79.2"
Expand Down Expand Up @@ -4573,7 +4573,7 @@ __metadata:
eslint: "npm:^8.56.0"
eslint-plugin-jsx-a11y: "npm:^6.10.2"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-react-refresh: "npm:^0.4.14"
eslint-plugin-react-refresh: "npm:^0.5.2"
jsdom: "npm:^27.1.0"
lodash.debounce: "npm:^4.0.8"
lucide-react: "npm:^0.544.0"
Expand Down Expand Up @@ -12418,12 +12418,12 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-react-refresh@npm:^0.4.14":
version: 0.4.20
resolution: "eslint-plugin-react-refresh@npm:0.4.20"
"eslint-plugin-react-refresh@npm:^0.5.2":
version: 0.5.2
resolution: "eslint-plugin-react-refresh@npm:0.5.2"
peerDependencies:
eslint: ">=8.40"
checksum: 10c0/2ccf4ba28f1dcbcb9e773e46eae1e61e568bba69281a700eb26fd762152e4e90a78c991f9c8173342a7cd2a82f3f52fedb40a1e81360cef9c40ea5b814fa3613
eslint: ^9 || ^10
checksum: 10c0/6e5b1b8ad673535ea1134fa16ecda986c389a045b87ca935e6c5f69070b1889218f3116bfb8b793ec10f37c286f28904d0b5b1d62a76760e465aa32e73e6010e
languageName: node
linkType: hard

Expand Down Expand Up @@ -13898,7 +13898,7 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.5.1"
eslint: "npm:^8.56.0"
eslint-plugin-react-hooks: "npm:^5.2.0"
eslint-plugin-react-refresh: "npm:^0.4.14"
eslint-plugin-react-refresh: "npm:^0.5.2"
globals: "npm:^16.0.0"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
Expand Down
Loading