Skip to content

Releases: open-southeners/laravel-apiable

1.3.1

20 Sep 15:42
9d31d71
Compare
Choose a tag to compare

Changed

  • JsonApiResponse::getPipelineQuery now accepts an optional callback closure & is exposed as public for repositories usage

1.3.0

14 Sep 15:39
87c573d
Compare
Choose a tag to compare

Changed

  • RequestQueryObject::allowFilter method now accepts 3 arguments (attribute, operator/values, values)

Fixed

  • AllowedFilter::scopedValue method was removed and accidentally pushed onto RequestQueryObject::allowScopedFilter

1.2.0

13 Sep 12:02
483c5d4
Compare
Choose a tag to compare

Added

  • Method RequestQueryObject::allows to be able to group everything in the same method call without needing to use class methods (AllowedFilters, AllowedFields, etc...)

1.1.0

12 Sep 18:34
1fa3523
Compare
Choose a tag to compare

Added

  • AllowedFilter::scoped method for Laravel query scopes filters to specify the filter is not an actual attribute but a query builder scope
  • enforce_scoped_names to config/apiable.php to be used so they rename scoped filters in case there are attributes with the same name on the model (remember to use vendor:publish artisan command to update the config file)
  • include_allowed to config/apiable.php to be used so any JsonApiResponse will include allowed filters and sorts (like using JsonApiResponse::includeAllowedToResponse but on all requests)
  • AssertableJsonApi::hasNotAttribute and AssertableJsonApi::hasNotAttributes methods for negative test assertions (counter part of AssertableJsonApi::hasAttribute and AssertableJsonApi::hasAttributes)

Fixed

  • Scoped filters now can be allowed & applied to requested response
  • Issue with allowAppends & allowFields sending array of attributes will wrongly parse them

1.0.2

01 Sep 08:16
5075c69
Compare
Choose a tag to compare

Added

  • Allowing fields and appends now accepts model class as for type parameter

1.0.1

31 Aug 16:57
232c96c
Compare
Choose a tag to compare

Fixed

  • Missing publishable config

1.0.0

31 Aug 15:25
6ad2e7e
Compare
Choose a tag to compare

Removed

  • Custom transformers (out of package scope / purpose)

Fixed

  • Method allowIncludes adds nested array which leads into issues

Changed

  • Model setup not needed (OpenSoutheners\LaravelApiable\JsonApiOptions replaced by OpenSoutheners\LaravelApiable\Facades\Apiable::modelResourceTypeMap facade method)

Added

0.4.1

18 Jul 08:22
05ea380
Compare
Choose a tag to compare
0.4.1 Pre-release
Pre-release

Fixed

  • Missing autoload-dev, tests were autoloaded with the released version
  • Multiple minor fixes around forwarding calls (methods)
  • Apiable facade toJsonApi

0.4.0

13 Jul 14:14
ed23b17
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Added

  • Way to add multiple sorts and includes with allowSort & allowInclude methods

0.3.0

13 Jul 12:45
1340d03
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Added

  • JsonApiResponse getOne method for parse current model instance or model key passed
  • isCollection and isResource testing methods to AssertableJsonApi