v6.0.0
Release Notes: v6.0.0
🚨 Breaking Changes
Node.js Version Requirements
- Dropped support for Node.js 18
- Now requires Node.js 20 or higher
- This is a major version bump due to the minimum Node.js version change
Dependency Changes
- Removed minimist - Replaced with native util.parseArgs()
- Removed log-driver - Replaced with native logging wrapper
- Removed several unused dependencies - Cleaner, lighter package
✨ New Features & Improvements
Code Quality
- 🎯 100% test coverage - Complete code coverage across all modules
- Modern async/await patterns - Replaced all callback-based code with async/await
- Proper Error objects - Standardized error handling throughout
- Functional programming - Refactored code to be more testable and maintainable
Git Integration
- Improved branch detection - Fixed regex to support all valid characters in branch names
- Better git metadata extraction - More reliable git command parsing
- Support for commit_sha values - Enhanced commit identification
- Fixed undefined branch handling - No more spaces or "undefined" in branch values
Testing
- New bin/coveralls.js tests - Added comprehensive CLI tests
- Enhanced test coverage - Added tests for edge cases across all modules
- Updated test patterns - Modern testing practices throughout
Documentation
- Added CONTRIBUTING.md - Complete contributor guide (317 lines)
- Enhanced README - Updated documentation with better examples and clarity
- Improved inline documentation - Better code comments and JSDoc
Developer Experience
- Updated GitHub Actions - Modern CI configuration
- Cleaner dependencies - Reduced package-lock.json complexity significantly
- Security fixes - Updated dependencies to resolve vulnerabilities
📦 Package Changes
Major dependency reduction:
- Production dependencies now minimal (just js-yaml and lcov-parse)
- Updated all dev dependencies to latest versions
- Cleaner, faster installs
Files changed: 22 files, 3,074 insertions, 4,480 deletions (net reduction of 1,406 lines)
🔄 Migration Guide
Updating from v5.0.0 to v6.0.0
- Update Node.js: Ensure you're running Node.js 20 or higher
node --version # Should be >= 20.0.0 - Update the package:
npm install coveralls-next@6.0.0 - No API changes: The CLI and programmatic API remain backward compatible
🐛 Bug Fixes
- Fixed branch name regex to handle all valid git branch characters
- Fixed handling of undefined/null branch values
- Cleaned up date/time handling logic
- Improved error propagation throughout the codebase