Skip to content

Releases: Ark4ne/laravel-json-api

v1.1.8

01 Jun 13:40
Compare
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
Compare
Choose a tag to compare

Fixes

  • Request rules: fix $failures not initialized

v1.1.6

11 May 09:02
Compare
Choose a tag to compare

Fixes

  • Request rules: check type of value before assert

v1.1.5

28 Apr 15:37
Compare
Choose a tag to compare

Fixes

  • Relationships::mapRelationships when data is empty

v1.1.4

27 Apr 09:59
Compare
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
Compare
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)

v1.1.2

25 Apr 17:40
Compare
Choose a tag to compare

Fixes

  • phpstan annotations for rules

v1.1.1

25 Apr 08:39
Compare
Choose a tag to compare

Fixes

  • rename namespace Resource to Resources

v1.1.0

22 Apr 16:31
Compare
Choose a tag to compare

Added

  • implement request validation rules Requests\Rules\{Includes, Fields}

Change

  • Improve Support\Includes::get(), disable caching.

v1.0.2

21 Apr 16:12
Compare
Choose a tag to compare

Full Changelog: v1.0.1...v1.0.2