emails_validator 1.1.0
emails_validator: ^1.1.0 copied to clipboard
Simple and efficient email address validator for Dart. Validates email syntax without using regular expressions, following RFC standards with detailed debug information.
Changelog #
1.1.0 #
- Rebuilt validator core for speed: single-pass parsing with early exits and reduced allocations.
- Changed default
EmailsValidator.debugEnabledtofalseto remove runtime overhead in production. - Added
EmailValidationError,EmailValidationResult, andvalidateDetailed()for explicit failure reasons. - Added
EmailValidationOptionswithstandardandrelaxedprofiles. - Added
validateWithOptions(),validateListWithOptions(),getValidEmailsWithOptions(), andgetInvalidEmailsWithOptions(). - Optimized duplicate handling in
validateList()to linear-time counting. - Added benchmark script at
benchmark/benchmark.dartand extended test coverage for the new API.
1.0.2 #
- Added
EmailsValidator.debugEnabledflag to control DEBUG output - Strengthened validation: now ensures exactly one
@symbol - Fixed documentation about minimum TLD length (minimum 1 character)
- Example Flutter app: use
withValuesinstead ofwithOpacity
1.0.1 #
Updated example to use Flutter web application instead of console example.
1.0.0 #
Initial release of the emails_validator package.
Features #
- Simple and efficient email address validation
- No external dependencies
- RFC standards compliance
- Detailed debug information
- Support for validating lists of email addresses
- High performance without regular expressions
API #
EmailsValidator.validate(String email)- Validate single emailEmailsValidator.validateList(List<String> emails)- Validate list of emailsEmailsValidator.getValidEmails(List<String> emails)- Get only valid emailsEmailsValidator.getInvalidEmails(List<String> emails)- Get only invalid emails
Examples #
- Basic validation
- List validation
- Debug information output
- Interactive Flutter Web demo