Releases: swisnl/json-api-client
Releases · swisnl/json-api-client
0.12.1
0.12.0
Added
Changed
- Add headers to request methods in
DocumentClientInterface
. #34
N.B. This is a breaking change if you implement the interface yourself or extend theDocumentClient
. Repository
doesn't throw exceptions anymore. #41
N.B. This is a breaking change if you catchDocumentNotFoundException
orDocumentTypeException
. If you would like the old behaviour, you can simply extend theRepository
and implement it yourself.- A HasOne or MorphTo relation do not set a
[relationship]_id
field on the parent when associating a related item. #42
Removed
- Removed obsolete
ItemDocumentSerializer
in favor ofJsonSerializable
.
N.B. This is a breaking change if you use this class directly, construct theDocumentClient
yourself or have overwritten\Swis\JsonApi\Client\Providers\ServiceProvider::registerClients
. TheItemDocument
can now be serialized usingjson_encode
. - Removed obsolete
DocumentNotFoundException
andDocumentTypeException
. #41
N.B. This is a breaking change if you catch these exceptions.
Fixed
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
This release includes breaking changes to the items. EloquentItem
is removed and JenssegersItem
is renamed to simply Item
. Please update your import statements to reflect these changes.
Changed
- Refactored name(space) of
\Swis\JsonApi\Client\Items\JenssegersItem
to\Swis\JsonApi\Client\Item
as we only have one item now. #21