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

Releases: zendframework/zend-expressive-hal

zend-expressive-hal 1.3.1

11 Feb 21:11
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #56 fixes an issue calculating the offset when generating a paginated Doctrine collection.

zend-expressive-hal 1.3.0

06 Feb 15:16
Compare
Choose a tag to compare

Added

  • #55 adds the ability to generate paginated HAL collections from
    Doctrine\ORM\Tools\Pagination\Paginator instances.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-hal 1.2.0

11 Dec 17:33
Compare
Choose a tag to compare

Added

  • #51 adds support for zend-hydrator version 3 releases. You may continue to use
    version 2 releases as well.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-hal 1.1.1

11 Dec 17:28
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #50 fixes the Halresource constructor documentation of the $embedded
    argument to correctly be an array of HalResource arrays (and not just an
    array of HalResource instances).

  • #41 fixes how null values in resources are handled when rendering as XML.
    Previously, these would lead to an InvalidResourceValueException; now they
    are rendered as content-less tags.

zend-expressive-hal 1.1.0

05 Jun 19:08
Compare
Choose a tag to compare

Added

  • #39 adds a cookbook recipe detailing how to create a fully contained, path-segregated
    module, complete with its own router, capable of generating HAL resources.

Changed

  • #39 updates LinkGeneratorFactory to allow passing an alternate service name to use when
    retrieving the LinkGenerator\UriGeneratorInterface dependency.

  • #39 updates ResourceGeneratorFactory to allow passing an alternate service name to use when
    retrieving the LinkGenerator dependency.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-hal 1.0.2

04 Apr 18:04
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #37 modifies
    HalResource to no longer treat empty arrays as embedded collections when
    passed via the constructor or withElement(). If an empty embedded collection
    is required, use embed() with a boolean third argument to force
    representation as an array of resources.

zend-expressive-hal 1.0.1

28 Mar 19:57
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #36
    fixes an issue whereby query string arguments were not being added to
    links generated for a resource. It now correctly merges those specified in
    metadata with those from the request when generating links.

zend-expressive-hal 1.0.0

15 Mar 15:20
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • #31 changes the constructor signature of Zend\Expressive\Hal\HalResponseFactory to read:

    public function __construct(
        callable $responseFactory,
        Renderer\JsonRenderer $jsonRenderer = null,
        Renderer\XmlRenderer $xmlRenderer = null
    )

    Previously, the $responseFactory argument was a Psr\Http\Message\ResponseInterface $responsePrototype; it is now a PHP callable capable of producing a new, empty instance of that type.

    Additionally, the signature previously included a callable $streamFactory; this has been removed.

  • #31 updates the HalResponseFactoryFactory to follow the changes made to the HalResponseFactory constructor. It now requires that a Psr\Http\Message\ResponseInterface service be registered, and that the service resolve to a callable capable of producing a ResponseInterface instance.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-hal 0.6.3

12 Mar 22:20
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • #32 modifies HalResponseFactoryFactory to test if a ResponseInterface service instance is callable before returning it; if it is, it calls it first. This allows the ResponseInterface service to return a response factory instead of an instance.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-hal 1.0.0alpha1

27 Feb 14:37
Compare
Choose a tag to compare

Added

  • Nothing.

Changed

  • #31 changes the constructor signature of Zend\Expressive\Hal\HalResponseFactory to read:

    public function __construct(
        callable $responseFactory,
        Renderer\JsonRenderer $jsonRenderer = null,
        Renderer\XmlRenderer $xmlRenderer = null
    )

    Previously, the $responseFactory argument was a Psr\Http\Message\ResponseInterface $responsePrototype; it is now a PHP callable capable of producing a new, empty instance of that type.

    Additionally, the signature previously included a callable $streamFactory; this has been removed.

  • #31 updates the HalResponseFactoryFactory to follow the changes made to the HalResponseFactory constructor. It now requires that a Psr\Http\Message\ResponseInterface service be registered, and that the service resolve to a callable capable of producing a ResponseInterface instance.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.