Skip to content

v0.21.8

Choose a tag to compare

@lkrms lkrms released this 29 Nov 03:10
· 1336 commits to main since this release
v0.21.8
c61f3ce

Added

  • Add HttpHeaders and IHttpHeaders
  • Add IAccessToken and implement its methods in AccessToken
  • Add Jsonable
  • Add Arr::lower(), Arr::upper(), Arr::toIndex()
  • Add File::write(), File::seek(), File::tell()
  • Add Pcre::grep()

Changed

  • ICollection:

    • Allow callbacks to receive item keys, values or both
    • Limit TKey to array-key, removing hypothetical support for arbitrary key types but allowing implementation of Arrayable etc.
    • Implement Arrayable, Jsonable, JsonSerializable
    • In ICollection::merge(), accept Arrayable|iterable instead of static|iterable
  • Move parts of TCollection to a separate TReadableCollection trait

  • Move Lkrms\Support\Http -> Lkrms\Http

  • Move Lkrms\Support\Catalog\Http* -> Lkrms\Http\Catalog

  • Move Lkrms\Auth -> Lkrms\Http\Auth

  • Add HttpHeaderGroup and clean up existing Http enumerations

  • Rename HttpRequestMethods -> HttpRequestMethodGroup

  • Rename Curler::addPrivateHeaderName() -> addSensitiveHeaderName()

  • Replace CurlerHeaders and friends with HttpHeaders and friends

  • Replace ICurlerHeaders calls with IHttpHeaders equivalents:

    • getHeaders() -> getLines()
    • getHeaderValue() -> getHeaderLine()
    • getHeaderValues() -> getHeaderLines()
  • In File::close(), make $filename optional and rename it to $uri

  • In File::writeCsv(), use php://temp instead of php://memory for temporary output

  • Rename Regex::NOT_ESCAPED -> Regex::BEFORE_UNESCAPED

  • Make FilesystemErrorException (and most other exceptions) extend RuntimeException instead of Exception

Removed

  • Remove superseded ICurlerHeaders, CurlerHeaders, CurlerHeadersFlag, CurlerHeader
  • Remove unused FluentArray class
  • Remove $private arguments from Curler::addHeader() and Curler::setHeader()
  • Remove support for filtering headers by pattern in Curler::unsetHeader()
  • Remove $value parameter from ICollection::unset()

Fixed

  • Fix issue where File::getStreamUri() fails for streams with no URI