Releases: woohoolabs/yin
Releases · woohoolabs/yin
2.0.2
CHANGED:
- Updated JSON:API schema to the latest version
2.0.1
ADDED:
- Possibility to configure the displayed time zone when using
TransformerTrait::toIso8601Date()
andTransformerTrait::toIso8601DateTime()
CHANGED:
- Updated JSON:API schema to the latest version
2.0.0
ADDED:
Responder::okWithRelationship()
andResponder::createdWithRelationship()
- #58: Allow to set options to the json_encode method
- Support for custom deserializers
- #57: Support for validating the request during hydration
CHANGED:
- Yin now requires PHP 7.0 at least
- Documents, Transformers, Hydrators, Serializers and Exceptions must be type hinted strictly (BREAKING)
- #51: Decouple
AbstractSuccessfulDocument
fromSerializer
andResponse
(BREAKING) - Renamed
JsonApi
schema object toJsonApiObject
in order to avoid ambiguities (BREAKING) - Renamed
DefaultSerializer
toJsonSerializer
(BREAKING) - Renamed some methods of
ExceptionFactoryInterface
which didn't end withException
(e.g.createRelationshipNotExists()
tocreateRelationshipNotExistsException()
) (BREAKING) - Hydrators must implement the
validateRequest()
method (BREAKING) HydratorTrait::getAcceptedType()
was renamed toHydratorTrait::getAcceptedTypes()
and it should always return an array
even if the hydrator can only accept one resource type (BREAKING)
REMOVED:
RelationshipResponder::okWithMeta()
method (BREAKING)JsonApi::respondWithRelationship()
method (BREAKING)
FIXED:
- #59: Resource schema validating
- Minor problems with request/response validators
- Minor bug fixes
2.0.0-rc1
ADDED:
- Support for validating the request during hydration
CHANGED:
- Hydrators must implement the
validateRequest()
method (BREAKING)
1.0.6
2.0.0-beta2
ADDED:
- Support for custom deserializers
CHANGED:
- Renamed
DefaultSerializer
toJsonSerializer
(BREAKING) - Renamed some methods of
ExceptionFactoryInterface
which didn't end withException
(e.g.createRelationshipNotExists()
tocreateRelationshipNotExistsException()
) (BREAKING)
FIXED:
- #59: Resource schema validating
- Minor problems with request/response validators
1.0.5
ADDED:
- Possibility to configure the
DefaultSerializer
FIXED:
AbstractSimpleResourceDocument::getRelationshipContent()
didn't return any value
2.0.0-beta1
ADDED:
Responder::okWithRelationship()
andResponder::createdWithRelationship()
- Possibility to configure the
DefaultSerializer
CHANGED:
- Yin now requires PHP 7.0 at least
- Documents, Transformers, Hydrators, Serializers and Exceptions must be type hinted strictly (BREAKING)
- #51: Decouple
AbstractSuccessfulDocument
fromSerializer
andResponse
(BREAKING) - Renamed
JsonApi
toJsonApiObject
in order to avoid ambiguities (BREAKING)
REMOVED:
RelationshipResponder::okWithMeta()
method (BREAKING)JsonApi::respondWithRelationship()
method (BREAKING)
FIXED:
- Minor bug fixes
1.0.4
FIXED:
- Fixed status code of multiple error responses
1.0.3
ADDED:
- Better support for "about" links
FIXED:
- Error status codes are now represented as string as per the spec
TransformerTrait()
datetime transformer methods identify the ISO-8601 format correctly