Skip to content

0.8.0

Compare
Choose a tag to compare
@kocsismate kocsismate released this 20 Dec 13:47
· 253 commits to master since this release

CHANGED:

  • Link::createFromArray() performs type checks before instantiating a Link object
  • Added a ResourceObject::createFromArray() instead of the constructor
  • ResourceObject::createFromArray() performs more type checks before instantiating a ResourceObject
  • The "jsonapi" member is always present when using Document::toArray()
  • The "links" member won't be present in a relationship when it is empty when using ResourceObject::toArray()

REMOVED:

  • Links::hasLinks() method
  • JsonApi::hasJsonApi() method

FIXED:

  • The "jsonapi" member was incorrectly recognized as jsonApi
  • If the "jsonapi" member doesn't define the version, "1.0" will be the default now as per the spec
  • Invocation of Links::hasLink() and thus Links::hasSelf() etc. methods resulted in an infinite loop
  • Relationship::toArray() showed the "data" member incorrectly for to-one relationships