Skip to content

Releases: swisnl/json-api-client

0.7.4

20 Jun 08:23
Compare
Choose a tag to compare

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

01 Jun 12:02
Compare
Choose a tag to compare

Changed

  • Improved performance of JsonApi\Hydrator #18

0.7.2

17 May 09:12
Compare
Choose a tag to compare

Fixed

  • Fixed building the request with headers

0.7.1

16 May 15:13
Compare
Choose a tag to compare

Fixed

  • Corrected the path to the config file

0.7.0

11 May 14:00
4ca9fe6
Compare
Choose a tag to compare

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

06 Mar 10:26
Compare
Choose a tag to compare

Added

  • Added CHANGELOG.md

Changed

  • Changed package name in composer.json
  • Changed autodiscovery service provider in composer.json

0.5.0

06 Mar 10:16
Compare
Choose a tag to compare

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

0.4.0

16 Jan 09:41
bc195a5
Compare
Choose a tag to compare

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.