Releases: thephpleague/uri-components
Releases · thephpleague/uri-components
version 7.5.1
Full Changelog:
- FIx composer.json: 7.5.0...7.5.1
version 7.5.0
Added
UrlSearchParams::uniqueKeyCountModifier::getIdnUriStringModifier::hostToIpv6CompressedModifier::hostToIpv6ExpandedScheme::isHttpScheme::isWebsocketScheme::isSslScheme::isSpecial- Using PHP8.4
Deprecatedattribute to signal deprecated public API methods and constants.
Fixed
- Remove Usage of PSR-7
UriInterfaceinUrlSearchParamsclass - Normalizes
fromUrito return the same value for the component if the URI object has the same string representation.
Deprecated
- Usage of PSR-7
UriFactoryInterfaceis deprecated inModifierclass
Removed
- None
version 7.4.1
Added
- None
Fixed
- Fix package to avoid PHP8.4 deprecation warnings
- Bug Fix
removeEmptyPairs#133
Deprecated
- None
Removed
- None
version 7.4.0
Added
Query::fromVariableUrlSearchParams::fromVariable
Fixed
- None
Deprecated
Query::fromParametersuseQuery::fromVariableinsteadUrlSearchParams::fromParametersuseUrlSearchParams::fromVariableinstead
Removed
- None
version 7.3.0
Added
League\Uri\Modifier::removeQueryPairsByKeyLeague\Uri\Modifier::removeQueryPairsByValueLeague\Uri\Modifier::removeQueryPairsByKeyValueLeague\Uri\Components\Query::hasPairLeague\Uri\Components\Query::withoutPairByKeyLeague\Uri\Components\Query::withoutPairByValueLeague\Uri\Components\Query::withoutPairByKeyValueLeague\Uri\Components\Query::fromFormDataLeague\Uri\Components\Query::toFormDataLeague\Uri\Components\URLSearchParams
Fixed
League\Uri\Components\Query::sortto improve WHATWG compliance.League\Uri\QueryString::buildFromPairsshould throwSyntaxErrorinstead ofTypeErrorLeague\Uri\Components\Queryuses internallyLeague\Uri\KeyValuePair\ConverterLeague\Uri\Components\Query::toRFC3986is no longer deprecatedLeague\Uri\Components\Query::jsonSerualizeusestoFormDatainstead oftoRFC1738League\Uri\Components\Queryfix float handling.- Exception message typo fix #121 by GrahamCampbell
Deprecated
League\Uri\Modifier::removeQueryPairsuseLeague\Uri\Modifier::removeQueryPairsByKeyinstead.League\Uri\Components\Query::withoutPairuseLeague\Uri\Components\Query::withoutPairByKeyinstead.
Removed
- None
version 7.2.1
Fix composer.json
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