Skip to content

Latest commit

 

History

History
73 lines (41 loc) · 1.54 KB

CHANGELOG.md

File metadata and controls

73 lines (41 loc) · 1.54 KB

Changelog

0.4.1

  • Ignore export type * (fixes #12)
  • Support for all-uppercase function wrapped in forwardRef/memo (#11)

0.4.0

Add allowConstantExport option (fixes #8)

This option allow to don't warn when a constant (string, number, boolean, templateLiteral) is exported aside one or more components.

This should be enabled if the fast refresh implementation correctly handles this case (HMR when the constant doesn't change, propagate update to importers when the constant changes). Vite supports it, PR welcome if you notice other integrations works well.

Allow all-uppercase function exports (fixes #11)

This only works when using direct export. So this pattern doesn't warn anymore:

export const CMS = () => <></>;

But this one will still warn:

const CMS = () => <></>;
export default CMS;

0.3.5

Ignore stories files (*.stories.*) (fixes #10)

0.3.4

Report default CallExpression exports (#7) (fixes #6)

This allows to report a warning for this kind of patterns that creates anonymous components:

export default compose()(MainComponent)

0.3.3

Add checkJS option (#5) (fixes #4)

0.3.2

Ignore test files (*.test.*, *.spec.*) (fixes #2)

0.3.1

Allow numbers in component names (fixes #1)

0.3.0

Report an error when a file that contains components that can't be fast-refreshed because:

  • There are no export (entrypoint)
  • Exports are not components

0.2.1

Doc only: Update limitations section README.md

0.2.0

  • Fix TS import
  • Document limitations

0.1.0

Initial release