0.19.0
This is a big release to improve the overall code quality and align some inconsistencies. Please note it includes several breaking changes so read through all changes carefully when upgrading!
Added
- Added
DocumentFactory#52. - Added facades for
DocumentFactory,DocumentParser,ItemHydrator,ResponseParserandTypeMapper. - Added
DocumentParserInterfaceandResponseParserInterfaceinterfaces and implementations #54.
Changed
- The
TypeMappernow checks if the class exists in the setter instead of the getter. - The
ItemHydratornow also hydrates the id if provided #53. - Added
hasType,hasAttributes,hasRelationshipsandgetRelationstoItemInterface#53. - Removed
canBeIncludedandgetIncludedfromItemInterfaceas theDocumentFactoryis now responsible for gathering the included items #53. - Renamed
getRelationshiptogetRelation,hasRelationshiptohasRelationandremoveRelationshiptounsetRelationinItem#53. - Renamed/aligned some parameters in several relation methods in
Item#53. - Renamed namespace
Swis\JsonApi\Client\TraitstoSwis\JsonApi\Client\Concerns#53. - Renamed namespace
Swis\JsonApi\Client\JsonApitoSwis\JsonApi\Client\Parsers#54. - Renamed
ServiceProvider::registerParser(singular) toServiceProvider::registerParsers(plural) #54.