Skip to content

Releases: snowden-fu/create-new-react-component

Version 1.5.1

27 Jul 11:29

Choose a tag to compare

Automated NPM publishing via GitHub Actions and improved installation documentation

v1.4.0 - Extended Component Template Options

22 Jun 04:01

Choose a tag to compare

🚀 Extended Component Template Options - Phase 1

This release introduces 5 different component type templates to make React component creation more flexible and powerful.

✨ New Features

Component Type Templates

  • Functional Component - Traditional function declaration
  • Arrow Function Component - Modern arrow function syntax
  • Class Component - ES6 class with constructor and render method
  • Memoized Component - Wrapped with React.memo for performance optimization
  • ForwardRef Component - Wrapped with React.forwardRef for ref forwarding

Enhanced Features

  • Automatic Import Management - React hooks (memo, forwardRef) are imported automatically
  • Full TypeScript Support - All templates work with both JavaScript and TypeScript
  • Interactive CLI Selection - Choose component type during creation process
  • Comprehensive Testing - Full test suite for all component types

🐛 Bug Fixes

  • Style File Naming - Fixed double dots in CSS/SCSS file names
    • Before: ComponentName.module..css
    • After: ComponentName.module.css

📚 Documentation

  • Updated README with component type examples
  • Added comprehensive test files
  • Created example files for each component type

🔧 Technical Improvements

  • Enhanced ComponentFileContent class with template-specific methods
  • Improved CLI interface with component type selection
  • Better error handling and user feedback

Breaking Changes: None - This is a backward-compatible enhancement.

Migration: No migration required. Existing functionality remains unchanged.

v1.2.0

26 Oct 02:07

Choose a tag to compare

Full Changelog: v1.1.0...v1.2.0

v1.1.0

27 May 00:20

Choose a tag to compare

  • fix: add validation for argument of componentName
  • feat: add option --withProps to generate component with props
  • feat: add option --withImportReact to generate "Import React"
  • BREAKING: change to use option --lang to choose ts or js
  • update license to MIT

Full Changelog: v1.0.7...v1.1.0

v1.0.7

17 May 06:30

Choose a tag to compare