This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Releases: skore/laravel-json-api
Releases · skore/laravel-json-api
PHP 8 support minor release
Added
- Support for PHP 8
Add Laravel 8 support
Added
- Support for Laravel 8
Removed
- Support for Laravel 5
2.0.2
Added normalizer to relationships (configurable)
Added
- Normalize relationships names (check config)
BE VERY CAREFUL WITH THIS UPGRADE!!!
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 areincluded
following JSON:API specs- Removed usage of Auth facade (replaced by Gate), allowing anonymous authorisations
Removed
- Pagination refresh on JsonApiCollection
- Composer suggested package: spatie/laravel-json-api-paginate
- Drop compatibility with unsupported Laravel 5.x versions
Fixes
Fixes and changes to includes
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
Fixed
- Included repeated on JsonApiResource
Recovery release (fixes)
Fixed
- Some pagination bugs
Fixes, internal changes, and more
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