Releases: stubbles/stubbles-peer
Releases · stubbles/stubbles-peer
11.0.0 - Ocean's
10.0.1 - Be true to yourself
- fixed return type hint of
stubbles\peer\http\HttpUri::withPath()
10.0.0 - Eight and two is ten, isn't it?
BC breaks
- raised minimum required PHP version to 8.2
stubbles\peer\http\HttpUri::exists()now accepts strings or instances ofstubbles\peer\http\HttpUrionly, previously it accepted all types and returned false for non-URIs.- removed
stubbles\peer\ParsedUri::hasPath(), deprecated since 8.0.0
9.0.2 - Oh so weird
- fixed type error in
stubbles\peer\QueryStringwith weird query strings
9.0.1 - Types on the line
- minor fixes through improved type hinting and type checks
9.0.0 - Ever more strict
BC breaks
- raised minimum required PHP version to 7.3
stubbles\peer\IpAddress::isValid(),stubbles\peer\IpAddress::isValidV4()andstubbles\peer\IpAddress::isValidV6()now always expect a string to test- removed
stubbles\peer\http\AcceptHeader::getSharedAcceptables(), deprecated since 8.0.0
Other changes
- fixed various possible bugs due to incorrect type usage
8.1.0 - Strict influence
- added optional parameter
$checkWithto influence which function is used for dns checks:stubbles\peer\Uri::hasDnsRecord()stubbles\peer\http\HttpUri::exists()stubbles\peer\http\HttpUri::hasDnsRecord()
- added optional parameter
$openWithto influence which function is used to open sockets:stubbles\peer\IpAddress::openSocket()stubbles\peer\IpAddress::openSecureSocket()stubbles\peer\http\HttpUri::openSocket()
- added
stubbles\peer\Socket::openWith()to change which function is used to open sockets
8.0.0 - Becoming more strict
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- calling
stubbles\peer\http\HttpUri::fromString()orstubbles\peer\Uri::fromString()with an empty string now throwsstubbles\peer\MalformedUriinstead of returningnull - creating a URI or HTTP Uri with empty scheme will now throw
stubbles\peer\MalformedUri - deprecated support for password in URIs, passing a password via URI is inherintly insecure, will be removed with 9.0.0
- all
stubbles\peer\http\HttpResonsemethods now throw astubbles\peer\ProtocolViolationwhen the response can not be read properly stubbles\peer\Timeoutnow extendsstubbles\peer\ConnectionFailurestubbles\peer\Uri::hasDefaultPort()will now returntrueinstead offalsewhen the string it was constructed from doesn't contain a port- deprecated
stubbles\peer\http\AcceptHeader::getSharedAcceptables(), usestubbles\peer\http\AcceptHeader::sharedAcceptables()instead, will be removed with 9.0.0
Other changes
- fixed bug in
stubbles\peer\http\HttpUri::toHttp()andstubbles\peer\http\HttpUri::toHttps()not changing the port when the only the port must be changed
7.1.0 - The value of integration
- added
stubbles\peer\isMailAddress() - added
stubbles\peer\IpAddress::isValid() - added
stubbles\peer\http\HttpUri::isValid() - added
stubbles\peer\http\HttpUri::exists() - added integration with
stubbles\values\Valuewhen present
7.0.0 - Core peer group
- split off from stubbles/core
BC breaks
- removed
stubbles\peer\HeaderList::size(), usestubbles\peer\HeaderList::count()orcount($headerlist)instead - removed classes and methods that relied on other classes in stubbles/core
stubbles\peer\SocketInputStreamstubbles\peer\SocketOutputStreamstubbles\peer\Stream::in()stubbles\peer\Stream::out()
- removed
stubbles\peer\SocketDomainwhich was used bystubbles\peer\BsdSocketwhich was already removed in 6.0.0 - renamed
stubbles\peer\ConnectionExceptiontostubbles\peer\ConnectionFailure - renamed
stubbles\peer\MalformedUriExceptiontostubbles\peer\MalformedUri stubbles\peer\http\Http::lines()no longer accepts an array, but an arbitrary amount of strings instead