Releases: snowden-fu/create-new-react-component
Releases · snowden-fu/create-new-react-component
Version 1.5.1
Automated NPM publishing via GitHub Actions and improved installation documentation
v1.4.0 - Extended Component Template Options
🚀 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
- Before:
📚 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
Full Changelog: v1.1.0...v1.2.0
v1.1.0
- 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
--langto choosetsorjs - update license to MIT
Full Changelog: v1.0.7...v1.1.0