Skip to content

Releases: woohoolabs/yin

2.0.2

13 Jun 08:31
Compare
Choose a tag to compare

CHANGED:

  • Updated JSON:API schema to the latest version

2.0.1

18 Apr 17:00
Compare
Choose a tag to compare

ADDED:

  • Possibility to configure the displayed time zone when using TransformerTrait::toIso8601Date() and TransformerTrait::toIso8601DateTime()

CHANGED:

  • Updated JSON:API schema to the latest version

2.0.0

10 Mar 16:46
Compare
Choose a tag to compare

ADDED:

  • Responder::okWithRelationship() and Responder::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 from Serializer and Response (BREAKING)
  • Renamed JsonApi schema object to JsonApiObject in order to avoid ambiguities (BREAKING)
  • Renamed DefaultSerializer to JsonSerializer (BREAKING)
  • Renamed some methods of ExceptionFactoryInterface which didn't end with Exception (e.g. createRelationshipNotExists() to createRelationshipNotExistsException()) (BREAKING)
  • Hydrators must implement the validateRequest() method (BREAKING)
  • HydratorTrait::getAcceptedType() was renamed to HydratorTrait::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

06 Mar 11:42
Compare
Choose a tag to compare
2.0.0-rc1 Pre-release
Pre-release

ADDED:

  • Support for validating the request during hydration

CHANGED:

  • Hydrators must implement the validateRequest() method (BREAKING)

1.0.6

28 Feb 19:02
Compare
Choose a tag to compare

FIXED:

  • #60: Fixed datetime format method from sql without second argument

2.0.0-beta2

15 Feb 08:08
Compare
Choose a tag to compare
2.0.0-beta2 Pre-release
Pre-release

ADDED:

  • Support for custom deserializers

CHANGED:

  • Renamed DefaultSerializer to JsonSerializer (BREAKING)
  • Renamed some methods of ExceptionFactoryInterface which didn't end with Exception (e.g. createRelationshipNotExists() to createRelationshipNotExistsException()) (BREAKING)

FIXED:

  • #59: Resource schema validating
  • Minor problems with request/response validators

1.0.5

11 Feb 09:06
Compare
Choose a tag to compare

ADDED:

  • Possibility to configure the DefaultSerializer

FIXED:

  • AbstractSimpleResourceDocument::getRelationshipContent() didn't return any value

2.0.0-beta1

09 Feb 20:40
Compare
Choose a tag to compare
2.0.0-beta1 Pre-release
Pre-release

ADDED:

  • Responder::okWithRelationship() and Responder::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 from Serializer and Response (BREAKING)
  • Renamed JsonApi to JsonApiObject in order to avoid ambiguities (BREAKING)

REMOVED:

  • RelationshipResponder::okWithMeta() method (BREAKING)
  • JsonApi::respondWithRelationship() method (BREAKING)

FIXED:

  • Minor bug fixes

1.0.4

02 Feb 14:51
Compare
Choose a tag to compare

FIXED:

  • Fixed status code of multiple error responses

1.0.3

21 Dec 16:36
Compare
Choose a tag to compare

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