# Release Notes - SolarLunar v3.0.0 ## 🚀 Major Modernization and Performance Upgrade ### 🏗️ Architecture Modernization - **Build System**: Upgraded from Webpack 3 to **Rollup 4** for better tree-shaking and module support - **Testing Framework**: Migrated from Karma/Mocha to **Vitest** for faster, more reliable tests - **Module Support**: Added support for ESM, CJS, and UMD formats - **TypeScript**: Added comprehensive type definitions and type checking support ### ⚡ Performance Improvements - **Speed**: Achieved **>340,000 operations/second** (previously had performance issues) - **Fixed Algorithm Issues**: All 8 failing tests resolved, now 100% test pass rate (57/57) - **Optimized Calculations**: Improved天干地支 and节气 calculation algorithms - **Memory Efficiency**: Optimized data structures and reduced memory footprint ### 📚 Documentation and Examples - **API Documentation**: Comprehensive API reference with parameter details - **Usage Examples**: Rich set of practical examples covering all features - **Quick Start Guide**: Beginner-friendly getting started instructions - **Feature Specifications**: Detailed feature explanations and capabilities - **Maintenance Guide**: Complete maintenance and development guidelines ### 🔧 Development Tools - **ESLint**: Code quality checks with modern JavaScript standards - **Prettier**: Automated code formatting for consistency - **GitHub Actions**: CI/CD workflow with multi-version Node.js testing - **Security Audit**: Automated vulnerability detection and fixes - **Performance Benchmarking**: Comprehensive performance testing suite ### 🔐 Security and Quality - **Vulnerability Fixes**: Resolved 15 security vulnerabilities in dependencies - **Dependency Updates**: Updated all packages to secure, compatible versions - **Peer Dependency Fixes**: Resolved @rollup/plugin-terser and Rollup compatibility - **Code Quality**: Strict linting and formatting standards implemented ### 🛠️ Bug Fixes and Enhancements - **天干地支 Calculation**: Fixed algorithm with correct五虎遁月 method - **节气 Detection**: Corrected solar term detection logic - **Variable Scoping**: Fixed variable redeclaration and scoping issues - **Input Validation**: Enhanced validation and error handling - **Cross-browser Compatibility**: Improved support for different environments ### 🔄 Compatibility - **Backward Compatible**: Maintained full API compatibility with v2.x - **Date Range**: Preserved 1900-2100 year support - **Function Signatures**: All existing function calls remain unchanged ### 📦 Package Improvements - **Tree-shaking**: Better support for bundler optimizations - **Smaller Bundle**: More efficient build outputs - **Type Definitions**: Complete TypeScript support - **Multiple Formats**: ESM, CJS, and UMD builds provided ### 🧪 Testing and Quality Assurance - **57 Test Cases**: Comprehensive test coverage with 100% pass rate - **Boundary Tests**: Extensive edge case validation - **Performance Tests**: Automated benchmarking suite - **Compatibility Tests**: Multi-version Node.js validation ### 📁 Repository Cleanup - **Temporary Files**: Removed all debug and temporary files - **Clean Repository**: Only essential source, documentation, and config files - **Updated Gitignore**: Proper file exclusion patterns ## 🔖 Version Information - **Version**: 3.0.0 - **Type**: Major release (semver breaking changes in underlying implementation) - **Node.js Support**: 18.x, 20.x, 22.x - **Browser Support**: Modern browsers with ES6+ support ## 🔄 Migration Guide For users upgrading from v2.x: 1. All public API methods remain unchanged 2. Performance will be significantly improved 3. Bundle size may be slightly different due to modern build process 4. Type definitions are now available for TypeScript users ## 🙏 Acknowledgments This major update wouldn't be possible without the modern JavaScript ecosystem and the continuous improvements in development tooling.