Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Releases: skore/laravel-json-api

PHP 8 support minor release

20 Jan 11:46
18ce814
Compare
Choose a tag to compare

Added

  • Support for PHP 8

Add Laravel 8 support

30 Nov 10:53
d67bfee
Compare
Choose a tag to compare

Added

  • Support for Laravel 8

Removed

  • Support for Laravel 5

2.0.2

11 Nov 16:25
Compare
Choose a tag to compare

Added

  • Relations with custom API resource classes

Added normalizer to relationships (configurable)

02 Jul 14:09
Compare
Choose a tag to compare

Added

  • Normalize relationships names (check config)

BE VERY CAREFUL WITH THIS UPGRADE!!!

21 Apr 17:44
b83eb61
Compare
Choose a tag to compare

Added

  • Collection::paginate() macro with params and config for maximum per page results
  • Config file (json-api.php) with some configurable behavior of the package
  • 3rd parameter to JsonApiCollection class constructor for customise the resource that collects
  • JsonApiResource::withAttributes() method for add additional attributes from child resources
  • Laravel 7 compatibility

Changed

  • Now JsonApiCollection constructor ONLY accepts Laravel collections and arrays of models
  • includes now are included following JSON:API specs
  • Removed usage of Auth facade (replaced by Gate), allowing anonymous authorisations

Removed

Fixes

10 Sep 13:41
Compare
Choose a tag to compare

Fixed

  • Composer dependencies

Fixes and changes to includes

10 Sep 13:29
Compare
Choose a tag to compare

Added

  • Compatibility with Laravel 6.0

Changed

  • Allow include of Pivot relationships

Fixed

  • Resource on included on JsonApiCollection when include param not present

More fixes

05 Sep 13:31
Compare
Choose a tag to compare

Fixed

  • Included repeated on JsonApiResource

Recovery release (fixes)

28 Aug 09:14
Compare
Choose a tag to compare

Fixed

  • Some pagination bugs

Fixes, internal changes, and more

16 Aug 10:48
Compare
Choose a tag to compare

Added

  • Second parameter on JsonApiCollection for force authorization on resource list
  • Changelog following Keep a Changelog

Changed

  • Use of the snake_case 🐍 for object types (see member names)

Removed

  • Temporary use of PSR-12 on some classes (we'll still use PSR-2 and all the approved ones)

Fixed

  • Multiple bugs on the pagination when resources are not authorised and it still show old count of items
  • When included show empty on JsonApiCollection