Skip to content

Releases: nepada/email-address

3.2.1

27 Oct 16:05
Compare
Choose a tag to compare
  • PHP 8.4 compatibility

3.2.0

28 Sep 11:36
Compare
Choose a tag to compare
  • Drop support for PHP <8.1
  • Use static return type
  • Mark AbstractEmailAddress properties as readonly
  • Drop useless annotations
  • PHP 8.3 compatibility

3.1.2

04 Feb 13:46
Compare
Choose a tag to compare
  • Support nette/utils 4

3.1.1

24 Sep 10:46
Compare
Choose a tag to compare
  • PHP 8.2 compatibility

3.1.0

31 Oct 09:25
Compare
Choose a tag to compare
  • PHP 8.1 compatibility.

3.0.0

14 Nov 10:31
Compare
Choose a tag to compare
  • Drop deprecated methods EmailAddress::getLowercaseValue() and EmailAddress::getOriginalValue() (BC-break).
  • Drop deprecated named constructors from EmailAddress and convert it to interface (BC-break).
  • Mark most of the AbstractEmailAddress methods as final (possible BC-break).
  • Explicitly require ext-mbstring in composer.json.
  • Compatible with PHP 8.0.

2.3.0

05 Jun 09:45
Compare
Choose a tag to compare

New

  • Introduce two distinct implementations of RfcEmailAddress and CaseInsensitiveEmailAddress to be used instead of generic EmailAddress.
  • Add EmailAddress::equals() for comparing two email address value objects.

Deprecations

  • EmailAddress::getOriginalValue() is deprecated, use toString() instead.
  • EmailAddress::getLowercaseValue() is deprecated, for case insensitive representation of email address use directly CaseInsensitiveEmailAddress implementation.
  • Named constructors on EmailAddress are deprecated, you should use named constructors of a specific implementation.
  • For backward compatibility reasons EmailAddress exists as an abstract class. It should not be inherited from by userland. It will be converted to interface in the next major release.

2.2.0

23 Dec 11:44
Compare
Choose a tag to compare
  • Requires PHP >=7.4.
  • Uses native property typehints.

2.1.0

23 Dec 11:41
Compare
Choose a tag to compare
  • Requires Nette 3.0 (Nette 2.4 support was dropped).
  • Requires PHP >=7.2.
  • PHP 7.4 compatibility.

2.0.0

29 Oct 18:23
Compare
Choose a tag to compare
  • Added EmailAddress::toString() method
  • Constructor is private, use static factories EmailAddress::fromString() and EmailAddress::fromDomainAndLocalPart() instead (BC break)
  • EmailAddress is final (possible BC break)