Skip to content

version 7.7.0

Latest

Choose a tag to compare

@nyamsprod nyamsprod released this 08 Dec 15:28
· 18 commits to master since this release

Added

  • Domain::first returns the first domain label
  • Domain::last returns the last domain label
  • Domain::contains tells wether the label is present in the domain
  • Domain::indexOf returns the index of the first occurrence of the label
  • Domain::lastIndexOf returns the index of the last occurrence of the label
  • Domain::isEmpty tells whether the domain is empty or not (contains at least on label)
  • HierarchicalPath::first returns the first segment
  • HierarchicalPath::last returns the last segment
  • HierarchicalPath::contains tells whether the segment is present in the path
  • HierarchicalPath::indexOf returns the index of the first occurrence of the segment
  • HierarchicalPath::lastIndexOf returns the index of the last occurrence of the segment
  • HierarchicalPath::isEmpty tells whether the path is empty or not (contains at least on segment)
  • Query::first returns the first value for a given query key pair
  • Query::last returns the last value for a given query key pair
  • Query::isEmpty tells whether the query is empty or not
  • URLSearchParams::first returns the first value for a given query key pair
  • URLSearchParams::last returns the last value for a given query key pair
  • URLSearchParams::hasValue an alias of using URLSearchParams::has with 2 parameters
  • URLSearchParams::deleteValue an alias of using URLSearchParams::delete with 2 parameters
  • Modifier::redactUserInfo redacts the user info component if present
  • Modifier::redactPathSegments redacts specific path segments if present
  • Modifier::redactPathNextSegments redacts specific path next segments if present
  • Modifier::redactPathSegmentsByOffset redacts specific path segments by offset if present
  • Modifier::redactQueryPairs redacts specific query pair if present
  • Modifier::prependQuery prepend a query string to the URI query component
  • Modifier::prependPath replace Modifier::prependSegment
  • Modifier::appendPath replace Modifier::appendSegment
  • Modifier::prependSegments
  • Modifier::appendSegments

Fixed

  • Fix deprecation message for Modifier::uri() method 166 by meyerbaptiste
  • Fix missing SensitiveParameter usage on Modifier::withUserInfo method
  • Fix Host resolution using the new HostRecord class
  • Fix Modifier::withPath improve handling of path leading slash presence for PSR-7 implementing classes

Deprecated

  • Modifier::prependSegment use Modifier::prependPath instead
  • Modifier::appendSegment use Modifier::appendPath instead

Removed

  • None