Skip to content

v1.1.0 - Code Quality Improvements and Documentation

Latest

Choose a tag to compare

@AngusHsu AngusHsu released this 30 Nov 11:59
· 4 commits to main since this release

🧹 Code Quality Improvements and Documentation

What's Changed

🔧 Code Quality Improvements

  • Removed dead code paths - Cleaned up non-functional case statements that were identified during code review
    • Removed empty case statements in parseIdInfo() function
    • Removed dead code for Peru (PE) validator (always returned false with incorrect country code)
    • Removed dead code for Tunisia (TN) validator (always returned false with incorrect country code)
    • Removed incomplete implementation comments that provided no actionable value

📚 Documentation

  • Added CHANGELOG.md - Following Keep a Changelog format
    • Documents all releases (v1.0.0, v1.0.1, and future versions)
    • Includes issue and PR references for traceability
    • Follows Semantic Versioning conventions
  • Added CHANGELOG-MAINTENANCE.md - Comprehensive guide for contributors
    • When and how to update the CHANGELOG
    • Category guidelines and examples
    • Release process documentation

✨ Improvements

  • Better code maintainability - Reduced main dispatcher file complexity
  • Clearer codebase - Removed confusing placeholder code
  • Improved developer experience - Clear documentation for maintaining changelog

Installation

npm install idnumbers@1.1.0

Migration from v1.0.1

This is a minor release with internal improvements:

  • No breaking changes
  • 100% backward compatible with v1.0.1
  • No API changes - All existing functionality works exactly the same
  • ℹ️ Peru and Tunisia were never supported - Dead code removal has no functional impact

Test Results

Test Suites: 6 passed, 6 total
Tests:       402 passed, 402 total
Time:        ~2.5s

All quality checks passed:

  • ✅ TypeScript compilation
  • ✅ ESLint checks
  • ✅ Prettier formatting
  • ✅ All tests passing

What's Next

Focus areas for upcoming releases:

  • Additional country support
  • Enhanced parsing functions for existing countries
  • Improved test coverage for specific validators
  • Community contributions welcome!

Contributors

Thank you to all contributors who helped improve this release!


Full Changelog: v1.0.1...v1.1.0