Skip to content

Releases: thephpleague/uri-components

version 7.5.1

08 Dec 08:50
Compare
Choose a tag to compare

Full Changelog:

version 7.5.0

08 Dec 08:33
Compare
Choose a tag to compare

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 in UrlSearchParams 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 in Modifier class

Removed

  • None

version 7.4.1

23 Mar 07:50
Compare
Choose a tag to compare

Added

  • None

Fixed

  • Fix package to avoid PHP8.4 deprecation warnings
  • Bug Fix removeEmptyPairs #133

Deprecated

  • None

Removed

  • None

version 7.4.0

01 Dec 06:30
Compare
Choose a tag to compare

Added

  • Query::fromVariable
  • UrlSearchParams::fromVariable

Fixed

  • None

Deprecated

  • Query::fromParameters use Query::fromVariable instead
  • UrlSearchParams::fromParameters use UrlSearchParams::fromVariable instead

Removed

  • None

version 7.3.0

09 Sep 20:05
Compare
Choose a tag to compare

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 throw SyntaxError instead of TypeError
  • League\Uri\Components\Query uses internally League\Uri\KeyValuePair\Converter
  • League\Uri\Components\Query::toRFC3986 is no longer deprecated
  • League\Uri\Components\Query::jsonSerualize uses toFormData instead of toRFC1738
  • League\Uri\Components\Query fix float handling.
  • Exception message typo fix #121 by GrahamCampbell

Deprecated

  • League\Uri\Modifier::removeQueryPairs use League\Uri\Modifier::removeQueryPairsByKey instead.
  • League\Uri\Components\Query::withoutPair use League\Uri\Components\Query::withoutPairByKey instead.

Removed

  • None

version 7.2.1

30 Aug 22:07
Compare
Choose a tag to compare

Fix composer.json

version 7.2.0

30 Aug 22:07
Compare
Choose a tag to compare

Added

  • Modifier::appendQueryPairs
  • Modifier::mergeQueryPairs
  • Modifier::removeQueryPairs
  • Modifier::removeEmptyQueryPairs
  • Modifier::appendQueryParameters
  • Modifier::mergeQueryParameters
  • Modifier::removeQueryParameters
  • Modifier::removeQueryParametersIndices

Fixed

  • None

Deprecated

  • Modifier::removeParams use Modifier::removeQueryParameters instead
  • Modifier::removePairs use Modifier::removeQueryPairs instead
  • Modifier::removeEmptyPairs use Modifier::removeEmptyQueryPairs instead

Removed

  • None

version 7.1.0

21 Aug 20:37
Compare
Choose a tag to compare

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

13 Aug 19:57
c938372
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.4.1...2.4.2

version 7.0.0

10 Aug 14:44
Compare
Choose a tag to compare

Added

  • value method to replace the removed getContent method.
  • requires League\Uri package.
  • League\Uri\Components\Scheme::new named constructor
  • League\Uri\Components\UserInfo::new named constructor
  • League\Uri\Components\Host::new named constructor
  • League\Uri\Components\Domain::new named constructor
  • League\Uri\Components\Fragment::new named constructor
  • League\Uri\Components\Query::new named constructor
  • League\Uri\Components\Path::new named constructor
  • League\Uri\Components\DataPath::new named constructor
  • League\Uri\Components\UserInfo::withUser modifier method
  • League\Uri\Components\UserInfo::withPass modifier method
  • League\Uri\Components\Port::fromNumber modifier method
  • League\Uri\Components\Query::parameters accessing method
  • League\Uri\Components\Query::parameter accessing method
  • League\Uri\Components\Query::hasParameter accessing method
  • League\Uri\IPv4Calculators\MissingIPv4Calculator exception
  • League\Uri\Components\OffsetOutOfBounds exception added
  • League\Uri\Modifier to replace deprecated League\Uri\Modifier

Fixed

  • converts Value Objects properties to being private readonly where possible.
  • All components class constructors (except for the UserInfo and the Authority 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 between null and the empty string.
  • Query::has accessing method accept a variadic parameters to check multiple keys at the same time.
  • Domain value can be null or a non-empty string previously it would trigger an exception
  • Domain::append and Domain::prepend respects the root status of the instance.

Deprecated

  • All createFromString named constructors are replaced by the new named constructor.
  • All createFromNull named constructors are replaced by the new named constructor.
  • All remaining named constructors which starts with createFrom* replaced by the same method starting with from*. For example Authority::createFromUri is deprecated in favor of Authority::fromUri
  • Query::params is replaced by Query::parameters and Query::parameter
  • HierarchicalPath::segments use HierarchicalPath::getIterator instead
  • Domain::labels use Domain::getIterator instead
  • League\Uri\UriModifier use League\Uri\Modifier
  • League\Uri\IPv4Normalizer use League\Uri\Modifier instead

Removed

  • PHP7 and PHP8.0 support
  • withContent and getContent 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 use UserInfo::withUser and/or UserInfo::withPass instead
  • Remove the Exceptions namespace
  • League\Uri\Exceptions\IPv4CalculatorMissing use League\Uri\IPv4Calculators\MissingIPv4Calculator instead
  • League\Uri\Exceptions\OffsetOutOfBounds use League\Uri\Components\OffsetOutOfBounds instead
  • League\Uri\QueryString class. Class moved to the uri-interfaces package.

Full Changelog: 7.0.0-beta.2...7.0.0