Mobile Phone Validation: Added support for validating mobile phone numbers in Sudan (ar-SD) and Wallis and Futuna (fr-WF). This enhancement ensures users can validate local phone numbers accurately.
Email Validation: Introduced new options for the email validator, allowing underscores in domain names and excluding non-breaking spaces in the user part. This improves the flexibility and accuracy of email address validation.
IBAN Validation: Enhanced the IBAN validator by adding whitelist and blacklist options, allowing users to restrict validation to specific countries. This feature provides greater control over IBAN validation.
Date Validation: Improved compatibility of date declarations across multiple environments, particularly for React Native. This ensures that date validations work seamlessly in various setups.
Language Tag Validation: Expanded support for validating more valid language tags, ensuring compliance with RFC 5646. This allows for more accurate language tag validation.
New Validator: Introduced a new validator for validating mailto: link URIs, ensuring that email links are formatted correctly. This enhances the overall validation capabilities of the library.
Mobile Phone Validation: Added regex validation for mobile phone numbers in Somalia (so-SO) and the Central African Republic (CF). This ensures accurate validation for users in these regions.
IBAN Validation: Added support for Morocco's IBAN format, enhancing the library's international validation capabilities.
Improvements
Mobile Phone Validation: Updated the Polish mobile phone number validation to include numbers starting with 45, reflecting recent changes in the numbering system.
Mobile Phone Validation: Fixed the validation for Cuban mobile phone numbers to ensure that only valid lengths are accepted, improving the accuracy of the validation.
VAT Validation: Corrected the validation for Swiss VAT numbers, ensuring that the last digit check is performed accurately. This enhances the reliability of VAT number validation.
Fixes
Fix validation issue in the JWT function, ensuring that only valid JWT tokens are accepted. This improves the security and reliability of token validation.
Others
Encourage contributors to provide credible references when creating new validators, enhancing the quality and reliability of the validation methods.