Skip to content

Releases: jeremykendall/php-domain-parser

version 6.3.1

10 Nov 09:20
aa1f9bf
Compare
Choose a tag to compare

What's Changed

version 6.3.0

26 Feb 02:42
34c7177
Compare
Choose a tag to compare

Added

  • RegisteredName class to allow domain with IP4-like labels

Fixed

  • Using PHPUnit 10
  • Domain decorates the new RegisteredName class #347
  • Host::withoutLabel works without arguments.

Deprecated

  • None

Removed

  • None

version 6.2.0

05 Nov 06:20
a9e0b23
Compare
Choose a tag to compare

Added

  • None

Fixed

  • Internal code to make services readonly

  • Internal code to make VO properties readonly

  • Internal code improved typehinting

  • Deprecated

  • None

Removed

  • PHP7 and PHP8.0 support

version 6.1.2

29 Sep 05:05
bc84e24
Compare
Choose a tag to compare

Added

  • None

Fixed

  • #321 remove regression when resolving private domain suffix.

Deprecated

  • None

Removed

  • None

version 6.1.1

18 Feb 22:02
e195ab7
Compare
Choose a tag to compare

Added

  • None

Fixed

  • #321 improve resolving private domain suffix. Rules::getPrivateDomain is more restrictive It will throw if the domain name does not contain a valid "private" TLD.

Deprecated

  • None

Removed

  • None

version 6.1.0

19 Jun 07:50
d8b196b
Compare
Choose a tag to compare

Added

  • TimeToLive::until
  • TimeToLive::fromDurationString

Fixed

  • .gitattributes files to be filter out.
  • TimeToLive marked as internal
  • Host::toUnicode method MUST never throw exceptions on conversion according to RFC3490.
  • UnableToResolveDomain typo in the exception message

Deprecated

  • TimeToLive::fromDateTimeInterface use TimeToLive::fromNow
  • TimeToLive::fromScalar use TimeToLive::convert

Removed

  • None

version 6.0.0

13 Dec 21:15
Compare
Choose a tag to compare

Added

  • Adding proper Interfaces
  • Added Domain::clear to easily initialize an empty domain object
  • Added Domain::slice to easily slice a domain object
  • Added ResolvedDomain object to normalize Resolver results.
  • Added Suffix object to replace the PublicSuffix object from v5.
  • Public Suffix List and IANA Top Level Domain List are fully decoupled
  • Added Idna, IDN support has been completely revamped
  • Added internal Stream class, to improve path/stream resolution
  • Resolver uses by default UTS#46 IDNA2008 algorithm to convert domain names
  • Storage capability is now optional and can be based on PHP-FIG related interfaces to improve interoperability
  • Pdp\TopLevelDomains::getIANADomain which throws on syntax error and if no effective TLD is found (behave like Pdp\TopLevelDomains::resolve in v5).

Fixed

  • The Pdp\Domain class not longer directly exposes Effective TLD status.
  • Effective TLD resolver (Pdp\Rules::resolve and Pdp\TopLevelDomains::resolve) no longer accept IDNA options.
  • Rules::getICANNDomain, Rules::getPrivateDomain will throw even if a PublicSuffix is found but does not belong to the correct PSL section.
  • Pdp\TopLevelDomains::resolve acts like Pdp\Rules::resolve and only throw on TypeError

Deprecated

  • None

Removed

  • __toString and __debugInfo usage
  • Support for PHP7.4-
  • Composer script for automatic updates of the remote databases
  • CLI command bin/update-psl
  • Pdp\Cache, Pdp\CacheException: The package PSR-16 Cache implementation using the underlying filesystem.
  • Pdp\HttpClient, Pdp\CurlHttpClient and Pdp\HttpClientException: The package Http Client.
  • Pdp\Installer, Pdp\Manager: The package source manager and installer
  • Pdp\Logger, The package logger implementation
  • Pdp\Rules::ALL_DOMAINS constant deprecated in version 5.3
  • Pdp\Domain::getDomain deprecated in version 5.3
  • Pdp\Domain::resolve
  • Pdp\Domain::getPublicSuffix replaced by Pdp\ResolvedDomain::suffix
  • Pdp\Domain::getRegistrableDomain replaced by Pdp\ResolvedDomain::registrableDomain
  • Pdp\Domain::getSubDomain replaced by Pdp\ResolvedDomain::subDomain
  • Pdp\Domain::withPublicSuffix replaced by Pdp\ResolvedDomain::withSuffix
  • Pdp\Domain::getLabel replaced by Pdp\Domain::label
  • Pdp\Domain::isTransitionalDifferent replaced by Pdp\IdnaInfo::isTransitionalDifferent
  • Pdp\PublicSuffix replaced by Pdp\Suffix
  • Accessing suffix information from the Pdp\Domain object is no longer possible you need to do it from Pdp\Suffix
  • Pdp\TopLevelDomains::contains without replacement
  • Internal Converter classes (implementation details are no longer exposed).

version 5.7.2

26 Oct 06:44
a2f61eb
Compare
Choose a tag to compare

Added

  • None

Fixed

Deprecated

  • None

Removed

  • None

version 5.7.1

24 Aug 20:17
ad59a10
Compare
Choose a tag to compare

Added

  • None

Fixed

  • Cache throws when cache directory doesn't exist #280

Deprecated

  • None

Removed

  • None

version 5.7.0

03 Aug 06:59
5130bad
Compare
Choose a tag to compare

Added

  • Rules::getCookieDomain
  • Rules::getICANNDomain
  • Rules::getPrivateDomain
  • CouldNotResolvePublicSuffix::dueToUnresolvableDomain

Fixed

  • Improve type hinting and return type by dropping EOL PHP versions support.
  • Improve development environment by dropping EOL PHP versions support.
  • Fix composer script

Deprecated

  • None

Removed

  • Support for PHP7.0 and PHP7.1
  • The external data from IANA and mozilla is no longer part of the package and will be downloaded only on demand on composer update/install.