Repository navigation
Releases: thephpleague/uri-components
Releases · thephpleague/uri-components
Release list
version 7.2.0
Added
Modifier::appendQueryPairsModifier::mergeQueryPairsModifier::removeQueryPairsModifier::removeEmptyQueryPairsModifier::appendQueryParametersModifier::mergeQueryParametersModifier::removeQueryParametersModifier::removeQueryParametersIndices
Fixed
- None
Deprecated
Modifier::removeParamsuseModifier::removeQueryParametersinsteadModifier::removePairsuseModifier::removeQueryPairsinsteadModifier::removeEmptyPairsuseModifier::removeEmptyQueryPairsinstead
Removed
- None
version 7.1.0
Added
Modifier::encodeQuery
Fixed
- Using the
Encoderclass to normalize encoding and decoding in all packages
Deprecated
- None
Removed
- None
Full Changelog: 7.0.0...7.1.0
version 2.4.2
version 7.0.0
Added
valuemethod to replace the removedgetContentmethod.- requires
League\Uripackage. League\Uri\Components\Scheme::newnamed constructorLeague\Uri\Components\UserInfo::newnamed constructorLeague\Uri\Components\Host::newnamed constructorLeague\Uri\Components\Domain::newnamed constructorLeague\Uri\Components\Fragment::newnamed constructorLeague\Uri\Components\Query::newnamed constructorLeague\Uri\Components\Path::newnamed constructorLeague\Uri\Components\DataPath::newnamed constructorLeague\Uri\Components\UserInfo::withUsermodifier methodLeague\Uri\Components\UserInfo::withPassmodifier methodLeague\Uri\Components\Port::fromNumbermodifier methodLeague\Uri\Components\Query::parametersaccessing methodLeague\Uri\Components\Query::parameteraccessing methodLeague\Uri\Components\Query::hasParameteraccessing methodLeague\Uri\IPv4Calculators\MissingIPv4CalculatorexceptionLeague\Uri\Components\OffsetOutOfBoundsexception addedLeague\Uri\Modifierto replace deprecatedLeague\Uri\Modifier
Fixed
- converts Value Objects properties to being
private readonlywhere possible. - All components class constructors (except for the
UserInfoand theAuthorityclasses) are made private use the available named constructors instead - Named constructors default value are removed, you need to explicitly add an argument value or use the
::new()named constructor instead. UserInfoclass makes a distinction betweennulland the empty string.Query::hasaccessing method accept a variadic parameters to check multiple keys at the same time.Domainvalue can benullor a non-empty string previously it would trigger an exceptionDomain::appendandDomain::prependrespects the root status of the instance.
Deprecated
- All
createFromStringnamed constructors are replaced by thenewnamed constructor. - All
createFromNullnamed constructors are replaced by thenewnamed constructor. - All remaining named constructors which starts with
createFrom*replaced by the same method starting withfrom*. For exampleAuthority::createFromUriis deprecated in favor ofAuthority::fromUri Query::paramsis replaced byQuery::parametersandQuery::parameterHierarchicalPath::segmentsuseHierarchicalPath::getIteratorinsteadDomain::labelsuseDomain::getIteratorinsteadLeague\Uri\UriModifieruseLeague\Uri\ModifierLeague\Uri\IPv4NormalizeruseLeague\Uri\Modifierinstead
Removed
- PHP7 and PHP8.0 support
withContentandgetContentmethods- Support for
__set_state - Support for
floattype as possible argument for components - Support for
inttype as possible argument for components UserInfo::withUserInfomodifier method useUserInfo::withUserand/orUserInfo::withPassinstead- Remove the
Exceptionsnamespace League\Uri\Exceptions\IPv4CalculatorMissinguseLeague\Uri\IPv4Calculators\MissingIPv4CalculatorinsteadLeague\Uri\Exceptions\OffsetOutOfBoundsuseLeague\Uri\Components\OffsetOutOfBoundsinsteadLeague\Uri\QueryStringclass. Class moved to theuri-interfacespackage.
Full Changelog: 7.0.0-beta.2...7.0.0
version 7.0.0-beta.2
"Tag: 7.0.0-beta.2"
version 7.0.0-beta.1
Pre-release
version 2.4.1
Added
- None
Fixed
- conversion query component for non ASCII characters see #202
Deprecated
- None
Remove
- None
version 2.4.0
Added
Component::toStringIDNAconversion in now normalize using theUri-Interfacepackage classes
Fixed
- conversion host component from ASCII to unicode no longer throw
Deprecated
- None
Remove
- None
version 2.3.0
Added
Authority::createFromNullAuthority::createFromStringAuthority::createFromComponentsDataPath::createFromFilePathDataPath::createFromStringDomain::createFromStringDomain::createFromHostHierarchicalPath::createFromPathHierarchicalPath::createFromStringPath::createFromString- Support for
PHP8.0
Fixed
- Fix RFC1738 encoding in
QueryString::build - Improve
UriModifierusing the newly added named constructors.
Deprecated
Authority::__constructreplaced byAuthoritynamed constructorsDataPath::createFromPathreplaced byDataPath::createFromFilePathDomain::__constructreplaced byDomainnamed constructorsHierarchicalPath::__constructreplaced byHierarchicalPathnamed constructors
Remove
- Support for
PHP7.2
version 2.2.1
Added
- None
Fixed
- back port improvement made to
DataUriby #154 thanks to Nicolas Grekas
Deprecated
- None
Remove
- None