Skip to content

Commit 71fc1a8

Browse files
committed
Merge branch 'release/1.6.0'
2 parents e2a9f35 + cd4a792 commit 71fc1a8

File tree

449 files changed

+547
-480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+547
-480
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ matrix:
3636
env:
3737
- LARAVEL_VERSION=^6.0
3838
- PHPUNIT_VERSION=^8.0
39+
- php: "7.4"
40+
env:
41+
- LARAVEL_VERSION=5.8.*
42+
- PHPUNIT_VERSION=^7.0
43+
- php: "7.4"
44+
env:
45+
- LARAVEL_VERSION=^6.0
46+
- PHPUNIT_VERSION=^8.0
3947

4048
install:
4149
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n

CHANGELOG.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
All 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
152167
are 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)
202217
Eloquent adapter can now support soft-deleting, restoring and force-deleting resources by applying
203218
a 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)
205220
New 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)
207222
Package 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`.
330345
You 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
422437
classes.
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)
426441
When appending the schema and host on a request, the base URL is now also appended. This caters
427442
for Laravel applications that are served from host sub-directories.
428443

@@ -447,7 +462,7 @@ contains the implementation that was previously on the Eloquent adapter.
447462
can 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
452467
behaviour 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
508523
renamed to the `CloudCreativity\LaravelJsonApi` namespace. This will allow us to more rapidly develop this
509524
Laravel 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
514529
in the `ErrorBag` class.
515530
- JSON API resource paths are now automatically converted to model relationship paths for eager loading in
516531
the 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)
555570
Filter, sort and page parameters validation rules are excluded for resource requests for which those
556571
parameters do not apply (create, read, update and delete).
557572
- [#92](https://github.com/cloudcreativity/laravel-json-api/issues/92)

config/json-api-errors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

database/migrations/2018_10_23_000001_create_client_jobs_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

resources/lang/en/errors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

resources/lang/en/validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Adapter/AbstractRelationshipAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Adapter/AbstractResourceAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2019 Cloud Creativity Limited
4+
* Copyright 2020 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/Adapter/Concerns/FindsManyResources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019 Cloud Creativity Limited
3+
* Copyright 2020 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)