Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Releases: tobyzerner/json-api-php

v0.4.1

05 Mar 21:17
Compare
Choose a tag to compare

Fixed

  • #114: Do not call getAttributes() twice. (@f3ath)

v0.4.0

05 Mar 07:02
Compare
Choose a tag to compare

Added

  • #96: Improve invalid parameter exceptions with more information about what's invalid. (@nubs)

Changed

  • #106: Convert snake_case into camelCase when calling a relationship method. (@ustrugany)

Fixed

  • #94: Properly support empty to-one relationships.
  • #99: Omit attributes on resource identifier objects. (@anthonyhendrickson)
  • #103: Prevent resource relationships from being built twice per resource.
  • #110: Omit empty attributes on resources. (@f3ath)

v0.3.0

31 Mar 09:26
Compare
Choose a tag to compare

Added

Changed

Fixed

  • #65: Convert snake-case into camelCase when calling a relationship method. (@avoelpel)
  • #70: Include related resources even if relationship is not listed in sparse fieldset. (@Damith88)
  • #72: Return null in Parameters::getLimit if no limit is set. (@byCedric)
  • 46142e5: Prevent primary "data" resources from showing up again in the "included" array. (@tobscure)

v0.2.1

02 Nov 12:50
Compare
Choose a tag to compare
  • Improve performance when working with large numbers of resources

v0.2.0

30 Oct 00:13
Compare
Choose a tag to compare

Completely rewrite to improve all the things.

  • Resources and Collections now contain data and are responsible for serializing it when they are converted to JSON-API output (whereas before serializers were responsible for creating concrete Resources/Collections containing pre-serialized data). Serializers are now only responsible for building attributes and relationships. This is a much more logical/testable workflow, and it makes some really cool syntax possible!
  • Support for sparse fieldsets.
  • Simplified relationship handling.
  • Renamed Criteria to Parameters, add validation.
  • Added ErrorHandler for serializing exceptions as JSON-API error documents.
  • Updated docs.
  • Wrote some tests.
  • It should go without saying that this is not at all backwards-compatible with 0.1.

v0.1.1

07 Aug 07:12
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release
  • Rename abstract serializer

v0.1.0

07 Aug 06:06
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial testing release