Skip to content

v2.0.0

Choose a tag to compare

@VihangaDev VihangaDev released this 24 Jan 10:16
· 1 commit to master since this release

v2.0.0 β€” Major Parsing Upgrade πŸš€

This release overhauls parsing with multiple strategies, stronger validation, and better handling of messy inputs.


✨ Added

  • Multi-strategy parsing
    • Labeled parsing
    • Single-line parsing
    • Heuristic fallback
  • Heuristic extraction for messy / unstructured input
  • Year-first expiry support (YYYY/MM)
  • Expanded card network detection to 20 networks

πŸ”„ Changed

  • Input normalization for uncommon delimiters
  • Labeled parsing now filters card candidates with Luhn
  • CVV length validation at parse time (must be 3 or 4 digits)

πŸ›  Fixed

  • Detection of merged expiry + CVV digit blobs
  • Date normalization for ambiguous month/year inputs

⚠️ Upgrade Notes (Breaking Change)

  • Inputs with invalid CVV lengths that previously parsed will now raise InvalidCVVError.