Skip to content

Releases: woohoolabs/yin

1.0.2

17 Nov 07:47
Compare
Choose a tag to compare

CHANGED:

  • #51: Remove sorting of included resources

1.0.1

07 Nov 09:35
Compare
Choose a tag to compare

FIXED:

  • #50: Omitting data property from relationships information

1.0.0

28 Oct 22:35
Compare
Choose a tag to compare

ADDED:

  • #19: Support for custom serializers
  • Support for using Collections not implementing ArrayAccess in AbstractCollectionDocuments
  • Docker Compose file to run tests more easily

CHANGED:

  • Increased minimum PHP version requirement to PHP 5.6
  • Made $exceptionFactory and $serializer constructor parameters optional for the JsonApi class
  • Updated JSON:API schema to the latest version
  • Renamed pagination provider traits to pagination link provider traits
  • Renamed pagination objects to include "Based" (e.g.: PagePagination became PageBasedPagination)
  • Improved documentation: added missing sections and fixed a lot of stylistic errors
  • Improved test coverage

FIXED:

  • FixedPageBasedPagination::getPage(), PageBasedPagination::getPage() and PageBasedPagination::getSize()
    now return integer instead of string
  • CursorBasedPagination::getCursor() now returns integer instead of string
  • OffsetBasedPagination::getOffset() and OffsetBasedPagination::getLimit() now return integer instead of string
  • #44: Fixed request validation
  • #45: Request class uses exception factory to throw exception
  • #48: PageBasedPaginationProviderTrait getPrevLink and getNextLink generate wrong links

0.11.0

16 Aug 19:58
Compare
Choose a tag to compare

ADDED:

  • #15: PATCH a relationship with {"data":null}
  • #33: Add support for clearing relationships

CHANGED:

  • Default values can now be defined to several methods of Request
  • Slightly optimized request body serialization
  • Renamed Request::getResourceToOneRelationship() to Request::getToOneRelationship()
  • Renamed Request::getResourceToManyRelationship() to Request::getToManyRelationship()
  • Changed the signature of the Request constructor from __construct(ServerRequestInterface $request) to __construct(ServerRequestInterface $request, ExceptionFactoryInterface $exceptionFactory)

REMOVED:

  • Support for extensions

FIXED:

  • #30: ResourceIdentifier::fromArray() returning null is not handled gracefully
  • MediaTypeUnacceptable and MediaTypeUnsupported exception messages

0.10.8

05 Jul 21:34
Compare
Choose a tag to compare

FIXED:

  • #28: Hydrate attribute with null

0.10.7

13 Jun 18:18
Compare
Choose a tag to compare

FIXED:

  • #25: OffsetPagination bug, offset and limit mixup

0.10.6

17 May 16:42
Compare
Choose a tag to compare

CHANGED:

  • Updated justinrainbow/json-schema to v2.0.0

FIXED:

  • #23: Fixed jsonApi object

0.10.5

09 May 06:14
Compare
Choose a tag to compare

ADDED:

  • Support for PHPUnit 5.0
  • Request::getFilteringParam() method

CHANGED:

  • Updated JSON API schema
  • A default value can be provided to Request::getResourceAttribute() method when the attribute is not present
  • #20: Expressing empty relationships in the response

FIXED:

  • #22: Data member isn't present when fetching a relationship

0.10.4

29 Mar 07:36
Compare
Choose a tag to compare

FIXED:

  • #18: Sorting always happens on primary key in resource

0.10.3

26 Mar 10:55
Compare
Choose a tag to compare

ADDED:

  • Integrations section to the read me file

FIXED:

  • Application errors now have status code 500 instead of 400
  • #17: Avoid double stream reading