Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Releases: zfcampus/zf-content-negotiation

zf-content-negotiation 1.4.0

07 May 19:47
Compare
Choose a tag to compare

Added

  • #103 adds support for PHP 7.2.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • #103 removes support for HHVM.

Fixed

  • #101 fixes how ContentNegotiationsOptions handles 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

21 Nov 16:24
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #100 fixes an issue introduced in 1.3.2 whereby the RequestFactory was 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

15 Nov 17:00
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #97 fixes an issue in the ContentTypeListener whereby empty content was leading to an uninitialized string offset notice .

zf-content-negotiation 1.3.1

14 Nov 19:54
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • #86 makes zend-console a suggested dependency.

  • #88 updates how the ContentTypeListener decides how to parse incoming content when no Content-Type header 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 RenameUploadFilterFactory class definition.

zf-content-negotiation 1.3.0

11 Oct 21:41
Compare
Choose a tag to compare

Added

  • #81 adds a new listener, HttpMethodListener. The listener is enabled by toggling the zf-content-negotiation.x_http_method_override_enabled flag, and providing a map of request method/list of override request methods in the zf-content-negotiation.http_override_methods configuration:

    '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

27 Jul 20:16
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #75 updates the JsonModel to test discovered ZF\Hal\Entity instances for a getEntity() method; if found, that method will be used to pull the entity data, but if not, property overloading to its $entity property 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

07 Jul 21:16
Compare
Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Updates the RequestFactory to remove the implements FactoryInterface declaration (as it does not, and this was unable to resolve to a valid interface).

zf-content-negotiation 1.2.0

07 Jul 20:16
Compare
Choose a tag to compare

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 RenameUpload filter and UploadFile validator overrides whereby they triggered cyclic alias detection in zend-servicemanager.

zf-content-negotiation 1.1.2

26 May 22:18
Compare
Choose a tag to compare

Added

  • #50 adds support for parsing application/hal+json bodies; _embedded properties are now merged with the top-level object following parsing.
  • #66 adds suport in the ContentTypeFilterListener to 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 a StreamInterface implementation, which may be cast to a string).

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #68 fixes parsing of urlencoded data within PUT requests.
  • #52 updates the ContentTypeListener to raise an error for non-object/non-array JSON payloads.
  • #58 updates the AcceptFilterListener to validate payloads without an Accept header.
  • #63 fixes the ContentTypeListener behavior when the request body does not contain a MIME boundary; the method now catches the exception and returns a 400 response.