Skip to content

Commit 391d71d

Browse files
chore(deps): update dependency eslint-plugin-react-hooks to v7 (#926)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [eslint-plugin-react-hooks](https://react.dev/) ([source](https://redirect.github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks)) | [`^5.0.0` -> `^7.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/5.2.0/7.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-react-hooks/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-react-hooks/5.2.0/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>facebook/react (eslint-plugin-react-hooks)</summary> ### [`v7.0.1`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#701) [Compare Source](https://redirect.github.com/facebook/react/compare/4b3e662e4ce54eb54a8701c48a967cc84a389501...408b38ef7304faf022d2a37110c57efce12c6bad) - Disallowed passing inline `useEffectEvent` values as JSX props to guard against accidental propagation. ([#&#8203;34820](https://redirect.github.com/facebook/react/pull/34820) by [@&#8203;jf-eirinha](https://redirect.github.com/jf-eirinha)) - Switch to `export =` so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. ([#&#8203;34949](https://redirect.github.com/facebook/react/pull/34949) by [@&#8203;karlhorky](https://redirect.github.com/karlhorky)) - Tightened the typing of `configs.flat` so the `configs` export is always defined. ([#&#8203;34950](https://redirect.github.com/facebook/react/pull/34950) by [@&#8203;poteto](https://redirect.github.com/poteto)) - Fix named import runtime errors. ([#&#8203;34951](https://redirect.github.com/facebook/react/pull/34951), [#&#8203;34953](https://redirect.github.com/facebook/react/pull/34953) by [@&#8203;karlhorky](https://redirect.github.com/karlhorky)) ### [`v7.0.0`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#700) [Compare Source](https://redirect.github.com/facebook/react/compare/a2329c10ffc153303ad5a65b99d91d8500ceabdd...4b3e662e4ce54eb54a8701c48a967cc84a389501) This release slims down presets to just 2 configurations (`recommended` and `recommended-latest`), and all compiler rules are enabled by default. - **Breaking:** Removed `recommended-latest-legacy` and `flat/recommended` configs. The plugin now provides `recommended` (legacy and flat configs with all recommended rules), and `recommended-latest` (legacy and flat configs with all recommended rules plus new bleeding edge experimental compiler rules). ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34757](https://redirect.github.com/facebook/react/pull/34757)) ### [`v6.1.1`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#611) [Compare Source](https://redirect.github.com/facebook/react/compare/861811347b8fa936b4a114fc022db9b8253b3d86...a2329c10ffc153303ad5a65b99d91d8500ceabdd) **Note:** 6.1.0 accidentally allowed use of `recommended` without flat config, causing errors when used with ESLint v9's `defineConfig()` helper. This has been fixed in 6.1.1. - Fix `recommended` config for flat config compatibility. The `recommended` config has been converted to flat config format. Non-flat config users should use `recommended-legacy` instead. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34700](https://redirect.github.com/facebook/react/pull/34700)) - Add `recommended-latest` and `recommended-latest-legacy` configs that include React Compiler rules. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34675](https://redirect.github.com/facebook/react/pull/34675)) - Remove unused `NoUnusedOptOutDirectives` rule. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34703](https://redirect.github.com/facebook/react/pull/34703)) - Remove `hermes-parser` and dependency. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34719](https://redirect.github.com/facebook/react/pull/34719)) - Remove `@babel/plugin-proposal-private-methods` dependency. ([@&#8203;ArnaudBarre](https://redirect.github.com/ArnaudBarre) and [@&#8203;josephsavona](https://redirect.github.com/josephsavona) in [#&#8203;34715](https://redirect.github.com/facebook/react/pull/34715)) - Update for Zod v3/v4 compatibility. ([@&#8203;kolian](https://redirect.github.com/kolvian) and [@&#8203;josephsavona](https://redirect.github.com/josephsavona) in [#&#8203;34717](https://redirect.github.com/facebook/react/pull/34717)) ### [`v6.1.0`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#610) [Compare Source](https://redirect.github.com/facebook/react/compare/fea92d846284bb7f4427ccbe8c16aaf85f0e2943...861811347b8fa936b4a114fc022db9b8253b3d86) **Note:** Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes. - **Breaking:** Require Node.js 18 or newer. ([@&#8203;michaelfaith](https://redirect.github.com/michaelfaith) in [#&#8203;32458](https://redirect.github.com/facebook/react/pull/32458)) - **Breaking:** Flat config is now the default `recommended` preset. Legacy config moved to `recommended-legacy`. ([@&#8203;michaelfaith](https://redirect.github.com/michaelfaith) in [#&#8203;32457](https://redirect.github.com/facebook/react/pull/32457)) - **New Violations:** Disallow calling `use` within try/catch blocks. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34040](https://redirect.github.com/facebook/react/pull/34040)) - **New Violations:** Disallow calling `useEffectEvent` functions in arbitrary closures. ([@&#8203;jbrown215](https://redirect.github.com/jbrown215) in [#&#8203;33544](https://redirect.github.com/facebook/react/pull/33544)) - Handle `React.useEffect` in addition to `useEffect` in rules-of-hooks. ([@&#8203;Ayc0](https://redirect.github.com/Ayc0) in [#&#8203;34076](https://redirect.github.com/facebook/react/pull/34076)) - Added `react-hooks` settings config option that to accept `additionalEffectHooks` that are used across exhaustive-deps and rules-of-hooks rules. ([@&#8203;jbrown215](https://redirect.github.com/jbrown215)) in [#&#8203;34497](https://redirect.github.com/facebook/react/pull/34497) ### [`v6.0.0`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#600) [Compare Source](https://redirect.github.com/facebook/react/compare/3607f4838a8f4a87160da36aa26bb1432d7a5f11...fea92d846284bb7f4427ccbe8c16aaf85f0e2943) Accidentally released. See 6.1.0 for the actual changes. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ae20df0 commit 391d71d

File tree

2 files changed

+123
-6
lines changed

2 files changed

+123
-6
lines changed

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@typescript-eslint/parser": "^8.0.0",
2121
"eslint": "^9.0.0",
2222
"eslint-plugin-react": "^7.33.2",
23-
"eslint-plugin-react-hooks": "^5.0.0",
23+
"eslint-plugin-react-hooks": "^7.0.0",
2424
"path-browserify": "^1.0.1",
2525
"prettier": "^3.0.3",
2626
"rimraf": "^6.0.0"

website/yarn.lock

Lines changed: 122 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,29 @@ __metadata:
601601
languageName: node
602602
linkType: hard
603603

604+
"@babel/core@npm:^7.24.4":
605+
version: 7.28.5
606+
resolution: "@babel/core@npm:7.28.5"
607+
dependencies:
608+
"@babel/code-frame": "npm:^7.27.1"
609+
"@babel/generator": "npm:^7.28.5"
610+
"@babel/helper-compilation-targets": "npm:^7.27.2"
611+
"@babel/helper-module-transforms": "npm:^7.28.3"
612+
"@babel/helpers": "npm:^7.28.4"
613+
"@babel/parser": "npm:^7.28.5"
614+
"@babel/template": "npm:^7.27.2"
615+
"@babel/traverse": "npm:^7.28.5"
616+
"@babel/types": "npm:^7.28.5"
617+
"@jridgewell/remapping": "npm:^2.3.5"
618+
convert-source-map: "npm:^2.0.0"
619+
debug: "npm:^4.1.0"
620+
gensync: "npm:^1.0.0-beta.2"
621+
json5: "npm:^2.2.3"
622+
semver: "npm:^6.3.1"
623+
checksum: 10c0/535f82238027621da6bdffbdbe896ebad3558b311d6f8abc680637a9859b96edbf929ab010757055381570b29cf66c4a295b5618318d27a4273c0e2033925e72
624+
languageName: node
625+
linkType: hard
626+
604627
"@babel/generator@npm:^7.25.9, @babel/generator@npm:^7.28.3":
605628
version: 7.28.3
606629
resolution: "@babel/generator@npm:7.28.3"
@@ -614,6 +637,19 @@ __metadata:
614637
languageName: node
615638
linkType: hard
616639

640+
"@babel/generator@npm:^7.28.5":
641+
version: 7.28.5
642+
resolution: "@babel/generator@npm:7.28.5"
643+
dependencies:
644+
"@babel/parser": "npm:^7.28.5"
645+
"@babel/types": "npm:^7.28.5"
646+
"@jridgewell/gen-mapping": "npm:^0.3.12"
647+
"@jridgewell/trace-mapping": "npm:^0.3.28"
648+
jsesc: "npm:^3.0.2"
649+
checksum: 10c0/9f219fe1d5431b6919f1a5c60db8d5d34fe546c0d8f5a8511b32f847569234ffc8032beb9e7404649a143f54e15224ecb53a3d11b6bb85c3203e573d91fca752
650+
languageName: node
651+
linkType: hard
652+
617653
"@babel/helper-annotate-as-pure@npm:^7.22.5, @babel/helper-annotate-as-pure@npm:^7.27.1, @babel/helper-annotate-as-pure@npm:^7.27.3":
618654
version: 7.27.3
619655
resolution: "@babel/helper-annotate-as-pure@npm:7.27.3"
@@ -787,6 +823,13 @@ __metadata:
787823
languageName: node
788824
linkType: hard
789825

826+
"@babel/helper-validator-identifier@npm:^7.28.5":
827+
version: 7.28.5
828+
resolution: "@babel/helper-validator-identifier@npm:7.28.5"
829+
checksum: 10c0/42aaebed91f739a41f3d80b72752d1f95fd7c72394e8e4bd7cdd88817e0774d80a432451bcba17c2c642c257c483bf1d409dd4548883429ea9493a3bc4ab0847
830+
languageName: node
831+
linkType: hard
832+
790833
"@babel/helper-validator-option@npm:^7.27.1":
791834
version: 7.27.1
792835
resolution: "@babel/helper-validator-option@npm:7.27.1"
@@ -815,6 +858,17 @@ __metadata:
815858
languageName: node
816859
linkType: hard
817860

861+
"@babel/parser@npm:^7.24.4, @babel/parser@npm:^7.28.5":
862+
version: 7.28.5
863+
resolution: "@babel/parser@npm:7.28.5"
864+
dependencies:
865+
"@babel/types": "npm:^7.28.5"
866+
bin:
867+
parser: ./bin/babel-parser.js
868+
checksum: 10c0/5bbe48bf2c79594ac02b490a41ffde7ef5aa22a9a88ad6bcc78432a6ba8a9d638d531d868bd1f104633f1f6bba9905746e15185b8276a3756c42b765d131b1ef
869+
languageName: node
870+
linkType: hard
871+
818872
"@babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.3, @babel/parser@npm:^7.28.4":
819873
version: 7.28.4
820874
resolution: "@babel/parser@npm:7.28.4"
@@ -1819,6 +1873,21 @@ __metadata:
18191873
languageName: node
18201874
linkType: hard
18211875

1876+
"@babel/traverse@npm:^7.28.5":
1877+
version: 7.28.5
1878+
resolution: "@babel/traverse@npm:7.28.5"
1879+
dependencies:
1880+
"@babel/code-frame": "npm:^7.27.1"
1881+
"@babel/generator": "npm:^7.28.5"
1882+
"@babel/helper-globals": "npm:^7.28.0"
1883+
"@babel/parser": "npm:^7.28.5"
1884+
"@babel/template": "npm:^7.27.2"
1885+
"@babel/types": "npm:^7.28.5"
1886+
debug: "npm:^4.3.1"
1887+
checksum: 10c0/f6c4a595993ae2b73f2d4cd9c062f2e232174d293edd4abe1d715bd6281da8d99e47c65857e8d0917d9384c65972f4acdebc6749a7c40a8fcc38b3c7fb3e706f
1888+
languageName: node
1889+
linkType: hard
1890+
18221891
"@babel/types@npm:^7.21.3, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.4.4":
18231892
version: 7.28.4
18241893
resolution: "@babel/types@npm:7.28.4"
@@ -1829,6 +1898,16 @@ __metadata:
18291898
languageName: node
18301899
linkType: hard
18311900

1901+
"@babel/types@npm:^7.28.5":
1902+
version: 7.28.5
1903+
resolution: "@babel/types@npm:7.28.5"
1904+
dependencies:
1905+
"@babel/helper-string-parser": "npm:^7.27.1"
1906+
"@babel/helper-validator-identifier": "npm:^7.28.5"
1907+
checksum: 10c0/a5a483d2100befbf125793640dec26b90b95fd233a94c19573325898a5ce1e52cdfa96e495c7dcc31b5eca5b66ce3e6d4a0f5a4a62daec271455959f208ab08a
1908+
languageName: node
1909+
linkType: hard
1910+
18321911
"@colors/colors@npm:1.5.0":
18331912
version: 1.5.0
18341913
resolution: "@colors/colors@npm:1.5.0"
@@ -7826,12 +7905,18 @@ __metadata:
78267905
languageName: node
78277906
linkType: hard
78287907

7829-
"eslint-plugin-react-hooks@npm:^5.0.0":
7830-
version: 5.2.0
7831-
resolution: "eslint-plugin-react-hooks@npm:5.2.0"
7908+
"eslint-plugin-react-hooks@npm:^7.0.0":
7909+
version: 7.0.1
7910+
resolution: "eslint-plugin-react-hooks@npm:7.0.1"
7911+
dependencies:
7912+
"@babel/core": "npm:^7.24.4"
7913+
"@babel/parser": "npm:^7.24.4"
7914+
hermes-parser: "npm:^0.25.1"
7915+
zod: "npm:^3.25.0 || ^4.0.0"
7916+
zod-validation-error: "npm:^3.5.0 || ^4.0.0"
78327917
peerDependencies:
78337918
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
7834-
checksum: 10c0/1c8d50fa5984c6dea32470651807d2922cc3934cf3425e78f84a24c2dfd972e7f019bee84aefb27e0cf2c13fea0ac1d4473267727408feeb1c56333ca1489385
7919+
checksum: 10c0/1e711d1a9d1fa9cfc51fa1572500656577201199c70c795c6a27adfc1df39e5c598f69aab6aa91117753d23cc1f11388579a2bed14921cf9a4efe60ae8618496
78357920
languageName: node
78367921
linkType: hard
78377922

@@ -9314,6 +9399,22 @@ __metadata:
93149399
languageName: node
93159400
linkType: hard
93169401

9402+
"hermes-estree@npm:0.25.1":
9403+
version: 0.25.1
9404+
resolution: "hermes-estree@npm:0.25.1"
9405+
checksum: 10c0/48be3b2fa37a0cbc77a112a89096fa212f25d06de92781b163d67853d210a8a5c3784fac23d7d48335058f7ed283115c87b4332c2a2abaaccc76d0ead1a282ac
9406+
languageName: node
9407+
linkType: hard
9408+
9409+
"hermes-parser@npm:^0.25.1":
9410+
version: 0.25.1
9411+
resolution: "hermes-parser@npm:0.25.1"
9412+
dependencies:
9413+
hermes-estree: "npm:0.25.1"
9414+
checksum: 10c0/3abaa4c6f1bcc25273f267297a89a4904963ea29af19b8e4f6eabe04f1c2c7e9abd7bfc4730ddb1d58f2ea04b6fee74053d8bddb5656ec6ebf6c79cc8d14202c
9415+
languageName: node
9416+
linkType: hard
9417+
93179418
"history@npm:^4.9.0":
93189419
version: 4.10.1
93199420
resolution: "history@npm:4.10.1"
@@ -14927,7 +15028,7 @@ __metadata:
1492715028
docusaurus-gtm-plugin: "npm:^0.0.2"
1492815029
eslint: "npm:^9.0.0"
1492915030
eslint-plugin-react: "npm:^7.33.2"
14930-
eslint-plugin-react-hooks: "npm:^5.0.0"
15031+
eslint-plugin-react-hooks: "npm:^7.0.0"
1493115032
path-browserify: "npm:^1.0.1"
1493215033
prettier: "npm:^3.0.3"
1493315034
prop-types: "npm:^15.8.1"
@@ -17148,6 +17249,22 @@ __metadata:
1714817249
languageName: node
1714917250
linkType: hard
1715017251

17252+
"zod-validation-error@npm:^3.5.0 || ^4.0.0":
17253+
version: 4.0.2
17254+
resolution: "zod-validation-error@npm:4.0.2"
17255+
peerDependencies:
17256+
zod: ^3.25.0 || ^4.0.0
17257+
checksum: 10c0/0ccfec48c46de1be440b719cd02044d4abb89ed0e14c13e637cd55bf29102f67ccdba373f25def0fc7130e5f15025be4d557a7edcc95d5a3811599aade689e1b
17258+
languageName: node
17259+
linkType: hard
17260+
17261+
"zod@npm:^3.25.0 || ^4.0.0":
17262+
version: 4.1.12
17263+
resolution: "zod@npm:4.1.12"
17264+
checksum: 10c0/b64c1feb19e99d77075261eaf613e0b2be4dfcd3551eff65ad8b4f2a079b61e379854d066f7d447491fcf193f45babd8095551a9d47973d30b46b6d8e2c46774
17265+
languageName: node
17266+
linkType: hard
17267+
1715117268
"zwitch@npm:^2.0.0, zwitch@npm:^2.0.4":
1715217269
version: 2.0.4
1715317270
resolution: "zwitch@npm:2.0.4"

0 commit comments

Comments
 (0)