Methane v1.4.9 π
What's new β
The latest patch version 1.4.9 introduces a crucial fix that enhances the naming conventions for generated components and Next.js pages. This update ensures hyphenated names are correctly capitalized, providing a more consistent and readable codebase.
Component Capitalization Fix:
When generating components with hyphenated names, Methane-CLI will now correctly capitalize each segment of the name. For instance, creating a component named animated-button will result in a component named AnimatedButton. This ensures that components follow standard PascalCase naming conventions, enhancing code readability and consistency.
Next.js Page Capitalization Fix:
Similarly, generating Next.js pages with hyphenated names will now produce correctly capitalized page names. For example, a page named 2fa-auth will be created as 2FaAuth, user-appointments as UserAppointments, and privacy-policy as PrivacyPolicy. This fix ensures that page names are intuitive and follow common naming practices.
# Generating a React Component
mac@Macs-MBP~/D/react-app$ methane g -c animated-button
# This will create a component named AnimatedButton
# Generating a Next.js Page
mac@Macs-MBP~/D/react-app$ methane g -np user-appointments
# This will create a page named UserAppointments
What's Changed
- V1.4.9 by @Adedoyin-Emmanuel in #42
Full Changelog: v1.4.8...1.4.9