Releases: swisnl/json-api-client
0.7.4
Fixed
- Reverted the behaviour of handling duplicate items back to what it was in <= 0.7.2. This change in behaviour was introduced in the last performance update (0.7.3).
N.B. This change will only affect you if you parse documents with duplicate items, which violates the JSON API spec:
A compound document MUST NOT include more than one resource object for each type and id pair.
0.7.3
0.7.2
0.7.1
0.7.0
Update art4/json-api-client to latest version
The following classes are changed in some arguments and some method returns, if you extended or directly use \Swis\JsonApi\Client\JsonApi\Hydrator
or \Swis\JsonApi\Client\JsonApi\Parser
please check your code.
\Art4\JsonApiClient\Resource\CollectionInterface -> \Art4\JsonApiClient\ResourceCollectionInterface
\Art4\JsonApiClient\Resource\ItemInterface -> \Art4\JsonApiClient\ResourceItemInterface
\Art4\JsonApiClient\Resource\IdentifierCollection -> \Art4\JsonApiClient\ResourceIdentifierCollection
\Art4\JsonApiClient\Resource\Identifier -> \Art4\JsonApiClient\ResourceIdentifier
\Art4\JsonApiClient\Resource\Collection -> \Art4\JsonApiClient\ResourceCollection
0.6.0
0.5.0
Added
- Added a proper README with instructions.
Changed
- Updated namespace to
Swis\JsonApi\Client
for consistency. - Split service provider binds so overwriting is easier.
Removed
- Extracted fixtures client to swisnl/php-http-fixture-client and swisnl/guzzle-fixture-handler
- Removed resources as it was redundant.
0.4.0
Refactored to use php-http/httpplug
Refactored to use php-http/httpplug instead of Guzzle so the library doesn't depend on a specific http client implementation.
This does change how you customize the ServiceProvider, just include an adapter for the client you want to use and the library uses autodiscovery to find the correct adapter/client. It also uses a MessageFactory for creating Requests and Response objects.
So for example, if you want to use Guzzle, just composer require php-http/guzzle6-adapter
, and all should be swell.
In order to have a working mock client for testing you now need to include php-http/mock-client. Which is an easy way to mock requests.