From 0200e6fa16dd6c61888f2a0d0fe2f1ec8a53c760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Robles?= Date: Tue, 18 Oct 2022 17:21:19 +0200 Subject: [PATCH] update changelog --- CHANGELOG.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5324435..0564040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.2.0] - 2022-10-18 + +### Added + +- `requests.validate_params` config option to `apiable.php` for enforcing validation. **Requires to publish or manually copy** +- Additional filter operators like `gte` (greater or equal than), `gt` (greater than), `lte` (lower or equal than), `lt` (lower than) + +### Changed + +- Get allowed fields methods from apply query params pipeline classes moved to `OpenSoutheners\LaravelApiable\Http\QueryParamsValidator` +- Operators from `allowed_filters` included to meta data are now URL-safe +- `allowed_sorts` structure is now based on `['attribute' => 'allowed_direction']` +- Allow filters methods/attribute now accepts array with multiple operators + ## [2.1.1] - 2022-10-06 ### Added -- `Illuminate\Contracts\Support\Arrayable` interface to `JsonApiResponse` so it can be used in Inertia responses (as an example). +- `Illuminate\Contracts\Support\Arrayable` interface to `JsonApiResponse` so it can be used in Inertia responses (as an example) ## [2.1.0] - 2022-10-05