use-text-analyzer
use-text-analyzer copied to clipboard
Bump eslint-plugin-react-hooks from 4.6.2 to 5.1.0
Bumps eslint-plugin-react-hooks from 4.6.2 to 5.1.0.
Release notes
Sourced from eslint-plugin-react-hooks's releases.
[email protected] (Oct 11, 2024)
This release only contains
eslint-plugin-react-hooks. Notably, new violations and support for ESLint v9 were added.
eslint-plugin-react-hooks
- New Violations: Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means
_Buttonor_componentare no longer valid. (@kassens) in #25162 For example, infunction _Component() { useState() ^^^^^^^^ A React Hook "useState" is called in function "_Component" which is neither a Component nor a custom React Hook function. }_Componentshould be renamed toComponent.
- Add support for ESLint v9. (
@eps1lonin #28773)- Consider dispatch from
useActionStatestable. (@eps1lonin #29665)- Accept
asexpression in callback. (@StyleShitin #28202)- Accept
asexpressions in deps array. (@StyleShitin #28189)- Treat
React.use()the same asuse(). (@kassensin #27769)- Move
use()lint to non-experimental. (@kassensin #27768)- Support Flow
asexpressions. (@cpojerin #27590)- Allow
useEffect(fn, undefined). (@kassensin #27525)- Disallow hooks in async functions. (
@acdlitein #27045)- Rename experimental
useEventtouseEffectEvent. (@sebmarkbagein #25881)- Lint for presence of
useEventfunctions in dependency lists. (@potetoin #25512)- Check
useEventreferences instead. (@potetoin #25319)- Update
RulesOfHookswithuseEventrules. (@potetoin #25285)
Changelog
Sourced from eslint-plugin-react-hooks's changelog.
15.1.0 (May 20, 2016)
React
- Ensure we're using the latest
object-assign, which has protection against a non-spec-compliant nativeObject.assign. (@zpaoin #6681)- Add a new warning to communicate that
propsobjects passed tocreateElementmust be plain objects. (@richardscarrottin #6134)- Fix a batching bug resulting in some lifecycle methods incorrectly being called multiple times. (
@sophiebitsin #6650)React DOM
- Fix regression in custom elements support. (
@jscissrin #6570)- Stop incorrectly warning about using
onScrollevent handler with server rendering. (@Awearyin #6678)- Fix grammar in the controlled input warning. (
@jakeboone02in #6657)- Fix issue preventing
<object>nodes from being able to read<param>nodes in IE. (@syranidein #6691)- Fix issue resulting in crash when using experimental error boundaries with server rendering. (
@jimfbin #6694)- Add additional information to the controlled input warning. (
@borisyankovin #6341)React Perf Add-on
- Completely rewritten to collect data more accurately and to be easier to maintain. (
@gaearonin #6647, #6046)React Native Renderer
- Remove some special cases for platform specific branching. (
@sebmarkbagein #6660)- Remove use of
mergeutility. (@sebmarkbagein #6634)- Renamed some modules to better indicate usage (
@javachein #6643)15.0.2 (April 29, 2016)
React
- Removed extraneous files from npm package. (
@gaearonin #6388)- Ensure
componentWillUnmountis only called once. (@jimfbin #6613)ReactDOM
- Fixed bug resulting in disabled buttons responding to mouse events in IE. (
@nhunzakerin #6215)- Ensure
<option>s are correctly selected when inside<optgroup>. (@trevorsmithin #6442)- Restore support for rendering into a shadow root. (
@Wildhoneyin #6462)- Ensure nested
<body>elements are caught when warning for invalid markup. (@keyanzhangin #6469)- Improve warning when encountering multiple elements with the same key. (
@hkalin #6500)React TestUtils Add-on
- Ensure that functional components do not have an owner. (
@gaearonin #6362)- Handle invalid arguments to
scryRenderedDOMComponentsWithClassbetter. (@ipeters90in #6529)React Perf Add-on
React Native Renderer
- These files are now shipped inside the React npm package. They have no impact on React core or ReactDOM.
15.0.1 (April 8, 2016)
... (truncated)
Commits
- See full diff in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)