This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Releases: zfcampus/zf-content-negotiation
Releases · zfcampus/zf-content-negotiation
Release list
zf-content-negotiation 1.4.0
Added
- #103 adds support for PHP 7.2.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- #103 removes support for HHVM.
Fixed
- #101 fixes how
ContentNegotiationsOptionshandles dash-separated keys,
ensuring they are always translated to underscore_separated; this fixes issues whereby such
keys were ignored during execution.
zf-content-negotiation 1.3.3
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #100 fixes an issue introduced in 1.3.2 whereby the
RequestFactorywas updated to no longer depend on zend-console. Unfortunately, many testing strategies relied on zend-console's ability to override the SAPI detection in order to test HTTP request lifecycles. This release now does detection for the presence of the zend-console library, and, if present, uses that for determining whether or not the request is console-based.
zf-content-negotiation 1.3.2
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #97 fixes an issue in the
ContentTypeListenerwhereby empty content was leading to an uninitialized string offset notice .
zf-content-negotiation 1.3.1
Added
- Nothing.
Changed
-
#86 makes zend-console a suggested dependency.
-
#88 updates how the
ContentTypeListenerdecides how to parse incoming content when noContent-Typeheader is present. If the content begins with a{or[character, it will now parse it as JSON instead of as form data.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #88 adds a missing import statement to the
RenameUploadFilterFactoryclass definition.
zf-content-negotiation 1.3.0
Added
-
#81 adds a new listener,
HttpMethodListener. The listener is enabled by toggling thezf-content-negotiation.x_http_method_override_enabledflag, and providing a map of request method/list of override request methods in thezf-content-negotiation.http_override_methodsconfiguration:'zf-content-negotiation' => [ 'x_http_method_override_enabled' => true, 'http_override_methods' => [ 'GET' => [ 'HEAD', 'PATCH', 'POST', 'PUT', 'DELETE', ], ], ],
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zf-content-negotiation 1.2.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #75 updates the
JsonModelto test discoveredZF\Hal\Entityinstances for agetEntity()method; if found, that method will be used to pull the entity data, but if not, property overloading to its$entityproperty will be used instead. This change ensures the component works with versions of zf-hal prior to 1.4.
zf-content-negotiation 1.2.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Updates the
RequestFactoryto remove theimplements FactoryInterfacedeclaration (as it does not, and this was unable to resolve to a valid interface).
zf-content-negotiation 1.2.0
Added
- #71 and #73 provide support for v3 releases of the various Zend Framework components on which it depends, including zend-eventmanager, zend-json, zend-mvc, zend-servicemanager, and zend-stdlib; all code continues to work with v2 releases as well.
- #70 adds support for PHP 7.
Deprecated
- Nothing.
Removed
- #70 removes support for PHP 5.5.
Fixed
- #72 fixes a situation with the
RenameUploadfilter andUploadFilevalidator overrides whereby they triggered cyclic alias detection in zend-servicemanager.
zf-content-negotiation 1.1.2
Added
- #50 adds support for parsing
application/hal+jsonbodies;_embeddedproperties are now merged with the top-level object following parsing. - #66 adds suport in the
ContentTypeFilterListenerto allow for request bodies to be objects that are castable to strings, such as occurs when using zend-psr7bridge to convert from PSR-7 to zend-http request instances (the message body is then aStreamInterfaceimplementation, which may be cast to a string).
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #68 fixes parsing of urlencoded data within PUT requests.
- #52 updates the
ContentTypeListenerto raise an error for non-object/non-array JSON payloads. - #58 updates the
AcceptFilterListenerto validate payloads without anAcceptheader. - #63 fixes the
ContentTypeListenerbehavior when the request body does not contain a MIME boundary; the method now catches the exception and returns a 400 response.