You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added facades for `DocumentFactory`, `DocumentParser`, `ItemHydrator`, `ResponseParser` and `TypeMapper`.
13
-
* Added `DocumentParserInterface` and `ResponseParserInterface` interfaces and implementations.
13
+
* Added `DocumentParserInterface` and `ResponseParserInterface` interfaces and implementations[#54](https://github.com/swisnl/json-api-client/pull/54).
14
14
15
15
### Changed
16
16
17
17
* The `TypeMapper` now checks if the class exists in the setter instead of the getter.
18
-
* The `ItemHydrator` now also hydrates the id if provided.
19
-
* Added `hasType`, `hasAttributes`, `hasRelationships` and `getRelations` to `ItemInterface`.
20
-
* Removed `canBeIncluded` and `getIncluded` from `ItemInterface` as the `DocumentFactory` is now responsible for gathering the included items.
21
-
* Renamed `getRelationship` to `getRelation`, `hasRelationship` to `hasRelation` and `removeRelationship` to `unsetRelation` in `Item`.
22
-
* Renamed/aligned some parameters in several relation methods in `Item`.
23
-
* Renamed namespace `Swis\JsonApi\Client\Traits` to `Swis\JsonApi\Client\Concerns`.
24
-
* Renamed namespace `Swis\JsonApi\Client\JsonApi` to `Swis\JsonApi\Client\Parsers`.
25
-
* Renamed `ServiceProvider::registerParser` (singular) to `ServiceProvider::registerParsers` (plural).
18
+
* The `ItemHydrator` now also hydrates the id if provided[#53](https://github.com/swisnl/json-api-client/pull/53).
19
+
* Added `hasType`, `hasAttributes`, `hasRelationships` and `getRelations` to `ItemInterface`[#53](https://github.com/swisnl/json-api-client/pull/53).
20
+
* Removed `canBeIncluded` and `getIncluded` from `ItemInterface` as the `DocumentFactory` is now responsible for gathering the included items[#53](https://github.com/swisnl/json-api-client/pull/53).
21
+
* Renamed `getRelationship` to `getRelation`, `hasRelationship` to `hasRelation` and `removeRelationship` to `unsetRelation` in `Item`[#53](https://github.com/swisnl/json-api-client/pull/53).
22
+
* Renamed/aligned some parameters in several relation methods in `Item`[#53](https://github.com/swisnl/json-api-client/pull/53).
23
+
* Renamed namespace `Swis\JsonApi\Client\Traits` to `Swis\JsonApi\Client\Concerns`[#53](https://github.com/swisnl/json-api-client/pull/53).
24
+
* Renamed namespace `Swis\JsonApi\Client\JsonApi` to `Swis\JsonApi\Client\Parsers`[#54](https://github.com/swisnl/json-api-client/pull/54).
25
+
* Renamed `ServiceProvider::registerParser` (singular) to `ServiceProvider::registerParsers` (plural)[#54](https://github.com/swisnl/json-api-client/pull/54).
26
26
27
27
### Removed
28
28
29
-
* Removed `CollectionDocumentBuilder` and `ItemDocumentBuilder` in favor of `DocumentFactory`.
30
-
* Removed `JsonApi\Parser` in favor of `JsonApi\DocumentParser` and `JsonApi\ResponseParser`.
29
+
* Removed `CollectionDocumentBuilder` and `ItemDocumentBuilder` in favor of `DocumentFactory`[#52](https://github.com/swisnl/json-api-client/pull/52).
30
+
* Removed `ParserInterface` in favor of `DocumentParserInterface` and `ResponseParserInterface`[#54](https://github.com/swisnl/json-api-client/pull/54).
31
31
32
32
## [0.18.0] - 2019-07-01
33
33
34
34
### Added
35
35
36
-
* The id of an item can be set/get using magic accessors just like the attributes.
36
+
* The id of an item can be set/get using magic accessors just like the attributes[#51](https://github.com/swisnl/json-api-client/pull/51).
37
37
38
38
### Changed
39
39
@@ -46,23 +46,23 @@ N.B. This is a breaking change and all calls to `deleteById` should simply be ch
46
46
47
47
### Added
48
48
49
-
* Added support for Laravel 5.8.
49
+
* Added support for Laravel 5.8[#50](https://github.com/swisnl/json-api-client/pull/50).
* Added `DocumentInterface::getResponse()` so every document instance can have its corresponding response. This allows access to the underlying response to check headers or status codes etc.
60
+
* Added `DocumentInterface::getResponse()` so every document instance can have its corresponding response. This allows access to the underlying response to check headers or status codes etc[#48](https://github.com/swisnl/json-api-client/pull/48).
61
61
* Added `ParserInterface::deserializeResponse($reponse)` to deserialize a `\Psr\Http\Message\ResponseInterface`.
62
62
63
63
### Changed
64
64
65
-
*`ClientInterface` must now return a `\Psr\Http\Message\ResponseInterface` for requests instead of our own (removed) `ResponseInterface`.
65
+
*`ClientInterface` must now return a `\Psr\Http\Message\ResponseInterface` for requests instead of our own (removed) `ResponseInterface`[#48](https://github.com/swisnl/json-api-client/pull/48).
66
66
N.B. This is a breaking change if you use the `Client` directly, the `DocumentClient` isn't affected.
67
67
* Changed namespace of error classes:
68
68
```
@@ -73,7 +73,7 @@ N.B. This is a breaking change if you use the `Client` directly, the `DocumentCl
73
73
74
74
### Removed
75
75
76
-
* Removed `ResponseInterface` and `Response` classes.
76
+
* Removed `ResponseInterface` and `Response` classes[#48](https://github.com/swisnl/json-api-client/pull/48).
0 commit comments