Skip to content

Releases: woohoolabs/yin

0.4.1

26 Aug 21:47
Compare
Choose a tag to compare
Bumped version

0.4.0

26 Aug 20:17
Compare
Choose a tag to compare

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 to AbstractCreateHydrator
  • UpdateHydrator was renamed to AbstractUpdateHydrator
  • AbstractHydrator can be used for update and create requests too
  • improved and more extensive documentation

FIXED:

  • meta responses follow the specification

0.3.6

19 Aug 19:53
Compare
Choose a tag to compare
0.3.6 Pre-release
Pre-release

Fixed

  • Fixed issue with possible request body parsing

0.3.5

18 Aug 22:40
Compare
Choose a tag to compare
0.3.5 Pre-release
Pre-release
Fixed empty includes

0.3.4

18 Aug 19:42
Compare
Choose a tag to compare
0.3.4 Pre-release
Pre-release

Fixed

  • Do not mutate the original responses

0.3.3

18 Aug 19:26
Compare
Choose a tag to compare
0.3.3 Pre-release
Pre-release

Changed

  • LinksTrait and MetaTrait support retrieval of their properties

Removed

  • TransformableInterface and SimpleTransformableInterface as they were useless

Fixed

  • The response body is cleared before assembling the response

0.3.2

17 Aug 20:23
Compare
Choose a tag to compare
0.3.2 Pre-release
Pre-release

Fixed

  • Errors now don't contain null fields
  • Errors can contain links and a source

0.3.1

16 Aug 22:29
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release

Fixed

  • Automatically determine the status code of an error document if it is not explicitly set

0.3.0

16 Aug 15:20
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Added

  • Support for creation and update of resources via Hydrators
  • Added JsonApi class
  • Added response classes
  • Link::getHref() method

Changed

  • RequestInterface extends PSR\Http\Message\ServerRequestInterface
  • Several methods of AbstractDocument became public instead of protected
  • Substantially refactored and improved examples

0.2.0

01 Aug 07:15
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

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-7 ServerRequestInterface
  • Simplified document creation and transformation
  • Renamed Criteria to Request for future purposes
  • Renamed OneToManyTraversableRelationship to ToManyRelationship
  • Renamed OneToOneRelationship to ToOneRelationship

Removed

  • CompulsoryLinks and PaginatedLinks

Fixed

  • Transformation of resource relationships
  • Transformation of meta element at the top level
  • Transformation of null resources