Skip to content

1.5.0

@weierophinney weierophinney tagged this 03 May 19:16
Based on https://github.com/zfcampus/zf-hal/releases/tag/1.5.0 (commit d09c013d511bb62a99bfd716669111087f007c90 in this repo)

Added
-----

- [zfcampus/zf-hal#158](https://github.com/zfcampus/zf-hal/pull/158) adds support for PHP 7.1 and 7.2.

- [zfcampus/zf-hal#167](https://github.com/zfcampus/zf-hal/pull/167) adds a new event, `fromLink.pre`, triggered from the `Laminas\ApiTools\Hal\Plugin\Hal::fromLink` method.
  This event can be used in conjunction with `Laminas\ApiTools\Rest\RestController::create()` to manipulate the generated
  link for purpose of modifying it for the `Link` HTTP response header.

Changed
-------

- [zfcampus/zf-hal#163](https://github.com/zfcampus/zf-hal/pull/163) updates `Laminas\ApiTools\Hal\Link\Link` to implement the PSR-13 `LinkInterface`, and modifies
  some internals to make use of its idempotency.

- [zfcampus/zf-hal#165](https://github.com/zfcampus/zf-hal/pull/165) modifies the `JsonSerializableEntity` to implement the native PHP `JsonSerializable`
  interface instead of the polyfill from laminas-stdlib, as all versions of PHP we support
  provide that interface in default installs now.

Deprecated
----------

- [zfcampus/zf-hal#163](https://github.com/zfcampus/zf-hal/pull/163) both adds and deprecates the method `Laminas\ApiTools\Hal\Link\LinkCollection::idempotentAdd()`;
  in version 3, if released, that method will replace the `add()` method. Its
  internals largely replace functionality in `Laminas\ApiTools\Hal\Plugin\Hal::injectPropertyAsLink()`.

- [zfcampus/zf-hal#163](https://github.com/zfcampus/zf-hal/pull/163) deprecates the "url" key when creating a new link from an array, in
  favor of an "href" key.

Removed
-------

- [zfcampus/zf-hal#158](https://github.com/zfcampus/zf-hal/pull/158) removes support for HHVM.

Fixed
-----

- [zfcampus/zf-hal#161](https://github.com/zfcampus/zf-hal/pull/161) fixes initialization of the `hal` view helper, ensuring it receives an
  event manager instance within its factory. Previously, listeners attached within delegator
  factories could be overwritten.
Assets 2
Loading