Releases: woohoolabs/yin
Releases · woohoolabs/yin
1.0.2
1.0.1
1.0.0
ADDED:
- #19: Support for custom serializers
- Support for using
Collection
s not implementingArrayAccess
inAbstractCollectionDocument
s - 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 theJsonApi
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
becamePageBasedPagination
) - Improved documentation: added missing sections and fixed a lot of stylistic errors
- Improved test coverage
FIXED:
FixedPageBasedPagination::getPage()
,PageBasedPagination::getPage()
andPageBasedPagination::getSize()
now returninteger
instead ofstring
CursorBasedPagination::getCursor()
now returnsinteger
instead ofstring
OffsetBasedPagination::getOffset()
andOffsetBasedPagination::getLimit()
now returninteger
instead ofstring
- #44: Fixed request validation
- #45:
Request
class uses exception factory to throw exception - #48: PageBasedPaginationProviderTrait getPrevLink and getNextLink generate wrong links
0.11.0
ADDED:
CHANGED:
- Default values can now be defined to several methods of
Request
- Slightly optimized request body serialization
- Renamed
Request::getResourceToOneRelationship()
toRequest::getToOneRelationship()
- Renamed
Request::getResourceToManyRelationship()
toRequest::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
andMediaTypeUnsupported
exception messages
0.10.8
0.10.7
0.10.6
0.10.5
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