Skip to content

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 05 Sep 16:03
· 74 commits to master since this release

Changes

  • fix(email): 🐛 Accept modern valid email addresses

Release details

Pull request notes

Summary

  • broaden Email validation without trying to implement the full RFC 5322 grammar
  • accept modern long TLDs, punycode TLDs, and common ASCII local-part characters such as apostrophes and /
  • treat the punycode xn-- prefix case-insensitively
  • require punycode TLD payloads to end in an alphanumeric character
  • remove the obsolete assumption that TLDs longer than 13 characters are invalid
  • keep existing format-only behavior: no DNS, mailbox, or provider-specific checks
  • add regression coverage for .technology, punycode, uppercase ACE prefixes, apostrophes, slash local parts, malformed trailing hyphens, and the 63-character DNS label limit

Semver

Non-breaking / patch. This broadens accepted input while preserving previously accepted addresses; malformed punycode introduced by the first draft is rejected.

Validation

  • full CI passes on the current PR head
  • lint, unit tests with 100% coverage, and package build pass
  • all three review threads have been addressed and resolved