This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Releases: zendframework/zend-diactoros
Releases · zendframework/zend-diactoros
zend-diactoros 1.3.9
zend-diactoros 1.3.8
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #222 fixes the
SapiStreamEmitter
's handling of theContent-Range
header to properly only emit a range of bytes if the header value is in the formbytes {first-last}/length
. This allows using other range units, such asitems
, without incorrectly emitting truncated content.
zend-diactoros 1.3.7
Added
- #208 adds several missing response codes to
Zend\Diactoros\Response
, including:- 226 ('IM used')
- 308 ('Permanent Redirect')
- 444 ('Connection Closed Without Response')
- 499 ('Client Closed Request')
- 510 ('Not Extended')
- 599 ('Network Connect Timeout Error')
- #211 adds support for UTF-8 characters in query strings handled by
Zend\Diactoros\Uri
.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-diactoros 1.3.6
Added
- #170 prepared documentation for publication at https://zendframework.github.io/zend-diactoros/
- #165 adds support for Apache
REDIRECT_HTTP_*
header detection in theServerRequestFactory
. - #166 adds support for UTF-8 characters in URI paths.
- #204 adds testing against PHP 7.1 release-candidate builds.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #186 fixes a typo in a variable name within the
SapiStreamEmitter
. - #200 updates the
SapiStreamEmitter
to implement a check forisSeekable()
prior to attempts to rewind; this allows it to work with non-seekable streams such as theCallbackStream
. - #169 ensures that response serialization always provides a
\r\n\r\n
sequence following the headers, even when no message body is present, to ensure it conforms with RFC 7230. - #175 updates the
Request
class to set theHost
header from the URI host if no header is already present. (Ensures conformity with PSR-7 specification.) - #197 updates the
Uri
class to ensure that string serialization does not include a colon after the host name if no port is present in the instance.
Diactoros 1.3.5
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #160 fixes HTTP protocol detection in the
ServerRequestFactory
to work correctly with HTTP/2.
Diactoros 1.3.4
Added
- #119 adds the 451 (Unavailable for Legal Reasons) status code to the
Response
class.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #117 provides validation of the HTTP protocol version.
- #127 now properly removes attributes with
null
values when callingwithoutAttribute()
. - #132 updates the
ServerRequestFactory
to marshal the request path fragment, if present. - #142 updates the exceptions thrown by
HeaderSecurity
to include the header name and/or value. - #148 fixes several stream operations to ensure they raise exceptions when the internal pointer is at an invalid position.
- #151 ensures URI fragments are properly encoded.
Diactoros 1.3.3
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #135 fixes the behavior of
ServerRequestFactory::marshalHeaders()
to no longer omitCookie
headers from the aggregated headers. While the values are parsed and injected into the cookie params, it's useful to have access to the raw headers as well.
Diactoros 1.3.2
Added
-
#124 adds four more optional arguments to the
ServerRequest
constructor:array $cookies
array $queryParams
null|array|object $parsedBody
string $protocolVersion
ServerRequestFactory
was updated to pass values for each of these parameters when creating an instance, instead of using the relatedwith*()
methods on an instance.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #122 updates the
ServerRequestFactory
to retrieve the HTTP protocol version and inject it in the generatedServerRequest
, which previously was not performed.
Diactoros 1.3.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #113 fixes an issue in the response serializer, ensuring that the status code in the deserialized response is an integer.
- #115 fixes an issue in the various text-basd response types (
TextResponse
,HtmlResponse
, andJsonResponse
); due to the fact that the constructor was not rewinding the message body stream,getContents()
was thus returningnull
, as the pointer was at the end of the stream. The constructor now rewinds the stream after populating it in the constructor.
Diactoros 1.3.0
Added
- #110 adds
Zend\Diactoros\Response\SapiEmitterTrait
, which provides the following private method definitions:injectContentLength()
emitStatusLine()
emitHeaders()
flush()
filterHeader()
TheSapiEmitter
implementation has been updated to remove those methods and instead compose the trait.
- #111 adds a new emitter implementation,
SapiStreamEmitter
; this emitter type will loop through the stream instead of emitting it in one go, and supports content ranges.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.