Releases: esperecyan/url
Releases · esperecyan/url
v5.3.1
Supports PHP 8.1
v5.3.0 Support PHP 8.1
Supports PHP 8.0
- Ends support for PHP 5.5, 5.6, and 7.1 because no security updates are provided on any platform.
- Deprecates PHP 5.2 because this versions is end of life.
Deprecates PHP 5.4 – 7.1 because this versions is end of life
v5.0.5: Fix Windows drive letter handling in the file slash state
And adds the \esperecyan\url\lib\URL::stringStartsWithWindowsDriveLetter() static method. Reflects https://github.com/whatwg/url/commit/2eef975e989cb5ae2d62467394778fd6778ddec9 .
There are two backward incompatible changes and some deprecations
Changed
- The meaning of the second parameter of the esperecyan\url\lib\HostProcessing::parseHost() method has been changed (optional
$unicodeFlagto required$isSpecial).
If you depend on the old meaning$unicodeFlag, please use esperecyan\url\lib\HostProcessing::domainToUnicode() method instead. - The SPL Types PECL library is no longer supported
Compatible
Removed
- Removed the second parameter
$encodingOverrideand third parameter$useCharsetFlagof the esperecyan\url\lib\URLencoding::parseURLencoded() method.
Changed
- Renamed the esperecyan\url\lib\URL::popPath() method to shortenPath()
- Renamed the esperecyan\url\lib\Infrastructure::SIMPLE_ENCODE_SET constant to C0_CONTROL_PERCENT_ENCODE_SET
- Renamed the esperecyan\url\lib\Infrastructure::DEFAULT_ENCODE_SET constant to PATH_PERCENT_ENCODE_SET
- Renamed the esperecyan\url\lib\Infrastructure::USERINFO_ENCODE_SET constant to USERINFO_PERCENT_ENCODE_SET
- Moved the esperecyan\url\lib\Infrastructure::WINDOWS_DRIVE_LETTER constant to esperecyan\url\lib\URL::WINDOWS_DRIVE_LETTER
- Moved the esperecyan\url\lib\Infrastructure::NORMALIZED_WINDOWS_DRIVE_LETTER constant to esperecyan\url\lib\URL::NORMALIZED_WINDOWS_DRIVE_LETTER
Dprecated
- The esperecyan\url\URL::domainToASCII() method has been deprecated.
Please use esperecyan\url\lib\HostProcessing::domainToASCII() method instead. - The esperecyan\url\URL::domainToUnicode() method has been deprecated.
Please use esperecyan\url\lib\HostProcessing::domainToUnicode() method instead. - The esperecyan\url\lib\URL::$localSchemes pseudo constant (property) has been deprecated.
- The esperecyan\url\lib\URL::isLocal() method has been deprecated.
- Deprecated PHP 5.5 in addition to 5.4
v4.6.1: Obsolete $isindexFlag parameter on lib\URLencoding::parseURLencoded()
To reflect whatwg/url@c85fb5d.
v4.6.0: Make lib\URL->getOrigin() return an array with 4 elements
To reflect whatwg/url@b0e4def.
v4.5.0: Rename lib\URL->nonRelativeFlag to lib\URL->cannotBeABaseURLFlag
And deprecate the old name lib\URL->nonRelativeFlag. To reflect whatwg/url@2f4161d.
v4.3.0: Change the encoding name from lowercase to mixed upper/lower case
For example: utf-8 → UTF-8, shift_jis → Shift_JIS To reflect whatwg/encoding@18bf4fa and whatwg/url@37f9329. In additional, passing old name to $encodingOverride parameter was deprecated. lib\URL::parseURL(), lib\URL::parseBasicURL(), lib\URLencoding::parseURLencoded(), and lib\URLencoding::serializeURLencoded() have $encodingOverride parameter.