Uri v4.2.0 Release Notes
Release Date: 2016-09-30 // over 7 years ago-
➕ Added
Component::getContent
returns the raw encoded representation of a componentComponent::withContent
to create a new instance from a given raw encoded contentgetDecoded
method to access the decoded content for the following classes:User
Pass
Fragment
- Support for PHP's magic methods
__debugInfo
and__ set_state
to improve debugging Modifiers\Relativize
Modifiers\DecodeUnreservedCharacters
Path::createFromSegments
Path::getSegments
Host::createFromLabels
Host::getLabels
Query::createFromPairs
Query::getPairs
Modifiers\uri_reference
function to return URI reference state.
🛠 Fixed
- Components encoding/decoding to be more RFC3986 compliant
Host::getRegisterableDomain
must always return a string as per the host interface expected return typeHost::getSubdomain
must always return a string as per the host interface expected return typeHost::isPublicSuffixValid
when nopublicSuffix
information is foundHost::isPublicSuffixValid
must always return a string as per the host interface expected return type- On instantiation, query and fragment delimiter are preserved
- 📜
createFromComponents
failing withparse_url
result when no path is defined - 👻 On URI transformation
InvalidArgumentException
exceptions are emitted instead ofRuntimeException
ones to normalize exception to PSR-7 - 🚚
Modifiers\Normalize
class removes dot segments only on URI with absolute path. Modifiers\Normalize
class decode all unreserved characters.Ftp
andWs
objects now accept relative reference URI without the scheme.
🗄 Deprecated
Component::modify
useComponent::withContent
insteadHost::getLiteral
Port::toInt
usePort::getContent
insteadHierarchicalPath::createFromArray
useHierarchicalPath::createFromSegments
insteadHierarchicalPath::toArray
useHierarchicalPath::getSegments
insteadHost::createFromArray
useHierarchicalPath::createFromLabels
insteadHost::toArray
useHost::getLabels
insteadQuery::createFromArray
useQuery::createFromPairs
insteadQuery::toArray
useQuery::getPairs
insteadUriPart::sameValueAs
✂ Remove
- Nothing