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::uniqueKeyCount
Modifier::getIdnUriString
Modifier::hostToIpv6Compressed
Modifier::hostToIpv6Expanded
Scheme::isHttp
Scheme::isWebsocket
Scheme::isSsl
Scheme::isSpecial
- Using PHP8.4
Deprecated
attribute to signal deprecated public API methods and constants.
Fixed
- Remove Usage of PSR-7
UriInterface
inUrlSearchParams
class - Normalizes
fromUri
to return the same value for the component if the URI object has the same string representation.
Deprecated
- Usage of PSR-7
UriFactoryInterface
is deprecated inModifier
class
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::fromVariable
UrlSearchParams::fromVariable
Fixed
- None
Deprecated
Query::fromParameters
useQuery::fromVariable
insteadUrlSearchParams::fromParameters
useUrlSearchParams::fromVariable
instead
Removed
- None
version 7.3.0
Added
League\Uri\Modifier::removeQueryPairsByKey
League\Uri\Modifier::removeQueryPairsByValue
League\Uri\Modifier::removeQueryPairsByKeyValue
League\Uri\Components\Query::hasPair
League\Uri\Components\Query::withoutPairByKey
League\Uri\Components\Query::withoutPairByValue
League\Uri\Components\Query::withoutPairByKeyValue
League\Uri\Components\Query::fromFormData
League\Uri\Components\Query::toFormData
League\Uri\Components\URLSearchParams
Fixed
League\Uri\Components\Query::sort
to improve WHATWG compliance.League\Uri\QueryString::buildFromPairs
should throwSyntaxError
instead ofTypeError
League\Uri\Components\Query
uses internallyLeague\Uri\KeyValuePair\Converter
League\Uri\Components\Query::toRFC3986
is no longer deprecatedLeague\Uri\Components\Query::jsonSerualize
usestoFormData
instead oftoRFC1738
League\Uri\Components\Query
fix float handling.- Exception message typo fix #121 by GrahamCampbell
Deprecated
League\Uri\Modifier::removeQueryPairs
useLeague\Uri\Modifier::removeQueryPairsByKey
instead.League\Uri\Components\Query::withoutPair
useLeague\Uri\Components\Query::withoutPairByKey
instead.
Removed
- None
version 7.2.1
Fix composer.json
version 7.2.0
Added
Modifier::appendQueryPairs
Modifier::mergeQueryPairs
Modifier::removeQueryPairs
Modifier::removeEmptyQueryPairs
Modifier::appendQueryParameters
Modifier::mergeQueryParameters
Modifier::removeQueryParameters
Modifier::removeQueryParametersIndices
Fixed
- None
Deprecated
Modifier::removeParams
useModifier::removeQueryParameters
insteadModifier::removePairs
useModifier::removeQueryPairs
insteadModifier::removeEmptyPairs
useModifier::removeEmptyQueryPairs
instead
Removed
- None
version 7.1.0
Added
Modifier::encodeQuery
Fixed
- Using the
Encoder
class 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
value
method to replace the removedgetContent
method.- requires
League\Uri
package. League\Uri\Components\Scheme::new
named constructorLeague\Uri\Components\UserInfo::new
named constructorLeague\Uri\Components\Host::new
named constructorLeague\Uri\Components\Domain::new
named constructorLeague\Uri\Components\Fragment::new
named constructorLeague\Uri\Components\Query::new
named constructorLeague\Uri\Components\Path::new
named constructorLeague\Uri\Components\DataPath::new
named constructorLeague\Uri\Components\UserInfo::withUser
modifier methodLeague\Uri\Components\UserInfo::withPass
modifier methodLeague\Uri\Components\Port::fromNumber
modifier methodLeague\Uri\Components\Query::parameters
accessing methodLeague\Uri\Components\Query::parameter
accessing methodLeague\Uri\Components\Query::hasParameter
accessing methodLeague\Uri\IPv4Calculators\MissingIPv4Calculator
exceptionLeague\Uri\Components\OffsetOutOfBounds
exception addedLeague\Uri\Modifier
to replace deprecatedLeague\Uri\Modifier
Fixed
- converts Value Objects properties to being
private readonly
where possible. - All components class constructors (except for the
UserInfo
and theAuthority
classes) 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. UserInfo
class makes a distinction betweennull
and the empty string.Query::has
accessing method accept a variadic parameters to check multiple keys at the same time.Domain
value can benull
or a non-empty string previously it would trigger an exceptionDomain::append
andDomain::prepend
respects the root status of the instance.
Deprecated
- All
createFromString
named constructors are replaced by thenew
named constructor. - All
createFromNull
named constructors are replaced by thenew
named constructor. - All remaining named constructors which starts with
createFrom*
replaced by the same method starting withfrom*
. For exampleAuthority::createFromUri
is deprecated in favor ofAuthority::fromUri
Query::params
is replaced byQuery::parameters
andQuery::parameter
HierarchicalPath::segments
useHierarchicalPath::getIterator
insteadDomain::labels
useDomain::getIterator
insteadLeague\Uri\UriModifier
useLeague\Uri\Modifier
League\Uri\IPv4Normalizer
useLeague\Uri\Modifier
instead
Removed
- PHP7 and PHP8.0 support
withContent
andgetContent
methods- Support for
__set_state
- Support for
float
type as possible argument for components - Support for
int
type as possible argument for components UserInfo::withUserInfo
modifier method useUserInfo::withUser
and/orUserInfo::withPass
instead- Remove the
Exceptions
namespace League\Uri\Exceptions\IPv4CalculatorMissing
useLeague\Uri\IPv4Calculators\MissingIPv4Calculator
insteadLeague\Uri\Exceptions\OffsetOutOfBounds
useLeague\Uri\Components\OffsetOutOfBounds
insteadLeague\Uri\QueryString
class. Class moved to theuri-interfaces
package.
Full Changelog: 7.0.0-beta.2...7.0.0