Update npm dependencies#757
Merged
No767 merged 1 commit intoreact-rewritefrom May 4, 2026
Merged
Conversation
564e252 to
e2c6850
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
^4.2.3→^5.0.0^4.2.3→^5.0.0^0.46.0→^0.47.0Release Notes
Rel1cx/eslint-react (eslint-plugin-react-dom)
v5.7.1Compare Source
🐞 Fixes
allpreset: Fixed an issue where theallpreset accidentally included rules requiring type information (#1744).📝 Documentation
no-unused-staterule wording and examples.🏗️ Internal
nextand@rbxts/react.react-compiler-fixtures-all-preset.jsonlsnapshot generation.Full Changelog: Rel1cx/eslint-react@v5.7.0...v5.7.1
v5.7.0Compare Source
✨ New
react-x/no-unused-state: The rule re-added as a no-op inv5.6.6is now fully implemented. It detects state variables declared viauseState(or similar state hooks) that are defined but never read, or only read inside an effect or effect dependency array (#1741).📝 Documentation
no-unused-statemigration docs and removed rule reasons.Full Changelog: Rel1cx/eslint-react@v5.6.6...v5.7.0
v5.6.6Compare Source
✨ New
react-x/no-unused-state: Re-add thereact-x/no-unused-staterule that was removed in5.0.0as a no-op rule for detecting unused state in function components in a future release.Full Changelog: Rel1cx/eslint-react@v5.6.4...v5.6.6
v5.6.4Compare Source
✨ New
react-x/no-unused-class-component-members: Now flagsshouldComponentUpdatemethods defined in classes extendingPureComponentas unused, sincePureComponentimplements its ownshouldComponentUpdatewith shallow prop and state comparison (#1738).📝 Documentation
jsxpreset documentation to multiple rule docs.🏗️ Internal
ast: Added an optionalstoppredicate tofindParentutility for more control over ancestor traversal (#1736).skottwithsentruxfor architecture linting.Full Changelog: Rel1cx/eslint-react@v5.6.3-beta.0...v5.6.4
v5.6.2Compare Source
🐞 Fixes
react-x/use-memo: Fixed false positives inuseMemodependency analysis by using reference/definition analysis (#1735).📝 Documentation
custom-rules-of-staterecipe.noDirectAccessPropscustom rule example.🏗️ Internal
lucide-reactfrom 1.12.0 to 1.14.0.baseline-browser-mappingto 2.10.24.Full Changelog: Rel1cx/eslint-react@v5.6.0...v5.6.2
v5.6.0Compare Source
This release consolidates all changes since v4.2.1.
💥 Breaking Changes
Core API Refactoring (@eslint-react/core)
component/,function/,hook/,semantic/, andapi/into the root directory.isReactAPI→isAPIisReactAPICall→isAPICallisInitializedFromReact→isAPIFromReactisInitializedFromReactNative→isAPIFromReactNativeComponentDetectionHint→FunctionComponentDetectionHintComponentFlag→FunctionComponentFlaggetComponentCollector→getFunctionComponentCollectorgetComponentCollectorLegacy→getClassComponentCollectortype-is,type-name,type-variant) fromeslint-plugin-react-xto@eslint-react/core.Toolkitinterface in@eslint-react/kitto reflect the naming changes above.Kit API Simplification (@eslint-react/kit)
RuleToolkit.isAPI: Removed pre-built identifier predicates (memo,lazy,forwardRef, etc.) fromRuleToolkit.is. Only*Callvariants andAPI/APICallfactories are now available.initializedFromReact→APIFromReactinitializedFromReactNative→APIFromReactNativeis.memo(node),is.lazy(node), etc. must migrate tois.memoCall(node)or useis.API("memo")(node).Type Alias Removal
RuleDefinitiontype alias: TheRuleDefinitiontype has been completely removed from@eslint-react/kit. UseRuleFunctioninstead.Removed Rules
The following rules have been removed from
eslint-plugin-react-x,eslint-plugin-react-dom, andeslint-plugin-react-debug:component-hook-factoriesreact-xno-redundant-should-component-updatereact-xno-unnecessary-use-callbackreact-xno-unnecessary-use-memoreact-xno-unused-statereact-xprefer-destructuring-assignmentreact-xprefer-namespace-importreact-xprefer-namespace-importreact-domdebug/class-componentreact-debugClass Component Support Deprecation
isClassComponent,isPureComponent, and various lifecycle checkers) have been marked as@deprecated, retaining only minimal compatibility support for existing rules.eslint-plugin-react-web-api, includingno-leaked-event-listener,no-leaked-interval, andno-leaked-timeout, have removed detection for Class Component lifecycles (componentDidMount/componentWillUnmount) and now only report on Hook Effects (useEffect, etc.).✨ New
New Rules
react-x/globals: New rule for restricting usage of global variables in React components.react-x/static-components: New rule for enforcing static component definitions. Enhanced with variable reference tracking and acreatedHerediagnostic to reduce false positives.react-web-api/no-leaked-fetch: New rule that detects leakedfetchcalls in effects, closing #1714.Kit Enhancements
ast.findParentutility to@eslint-react/kitfor traversing AST ancestors.node:crypto randomBytes).Custom Rule Examples
🐞 Fixes
Rule Fixes
react-x/error-boundaries: Fixed false positives on non-React code and resolved catch block over-reporting.react-x/set-state-in-effect: Improved validation accuracy.react-x/use-memo: Added reassignment check, aligned message IDs, and added support forfor-of/for-inloops.Config Fixes
Type Expression Fixes
Extract.unwrapfor type expressions and chain expressions.🪄 Improvements
API & Refactoring
ast: Normalized API naming conventions and rewrote Check helpers.ast: RenamedisJSXLike→isJSXElementOrFragmentandisMethodOrProperty→isPropertyOrMethod.@eslint-react/eslintpackage.@eslint-react/jsxfrom@eslint-react/coreinto a standalone utility package for static analysis of JSX patterns.@and#path aliases and replacedtsxwithvite-node.lib.tsmodules across multiple plugins.RuleConfigwithLinter.RulesRecordfrom ESLint.Core & AST Improvements
ast: UpdatedFunctionInitPathtypes to support method definitions and property arrow functions in class expressions.ast/isNodeEqual: FixedJSXNamespacedNamecomparison logic.Rule Improvements
react-x/static-components: Registered inall,x, anddisable-experimentalconfigs.react-rsc/function-definition: Added directive position and quote checks.lib.tsfiles.Website & Documentation Improvements
/llms.txt,/llms-full.txt,/llms.mdx).Testing
Dependencies
@typescript-eslintpackages to 8.59.1.tsl-dx,tsdown,fumadocs,postcss,lucide-react,eslint-plugin-package-json, and other dependencies.📝 Documentation
no-set-state,no-string-refs).🏗️ Internal
build:pluginsscript and updated build path patterns.publishConfig.accessto packages and marked@local/effas private.major-release-checklist.md.scripts/prepare-release.tsand the accompanyingprepare:releasenpm script.Full Changelog: Rel1cx/eslint-react@v4.2.1...v5.6.0
oxc-project/oxc (oxfmt)
v0.47.0Compare Source
Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.