Skip to content

Bump eslint-plugin-react-hooks from 6.0.0-rc.2 to 7.0.1#60919

Merged
gzdunek merged 2 commits intomasterfrom
dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1
Nov 7, 2025
Merged

Bump eslint-plugin-react-hooks from 6.0.0-rc.2 to 7.0.1#60919
gzdunek merged 2 commits intomasterfrom
dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2025

Bumps eslint-plugin-react-hooks from 6.0.0-rc.2 to 7.0.1.

Changelog

Sourced from eslint-plugin-react-hooks's changelog.

7.0.1

  • Disallowed passing inline useEffectEvent values as JSX props to guard against accidental propagation. (#34820 by @​jf-eirinha)
  • Switch to export = so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. (#34949 by @​karlhorky)
  • Tightened the typing of configs.flat so the configs export is always defined. (#34950 by @​poteto)
  • Fix named import runtime errors. (#34951, #34953 by @​karlhorky)

7.0.0

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 in #34757)

6.1.1

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.

6.1.0

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 in #32458)
  • Breaking: Flat config is now the default recommended preset. Legacy config moved to recommended-legacy. (@​michaelfaith in #32457)
  • New Violations: Disallow calling use within try/catch blocks. (@​poteto in #34040)
  • New Violations: Disallow calling useEffectEvent functions in arbitrary closures. (@​jbrown215 in #33544)
  • Handle React.useEffect in addition to useEffect in rules-of-hooks. (@​Ayc0 in #34076)
  • Added react-hooks settings config option that to accept additionalEffectHooks that are used across exhaustive-deps and rules-of-hooks rules. (@​jbrown215) in #34497

6.0.0

Accidentally released. See 6.1.0 for the actual changes.

5.2.0

5.1.0

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file no-changelog Indicates that a PR does not require a changelog entry ui labels Nov 1, 2025
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2025
@dependabot dependabot bot requested a review from r0mant as a code owner November 1, 2025 09:33
@dependabot dependabot bot added the no-changelog Indicates that a PR does not require a changelog entry label Nov 1, 2025
@socket-security
Copy link
Copy Markdown

socket-security bot commented Nov 1, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​eslint-plugin-react-hooks@​6.0.0-rc.2 ⏵ 7.0.1100 +1100100 +196 +1100

View full report

@ravicious ravicious self-assigned this Nov 3, 2025
@ravicious
Copy link
Copy Markdown
Member

Need to investigate if preserve-manual-memoization is still noisy after the update (#59134).

// Enable recommended react-hooks rules as warnings.
...Object.fromEntries(
Object.entries(reactHooksPlugin.configs.recommended.rules).map(
([ruleName]) => [ruleName, 'warn']
)
),
// This rule is noisy, its message does not explain how to address the issue and in the
// release candidate version it seems to report false positives. Turn it back on once those
// concerns are addressed.
// https://github.com/facebook/react/issues/34289
// https://github.com/facebook/react/issues/34313
'react-hooks/preserve-manual-memoization': 'off',

Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 6.0.0-rc.2 to 7.0.1.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

---
updated-dependencies:
- dependency-name: eslint-plugin-react-hooks
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1 branch from d225c23 to 3279701 Compare November 3, 2025 19:48
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "6.0.0-rc.2",
"eslint-plugin-react-hooks": "7.0.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

preserve-manual-memoization is still noisy, so I'm not re-enabling it.

I check if it's noisy by turning it into a warning, restarting my LSP and then checking if it shows a big warning throughout this function:

const handleFetchNext = useCallback(() => {
const search = new URLSearchParams(location.search);
search.set('page', data?.next_page_token ?? '');
history.replace(
{
pathname: location.pathname,
search: search.toString(),
},
{
prevPageTokens: [...prevPageTokens, pageToken],
}
);
}, [
data?.next_page_token,
history,
location.pathname,
location.search,
pageToken,
prevPageTokens,
]);

It seems that the problem is pageToken. React Compiler thinks it can be mutated later. I guess it's true but I don't see how it's different from other deps in this callback.

Someone made an issue about it: facebook/react#34924

@gzdunek gzdunek enabled auto-merge November 7, 2025 16:47
@gzdunek gzdunek added this pull request to the merge queue Nov 7, 2025
Merged via the queue into master with commit e3681c9 Nov 7, 2025
41 checks passed
@gzdunek gzdunek deleted the dependabot/npm_and_yarn/eslint-plugin-react-hooks-7.0.1 branch November 7, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file no-changelog Indicates that a PR does not require a changelog entry ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants