unstale

npm / eslint-plugin-react-refresh

eslint-plugin-react-refresh

What changed in eslint-plugin-react-refresh 0.4 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

4 breaking6 new APIs and options3 behavior and defaults1 tooling7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

eslint-plugin-react-refresh 0.515 changes

Breaking changes 4

  • The package now requires ESLint 9.

    0.5.0release notes

  • Replaces customHOCs; use it to specify additional HOCs for validation.

    0.5.0release notes

  • HOC call validation is stricter, distinguishing actual React HOC calls from random call expressions; add HOCs such as connect or styled to extraHOCs when needed.

    0.5.0release notes

  • The package now requires Node 20.

    0.5.0release notes

New APIs and options 3

  • Adds an option that suppresses warnings when components are exported together in an object; every member must be a component, and anonymous functions need a component name as key. Defaults to false, or true in vite config.

    0.5.7release notes

  • Add instant to allowExportNames in Next config.

    0.5.4release notes

  • A named export provides the plugin object and configuration presets; its preset functions accept custom options, merge them with defaults, and return a config object.

    0.5.0release notes

Behavior and default changes 3

Tooling 1

Fixes and other changes 4

  • SCREAMING_SNAKE_CASE constants exported via this syntax are no longer incorrectly treated as React components.

    0.5.5release notes

  • Fixes detection of non-component classes exported via export { }.

    0.5.3release notes

  • False positives with TypeScript function overloading are supported.

    0.5.1release notes

  • The rule now handles ternaries and chained HOC patterns such as customHOC(props)(Component), allowing it to correctly support those files.

    0.5.0release notes

eslint-plugin-react-refresh 0.46 changes

New APIs and options 3

  • Adds generateImageMetadata to allowExportNames in Next config.

    0.4.24release notes

  • Adds generateSitemaps to allowExportNames in Next config.

    0.4.24release notes

  • Adds generateStaticParams to allowExportNames in Next config.

    0.4.24release notes

Fixes and other changes 3

  • Reverts changes intended to fix issue #93, addressing issue #95.

    0.4.26release notes

  • Component names may now contain underscores.

    0.4.25release notes

  • The rule now reports cases such as exporting Object.keys(TABLE) as EnumType[].

    0.4.25release notes