Skip to content

Releases: Ark4ne/laravel-json-api

v1.2.1

19 Dec 20:37

Choose a tag to compare

Fixes

  • Merge values: don't erase concrete values by missing value when merge values

v1.2.0

27 Sep 21:16

Choose a tag to compare

v1.2.0

Added

  • Implement described notation
  • Implement applyWhen, Unlike mergeWhen, applyWhen keeps the keys even when the condition is not met.

Breaking change

  • Resources\Concerns\Identifier::toType: by default return type computed from resource class insteadof model class

v1.1.10

12 Sep 15:11

Choose a tag to compare

Added

  • Conditionally loads fields

v1.1.9

09 Jun 13:27

Choose a tag to compare

Fixes

  • JsonApiResource::toArray don't filter on type and id

v1.1.8

01 Jun 13:40

Choose a tag to compare

Add

  • Skeleton::class present skeleton of a JsonApiResource::class

Changes

  • @deprecated Support\With is replaced by Support\Arr
  • Resources\Schema::schema return Skeleton
  • Resources\SchemaCollection::schema return Skeleton

Fixes

  • JsonApiResource::toArray return true deep array
  • Support\Includes when request has empty parameter include

v1.1.7

11 May 09:35

Choose a tag to compare

Fixes

  • Request rules: fix $failures not initialized

v1.1.6

11 May 09:02

Choose a tag to compare

Fixes

  • Request rules: check type of value before assert

v1.1.5

28 Apr 15:37

Choose a tag to compare

Fixes

  • Relationships::mapRelationships when data is empty

v1.1.4

27 Apr 09:59

Choose a tag to compare

Changes

  • phpstan lvl 6 compliant
  • Schema safe instantiate self for structure generation
  • Relationships allow conditional relation

Fixes

  • Schema correct handle attributes

v1.1.3

26 Apr 15:43

Choose a tag to compare

Added

  • Includes::includes return the remaining includes for current resource

Fixes

  • FakeModel implement correctly ArrayAccess (add missing return type on offsetGet)