emails_validator 1.1.0 copy "emails_validator: ^1.1.0" to clipboard
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.debugEnabled to false to remove runtime overhead in production.
  • Added EmailValidationError, EmailValidationResult, and validateDetailed() for explicit failure reasons.
  • Added EmailValidationOptions with standard and relaxed profiles.
  • Added validateWithOptions(), validateListWithOptions(), getValidEmailsWithOptions(), and getInvalidEmailsWithOptions().
  • Optimized duplicate handling in validateList() to linear-time counting.
  • Added benchmark script at benchmark/benchmark.dart and extended test coverage for the new API.

1.0.2 #

  • Added EmailsValidator.debugEnabled flag to control DEBUG output
  • Strengthened validation: now ensures exactly one @ symbol
  • Fixed documentation about minimum TLD length (minimum 1 character)
  • Example Flutter app: use withValues instead of withOpacity

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 email
  • EmailsValidator.validateList(List<String> emails) - Validate list of emails
  • EmailsValidator.getValidEmails(List<String> emails) - Get only valid emails
  • EmailsValidator.getInvalidEmails(List<String> emails) - Get only invalid emails

Examples #

  • Basic validation
  • List validation
  • Debug information output
  • Interactive Flutter Web demo
1
likes
150
points
202
downloads

Documentation

API reference

Publisher

verified publisherworldin.net

Weekly Downloads

Simple and efficient email address validator for Dart. Validates email syntax without using regular expressions, following RFC standards with detailed debug information.

Repository (GitHub)
View/report issues

Topics

#email #validation #rfc #dart #flutter

License

MIT (license)

More

Packages that depend on emails_validator