Commit 391d71d
authored
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)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](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.
([#​34820](https://redirect.github.com/facebook/react/pull/34820)
by [@​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.
([#​34949](https://redirect.github.com/facebook/react/pull/34949)
by [@​karlhorky](https://redirect.github.com/karlhorky))
- Tightened the typing of `configs.flat` so the `configs` export is
always defined.
([#​34950](https://redirect.github.com/facebook/react/pull/34950)
by [@​poteto](https://redirect.github.com/poteto))
- Fix named import runtime errors.
([#​34951](https://redirect.github.com/facebook/react/pull/34951),
[#​34953](https://redirect.github.com/facebook/react/pull/34953)
by [@​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).
([@​poteto](https://redirect.github.com/poteto) in
[#​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.
([@​poteto](https://redirect.github.com/poteto) in
[#​34700](https://redirect.github.com/facebook/react/pull/34700))
- Add `recommended-latest` and `recommended-latest-legacy` configs that
include React Compiler rules.
([@​poteto](https://redirect.github.com/poteto) in
[#​34675](https://redirect.github.com/facebook/react/pull/34675))
- Remove unused `NoUnusedOptOutDirectives` rule.
([@​poteto](https://redirect.github.com/poteto) in
[#​34703](https://redirect.github.com/facebook/react/pull/34703))
- Remove `hermes-parser` and dependency.
([@​poteto](https://redirect.github.com/poteto) in
[#​34719](https://redirect.github.com/facebook/react/pull/34719))
- Remove `@babel/plugin-proposal-private-methods` dependency.
([@​ArnaudBarre](https://redirect.github.com/ArnaudBarre) and
[@​josephsavona](https://redirect.github.com/josephsavona) in
[#​34715](https://redirect.github.com/facebook/react/pull/34715))
- Update for Zod v3/v4 compatibility.
([@​kolian](https://redirect.github.com/kolvian) and
[@​josephsavona](https://redirect.github.com/josephsavona) in
[#​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.
([@​michaelfaith](https://redirect.github.com/michaelfaith) in
[#​32458](https://redirect.github.com/facebook/react/pull/32458))
- **Breaking:** Flat config is now the default `recommended` preset.
Legacy config moved to `recommended-legacy`.
([@​michaelfaith](https://redirect.github.com/michaelfaith) in
[#​32457](https://redirect.github.com/facebook/react/pull/32457))
- **New Violations:** Disallow calling `use` within try/catch blocks.
([@​poteto](https://redirect.github.com/poteto) in
[#​34040](https://redirect.github.com/facebook/react/pull/34040))
- **New Violations:** Disallow calling `useEffectEvent` functions in
arbitrary closures.
([@​jbrown215](https://redirect.github.com/jbrown215) in
[#​33544](https://redirect.github.com/facebook/react/pull/33544))
- Handle `React.useEffect` in addition to `useEffect` in rules-of-hooks.
([@​Ayc0](https://redirect.github.com/Ayc0) in
[#​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.
([@​jbrown215](https://redirect.github.com/jbrown215)) in
[#​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
2 files changed
+123
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
604 | 627 | | |
605 | 628 | | |
606 | 629 | | |
| |||
614 | 637 | | |
615 | 638 | | |
616 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
617 | 653 | | |
618 | 654 | | |
619 | 655 | | |
| |||
787 | 823 | | |
788 | 824 | | |
789 | 825 | | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
790 | 833 | | |
791 | 834 | | |
792 | 835 | | |
| |||
815 | 858 | | |
816 | 859 | | |
817 | 860 | | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
818 | 872 | | |
819 | 873 | | |
820 | 874 | | |
| |||
1819 | 1873 | | |
1820 | 1874 | | |
1821 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
1822 | 1891 | | |
1823 | 1892 | | |
1824 | 1893 | | |
| |||
1829 | 1898 | | |
1830 | 1899 | | |
1831 | 1900 | | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
1832 | 1911 | | |
1833 | 1912 | | |
1834 | 1913 | | |
| |||
7826 | 7905 | | |
7827 | 7906 | | |
7828 | 7907 | | |
7829 | | - | |
7830 | | - | |
7831 | | - | |
| 7908 | + | |
| 7909 | + | |
| 7910 | + | |
| 7911 | + | |
| 7912 | + | |
| 7913 | + | |
| 7914 | + | |
| 7915 | + | |
| 7916 | + | |
7832 | 7917 | | |
7833 | 7918 | | |
7834 | | - | |
| 7919 | + | |
7835 | 7920 | | |
7836 | 7921 | | |
7837 | 7922 | | |
| |||
9314 | 9399 | | |
9315 | 9400 | | |
9316 | 9401 | | |
| 9402 | + | |
| 9403 | + | |
| 9404 | + | |
| 9405 | + | |
| 9406 | + | |
| 9407 | + | |
| 9408 | + | |
| 9409 | + | |
| 9410 | + | |
| 9411 | + | |
| 9412 | + | |
| 9413 | + | |
| 9414 | + | |
| 9415 | + | |
| 9416 | + | |
| 9417 | + | |
9317 | 9418 | | |
9318 | 9419 | | |
9319 | 9420 | | |
| |||
14927 | 15028 | | |
14928 | 15029 | | |
14929 | 15030 | | |
14930 | | - | |
| 15031 | + | |
14931 | 15032 | | |
14932 | 15033 | | |
14933 | 15034 | | |
| |||
17148 | 17249 | | |
17149 | 17250 | | |
17150 | 17251 | | |
| 17252 | + | |
| 17253 | + | |
| 17254 | + | |
| 17255 | + | |
| 17256 | + | |
| 17257 | + | |
| 17258 | + | |
| 17259 | + | |
| 17260 | + | |
| 17261 | + | |
| 17262 | + | |
| 17263 | + | |
| 17264 | + | |
| 17265 | + | |
| 17266 | + | |
| 17267 | + | |
17151 | 17268 | | |
17152 | 17269 | | |
17153 | 17270 | | |
| |||
0 commit comments