Releases: webignition/url
Implement UriInterface, Re-Implement Normalizer
Overview
The 3.0 releases introduce significant changes and is in no way backwards-compatible
with 2.x:
- PHP 7.2+ only
- Url implements
UriInterface - Remove
NormalisedUrl, replace withNormalizer - Remove
Querymodel
Upgrading from 2.x to 3.0
3.0 is by no means backwards-compatible with 2.x. Read the upgrade notes.
Percent-encode unreserved characters in URL path
2.2 Percent-encode unreserved characters in URL path (#29)
Add Url::isPubliclyRoutable()
2.1 Add Url::isPubliclyRoutable() (#27)
Fix parsing of scheme-only urls
2.0.1 Fix parsing of scheme-only urls (#24)
Fix parsing of scheme-only urls (1.9)
1.9.20 Fix parsing of scheme-only urls (#25)
Remove functionality deprecated in the 1.9.x line
Remove Ur\/Query\Query::hasConfiguration()
Not needed
Remove Url\Query\Query::getParser()
Not needed
Remove Url\Query::add(), ::remove()
- use
Url\Query\Query::set($encodedKey, $encodedValue)instead - use
Url\Query\Query::set($encodedKey, null)instead
Remove Url\Url::addFragment(), ::addPath(), ::addPort()
- use
setFragment(),setPath()andsetPort()instead.
Deprecate Url/Query/Query::hasConfiguration()
Deprecate Url/Query/Query::hasConfiguration(). Will be removed in 2.0.
Deprecate Url/Query::add(), ::remove()
Deprecate Url/Query::add(), ::remove(). Will be removed in 2.0.
These methods don't make sense given that Url/Query::set() can perform the same function.
For Url/Query::add($encodedKey, $encodedValue), use Url/Query::set($encodedKey, $encodedValue) instead.
For Url/Query::remove($encodedKey), use Url/Query::set($encodedKey, null) instead.
Deprecate Url/Query::getParser()
Deprecate Url/Query::getParser().
There is no need to get the query parser, deprecated in this release, will be removed in 2.0.
Deprecate Url::addFragment(), Url::addPath() and Url::addPort()
Deprecate Url::addFragment(), Url::addPath() and Url::addPort(). Will be removed in 2.0.
These three methods don't make sense given that Url::setFragment(), Url::setPath() and Url::setPort() exist.
Use Url::setFragment(), Url::setPath() and Url::setPort() instead.