This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Releases: skore/laravel-json-api
Releases · skore/laravel-json-api
Faster jsonPaginate method
Added
- Support for hammerstone/fast-paginate
Final release
THIS PACKAGE IS GONNA BE DEPRECATED IN FAVOUR OF THIS ONE: https://github.com/open-southeners/laravel-apiable
Fixed
- Missing autoload-dev, tests were autoloaded with the released version (ouch!)
Minor fix to facade binding
Fixed
- Missing app container binding for support facade usage
Minor fixes
Fixed
- Pagination handling when cursor pagination is being used on resources
- Minor removals of warnings and deprecations on newer versions of PHP
Fix issue with hasMany relationships on testing utils
Fixed
- Assert testing utilities with hasMany relationships
Change suggested package to own forked
Changed
- Suggested package from Spatie's to our own, read further here: https://github.com/skore/laravel-query-builder#important
Minor fix to test utilities
Fixed
hasAttribute
/hasAttributes
now accepts array as values
Small fix to dependencies 3... 2... 1... DOH!
Fixed
- Some extra dependencies not needed :/
v3.2.0 The new year bonus 🎉
Added
- Laravel 9 support
- Testing utilities with more useful failure messages and docblocks
- PHPStan for static analysis (Github full integration still in progress...)
- Tests to some nested relationships
- Code analysis thanks to @codacy
Changed
hasSize
renamed tocount
(original will be still maintained as an alias)- Internal package API: Moved
Assert
props to traits
Last feature update for v3
Added
- JSON:API pagination to
Illuminate\Database\Query\Builder
class - Testing utilities (as macros of
Illuminate\Foundation\Testing\TestResponse
):hasId
,hasType
,hasAttribute
,hasAttributes
,atRelation
,hasRelationshipWith
,hasAnyRelationships
,at
,hasSize
SkoreLabs\JsonApi\Support\JsonApi
utilities facadeSkoreLabs\JsonApi\Contracts\JsonApiable
contract interface for custom resource types