22All notable changes to this project will be documented in this file. This project adheres to
33[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
44
5+ ## [ 1.6.0] - 2020-01-13
6+
7+ ### Added
8+ - Updated to support PHP ` 7.4 ` (minimum PHP remains ` 7.1 ` ).
9+
10+ ### Changed
11+ - [ #440 ] ( https://github.com/cloudcreativity/laravel-json-api/pull/440 )
12+ Amend query method signature on validated request to match Laravel request signature.
13+
14+ ### Fixed
15+ - [ #445 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/445 )
16+ Allow resource identifier to be zero.
17+ - [ #447 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/447 )
18+ Ensure deserialized attributes do not include relations if the relation has been sent as an attribute.
19+
520## [ 1.5.0] - 2019-10-14
621
722### Added
@@ -151,7 +166,7 @@ Refactored content negotiation so that multiple media types can be supported. Re
151166- Renamed a lot of classes in the ` Routing ` namespace. They are also marked as ` final ` because they
152167are not meant to be extended.
153168- Modified the abstract ` mount ` method that package providers use to add routes to an API.
154- Also added PHP 7 type-hinting to all methods in the abstract class.
169+ Also added PHP 7 type-hinting to all methods in the abstract class.
155170
156171### Fixed
157172- [ #265 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/265 )
@@ -201,7 +216,7 @@ some time.
201216- [ #277 ] ( https://github.com/cloudcreativity/laravel-json-api/pull/277 )
202217Eloquent adapter can now support soft-deleting, restoring and force-deleting resources by applying
203218a trait to the adapter. See the soft-deletes documentation chapter for details.
204- - [ #247 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/247 )
219+ - [ #247 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/247 )
205220New date time rule object to validate a JSON date string is a valid ISO 8601 date and time format.
206221- [ #261 ] ( https://github.com/cloudcreativity/laravel-json-api/pull/261 )
207222Package now supports the JSON API recommendation for asynchronous processing. See the
@@ -253,7 +268,7 @@ If a client sends a client-generated ID for a resource that does not support cli
253268` 403 Forbidden ` response will be sent, as defined in the JSON API spec.
254269
255270### Removed
256- - The deprecated ` Contracts\Store\AdapterInterface ` was removed. Use
271+ - The deprecated ` Contracts\Store\AdapterInterface ` was removed. Use
257272` Contracts\Adapter\ResourceAdapterInterface ` instead.
258273- The deprecated ` Adapter\HydratesAttributesTrait ` was removed.
259274- The ` Contracts\Http\Requests\RequestInterface ` was removed as it is no longer necessary (because the
@@ -326,7 +341,7 @@ at `2.0`. You should use the error interface/class from the `neomerx/jsonapi` pa
326341 - ` Utils/ErrorsAwareTrait ` and ` Contracts\Utils\ErrorsAwareInterface `
327342 - ` Utils/Pointers `
328343 - ` Utils/Replacer ` and ` Contracts\Utils\ReplacerInterface `
329- - The ` Contracts\Factories\FactoryInterface ` is deprecated and will be removed at ` 1.0 ` .
344+ - The ` Contracts\Factories\FactoryInterface ` is deprecated and will be removed at ` 1.0 ` .
330345You should type-hint ` Factories\Factory ` directly instead.
331346
332347## [ 1.0.0-beta.3] - 2018-09-21
@@ -422,7 +437,7 @@ allows schemas, adapters etc to be bound into the container rather than having t
422437classes.
423438
424439### Fixed
425- - [ #202 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/202 )
440+ - [ #202 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/202 )
426441When appending the schema and host on a request, the base URL is now also appended. This caters
427442for Laravel applications that are served from host sub-directories.
428443
@@ -447,7 +462,7 @@ contains the implementation that was previously on the Eloquent adapter.
447462can now be used when testing JSON API packages.
448463- Merged the two resolvers provided by this package into a single class.
449464- [ #176 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/176 )
450- When using * not-by-resource* resolution, the type of the class is now appended to the class name. E.g.
465+ When using * not-by-resource* resolution, the type of the class is now appended to the class name. E.g.
451466` App\JsonApi\Adapters\PostAdapter ` is now expected instead of ` App\JsonApi\Adapters\Post ` . The previous
452467behaviour can be maintained by setting the ` by-resource ` config option to the string ` false-0.x ` .
453468- The constructor dependencies for the ` Repositories\ErrorRepository ` have been simplified.
@@ -503,14 +518,14 @@ classes/traits are deprecated:
503518
504519## [ 1.0.0-alpha.1] - 2018-04-29
505520
506- As we are now only developing JSON API within Laravel applications, we have deprecated our framework agnostic
521+ As we are now only developing JSON API within Laravel applications, we have deprecated our framework agnostic
507522` cloudcreativity/json-api ` package. All the classes from that package have been merged into this package and
508523renamed to the ` CloudCreativity\LaravelJsonApi ` namespace. This will allow us to more rapidly develop this
509524Laravel package and simplify the code in subsequent releases.
510525
511526### Added
512527- New Eloquent relationship adapters allows full support for relationship endpoints.
513- - Message bags can now have their keys mapped and/or dasherized when converting them to JSON API errors
528+ - Message bags can now have their keys mapped and/or dasherized when converting them to JSON API errors
514529in the ` ErrorBag ` class.
515530- JSON API resource paths are now automatically converted to model relationship paths for eager loading in
516531the Eloquent adapter.
@@ -551,7 +566,7 @@ returned an empty array, `getFillable` would be used instead.
551566- The ` Schema\CreatesEloquentIdentities ` trait is deprecated.
552567
553568### Fixed
554- - [ #128 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/128 )
569+ - [ #128 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/128 )
555570Filter, sort and page parameters validation rules are excluded for resource requests for which those
556571parameters do not apply (create, read, update and delete).
557572- [ #92 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/92 )
0 commit comments