Releases: zfcampus/zf-hal
zf-hal 1.6.0
Added
- #172 adds support for zend-hydrator v3 releases (while retaining support for v1 and v2).
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zf-hal 1.5.0
Added
-
#158 adds support for PHP 7.1 and 7.2.
-
#167 adds a new event,
fromLink.pre, triggered from theZF\Hal\Plugin\Hal::fromLinkmethod.
This event can be used in conjunction withZF\Rest\RestController::create()to manipulate the generated
link for purpose of modifying it for theLinkHTTP response header.
Changed
-
#163 updates
ZF\Hal\Link\Linkto implement the PSR-13LinkInterface, and modifies
some internals to make use of its idempotency. -
#165 modifies the
JsonSerializableEntityto implement the native PHPJsonSerializable
interface instead of the polyfill from zend-stdlib, as all versions of PHP we support
provide that interface in default installs now.
Deprecated
-
#163 both adds and deprecates the method
ZF\Hal\Link\LinkCollection::idempotentAdd();
in version 3, if released, that method will replace theadd()method. Its
internals largely replace functionality inZF\Hal\Plugin\Hal::injectPropertyAsLink(). -
#163 deprecates the "url" key when creating a new link from an array, in
favor of an "href" key.
Removed
- #158 removes support for HHVM.
Fixed
- #161 fixes initialization of the
halview helper, ensuring it receives an
event manager instance within its factory. Previously, listeners attached within delegator
factories could be overwritten.
zf-hal 1.4.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #151 updates the
HalControllerPluginFactoryto work correctly under v2 releases of zend-servicemanager.
zf-hal 1.4.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #149 updates the zend-hydrator dependency to allow either the 1.1 or 2.2 series, allowing usage with zend-stdlib v2 releases.
zf-hal 1.4.0
Added
-
#142 and #145 add support for Zend Framework v3 component releases, retaining support for v2 versions as well; specifically, zend-eventmanager, zend-mvc, zend-stdlib, and zend-servicemanager v3 may now be used with this module.
-
#99 adds accessors for the
$entityand$idproperties ofZF\Hal\Entity. -
#124 adds a new interface
ZF\Hal\Link\SelfLinkInjectorInterfaceand default implementationZF\Hal\Link\SelfLinkInjector; these are now used as collaborators to theHalplugin to simplify internal logic, and allow users to provide alternate strategies for generating theselfrelational link. -
#125 adds a new service,
ZF\Hal\Link\LinkUrlBuilder. This class composes theServerUrlandUrlview helpers in order to provide the functionality required to build a route-based link URL. TheHalplugin now consumes this instead of implementing the logic internally.The upshot is: you can replace the URL generation semantics for your application entirely by pointing the service to your own implementation.
-
#125 adds service factories for each of the
LinkExtractorandLinkCollectionExtractor, which now allows users to provide substitutions for their functionality. (Extractors pull links and link collections in order to generate the relational links for a HAL-JSON payload.) -
#139 adds the new method
Hal::resetEntityHashStack(); this method can be used when rendering multiple responses and/or payloads within the same request cycle, in order to allow re-using the same entity instances (normally, they would be skipped when discovered on subsequent iterations).
Deprecated
- #99 deprecates usage of property access on
ZF\Hal\Entityto retrieve the identifier and underlying entity instance. - #125 deprecates the usage of
Hal::setServerUrlHelper()andHal::setUrlHelper(); these will each now raise an exception indicating the user should use aLinkUrlBuilderfor URL generation instead. - #125 deprecates passing a
ServerUrlHelperandUrlHelperto the constructor ofZF\Hal\Exctractor\LinkExtractor; it now expects aLinkUrlBuilderinstance instead. (This class is primarily an internal detail of theHalplugin.)
Removed
- #145 removes support for PHP 5.5.
Fixed
- Nothing.
zf-hal 1.3.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #111 removes some code errantly left in a comment from a previous merge conflict.
- #112 removes conditionals based on PHP 5.4, as the minimum version is now 5.5.
- #127 fixes an issue in the
HalJsonStrategyplugin whereby the wrongContent-Typeheader was being used when anApiProblemresponse was handled; these now correctly returnapplication/problem+jsoninstead ofapplication/hal+json.