Releases: willdurand/Hateoas
Releases · willdurand/Hateoas
2.9.0 (2015-12-07)
This release adds Symfony 3.0 support.
2.8.1 (2015-12-04)
- Fixed: assign class, name and type properties on
RelationPropertyMetadata
2.8.0 (2015-09-09)
- Added: Evaluate ExcludeIf after JMS exclusion strategy (see #212)
2.7.0 (2015-07-04)
Hateoas now relies on JMS Serializer ~1.0
and PHP 5.3 is not supported anymore!
2.6.0 (2015-05-28)
- Added:
OffsetRepresentation
andAbstractSegmentedRepresentation
- Added: JMS annotation
Type
onPaginatedRepresentation
- Reverted: "Set a default exclusion configuration to Embedded" (fix #196)
2.5.0 (2015-04-13)
- Fixed: set a default exclusion configuration to Embedded
- Added: support for multiple embedded resources with the same relation name, fixed #188
2.4.0 (2015-03-06)
- Added: cache for Expression Language evaluations
- Added: introduce
RelationProviderInterface
- Fixed: ExpressionEvaluator::evaluate with non strings, fixes #183
- Fixed: documentation (YAML ref. config, JSON snippets)
- Fixed: checking on existence of class property before accessing it to avoid notice.
- Fixed: #164
2.3.0 (2014-06-03)
Code
- Added:
total
attribute toPaginatedRepresentation
- Updated: use fixed Frankenstein 0.1.2
Documentation
- Added: documentation and tests on how to override a collection xml root name
- Fixed: missing reference in YAML reference
2.2.0 (2014-03-26)
- Added: getters to
VndErrorRepresentation
- Added: getters to
PagerFantaFactory
- Fixed: PHPDoc for
HateoasBuilder:create()
function - Removed: the
Hateoas::getLinkHref()
has been removed according to the deprecated message added a while ago. Use thegetLinkHelper()
method instead, and callgetLinkHref()
on the helper itself — BC Break - Removed: the
PagerfantaFactory::create()
has been removed according to the deprecated message added a while ago. Use thecreateRepresentation()
method instead — BC Break
2.1.0 (2014-01-13)
Changelog
- Added: allow users to add expression functions, cf. Expression Functions
- Added: support curies in
JsonHalSerializer
- Added:
LinkExtension
, a Twig extension to generate links, cf. documentation - Added:
VndErrorRepresentation
representation class to supportvnd.error
specification, cf. documentation (#111, #114) - Added:
PagerfantaFactory
now exposes acreateRepresentation()
method, and replaces the deprecatedcreate()
method. See the important note below. (#131, #133) - Added: more documentation
- Fixed: keep embedded relations even with custom relations (#122)
- Fixed:
PagerfantaFactory
inlines\Traversable
results (#128)
Important Note
The PagerfantaFactory
has been refactored, and now exposes a createRepresentation()
method. It is heavily recommended to use it! The old create()
method has been deprecated and will be removed as of version 2.2.0
.
As this class is not part of the "core" of the lib, but rather a helper class, we decided not to bump the major version number. Such a change was required as this factory is nearly unusable in real life, and that is why we see this change as a "fix" rather than a "BC break". This is a sort of "soft" backward compatibility break, we apologize for the inconvenience.