Skip to content

v2.0.6

Compare
Choose a tag to compare
@p333ter p333ter released this 17 Dec 10:56
· 2 commits to main since this release

Release Description

🔨 Fixed

  • Birth numbers with month '00' are now properly rejected
  • Future dates are now correctly handled - possible but not valid
  • Birth number validation now properly follows the original specification where:
  • isPossible() checks only format validity
  • isValid() adds extra validation for future dates

🧪 Testing

  • Added tests for zero month validation
  • Updated future date tests to match correct validation pattern
  • Added tests to verify isPossible/isValid behavior for future dates

🔍 Technical Details

The validation logic has been refined to:

  • Reject invalid months (00) during initial parsing
  • Allow parsing of future dates but mark them as invalid