@weierophinney weierophinney released this Dec 11, 2018 · 2 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Dec 11, 2018 · 16 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Jun 5, 2018 · 36 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Apr 4, 2018 · 57 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Mar 28, 2018 · 66 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Mar 15, 2018 · 75 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Mar 12, 2018 · 87 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Feb 27, 2018 · 85 commits to master since this release

Assets 2

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.

@weierophinney weierophinney released this Jan 3, 2018 · 90 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • #27 modifies the XmlRenderer to raise an exception when attempting to render objects that are not serializable to strings.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #27 adds handling for DateTime and string serializable objects to the XmlRenderer, allowing them to be rendered.

@weierophinney weierophinney released this Dec 12, 2017 · 106 commits to master since this release

Assets 2

Added

  • #26 adds support for the zend-expressive-helpers 5.0 series of releases.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.