Immutable
release. Only release title and notes can be modified.
What's Changed
✨ New
react-x/immutability: direct mutations of props and state are now reported — member assignments, updates, deletions, and mutating method calls are flagged when the mutated value resolves (through variable-declarator aliases) to a component's props, auseState/useReducerstate value, or a custom hook matching theadditionalStateHookssetting, independent of whether the mutation happens inside a function that reaches a freeze sink. (#1948, closes #1941)react-x/immutability: added shallow-copy awareness — nested mutations through an object/array literal built by spreading a props or state value (e.g.const copy = { ...state }/const copy = [...state]) are reported, since the nested values are still shared with the original; writes to the copy's own top-level slots are not reported. (#1948)
Full Changelog: v5.18.10...v5.19.0
Attestation
https://github.com/Rel1cx/eslint-react/attestations/45585492