Releases: woohoolabs/yin
Releases · woohoolabs/yin
0.4.1
Bumped version
0.4.0
ADDED:
- support for proper content negotiation
- support for validation of query parameters
- support for retrieving the requested extensions
- full replacement and removal of relationships can be prohibited
- exception can be raised when an unrecognized sorting parameter is received
CHANGED:
CreateHydrator
was renamed toAbstractCreateHydrator
UpdateHydrator
was renamed toAbstractUpdateHydrator
AbstractHydrator
can be used for update and create requests too- improved and more extensive documentation
FIXED:
- meta responses follow the specification
0.3.6
Fixed
- Fixed issue with possible request body parsing
0.3.5
Fixed empty includes
0.3.4
Fixed
- Do not mutate the original responses
0.3.3
Changed
LinksTrait
andMetaTrait
support retrieval of their properties
Removed
TransformableInterface
andSimpleTransformableInterface
as they were useless
Fixed
- The response body is cleared before assembling the response
0.3.2
Fixed
- Errors now don't contain null fields
- Errors can contain links and a source
0.3.1
Fixed
- Automatically determine the status code of an error document if it is not explicitly set
0.3.0
Added
- Support for creation and update of resources via
Hydrators
- Added
JsonApi
class - Added response classes
Link::getHref()
method
Changed
RequestInterface
extendsPSR\Http\Message\ServerRequestInterface
- Several methods of
AbstractDocument
became public instead of protected - Substantially refactored and improved examples
0.2.0
Added
- Support for proper and automatic fetching of relationships
- Convenience methods to
AbstractResourceTransformer
to support transformation - Convenience methods for links and relationships
- Examples about relationships
Changed
- Decoupled
Request
from PSR-7ServerRequestInterface
- Simplified document creation and transformation
- Renamed
Criteria
toRequest
for future purposes - Renamed
OneToManyTraversableRelationship
toToManyRelationship
- Renamed
OneToOneRelationship
toToOneRelationship
Removed
CompulsoryLinks
andPaginatedLinks
Fixed
- Transformation of resource relationships
- Transformation of meta element at the top level
- Transformation of null resources