Repository navigation
v4.0.1
Changes
- fix(email): 🐛 Accept modern valid email addresses
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/4.0.1
- Pull request: #51
- Source branch:
fix/email-validation - Version bump:
patch
Pull request notes
Summary
- broaden
Emailvalidation 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