Skip to content

version 7.6.0

Latest

Choose a tag to compare

@nyamsprod nyamsprod released this 18 Nov 12:27
· 14 commits to master since this release

Added

  • UriComponentInterface::equals method
  • FragmentDirectives support
  • Component::when conditional method to ease component building logic.
  • URLSearchParams::when conditional method to ease component building logic.
  • Modifier::prependQueryParameters returns a modifier with prepended query parameters
  • Modifier::replaceQueryParameter returns a modifier with part of its query string replaced
  • Modifier::replaceQueryPair returns a modifier with part of its query string replaced
  • Modifier::when conditional method to ease component building logic.
  • Modifier::normalizeIp returns the host normalized for IPv6 and IPv4 addresses
  • Modifier::normalizeHost returns the host as normalized by the WHATWG algorithm
  • Modifier::with* method from the underlying Uri object are proxy to improve DX.
  • Modifier::wrap static method which wraps the underlying URI object used by the Modifier class.
  • Modifier::unwrap method which returns the underlying URI object used by the Modifier class.
  • Modifier::prefixQueryPairs and Modifier::prefixQueryParameters to prefix Query using the pair key or the parameter names
  • Modifier::toMarkdownAnchor returns the Markdown string representation of the anchor tag with the current instance as its href attribute.
  • Modifier::toHtmlAnchor returns the HTML string representation of the anchor tag with the current instance as its href attribute.
  • tryNew named constructor added to all classes to return a new instance on success or null on failure.
  • Query::decoded the string representation of the component decoded.
  • Query::normalized
  • Query::fromPairs and Query::fromVariable takes a optional $prefix parameter to update the query pair keys or parameter names
  • Query::indexOf and Query::replace
  • Query::mergeParameters
  • Query::replaceParameter
  • Query::replacePair
  • Query::prepend
  • URLSearchParams::decoded the string representation of the component decoded.
  • Path::nornalized
  • Fragment::normalized
  • HierarchicalPath::normalized
  • Datapath::normalized
  • Support for Uri\Rfc3986\Uri
  • Support for Uri\WhatWg\Url
  • Port::defaultSchemes
  • Port::defaultScheme
  • Scheme::isWhatWgSpecial
  • Scheme::defaultPort
  • Scheme::hasDefaultPort

Fixed

  • Modifier host related method return host in IDN form or ASCII form depending on the URI input format
  • UserInfo now can be constructed and mutated even when the user component is not present. It was throwing an exception before.

Deprecated

  • Modifier::getIdnUriString use Modifier::toDisplayString instead
  • Modifier::getUriString use Modifier::toString instead
  • Modifier::getUri use Modifier::uri instead
  • Modifier::from use Modifier::wrap instead

Removed

  • None