All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- New class
Art4\JsonApiClient\Serializer\ArraySerializer
to create an array from anArt4\JsonApiClient\AccessInterface
- Support for PHP 5.5 dropped, PHP >=5.6 is now required
Art4\JsonApiClient\AccessInterface::asArray()
will be removed in v1.0, useArt4\JsonApiClient\Serializer\ArraySerializer::serialize()
instead
0.9.1 - 2017-12-21
- Change Code Style to PSR-2
- Tests in Travis for PHP 7.2 and nightly added
0.9 - 2017-06-06
- New method
Utils\Helper::parseResponseBody()
to parse a JSON API response body - New method
Utils\Helper::isValidResponseBody()
to validate a JSON API response body - New method
Utils\Helper::isValidRequestBody()
to validate a JSON API request body with optional item id
Utils\Helper::parse()
will be removed in v1.0, useUtils\Helper::parseResponseBody()
insteadUtils\Helper::isValid()
will be removed in v1.0, useUtils\Helper::isValidResponseBody()
instead
0.8.1 - 2017-06-01
- Fixed a bug in the decission if a
data
attribute is aResourceItem
orResourceIdentifier
0.8 - 2017-05-29
- New method
Utils\Helper::parseRequestBody()
to parse JSON API with optional item id - Run tests with Travis in PHP 7.1
- BREAKING: New method
Utils\ManagerInterface::getConfig()
to get a config value - BREAKING: New method
Utils\ManagerInterface::setConfig()
to set a config value
- BREAKING: Drop support for PHP 5.4
0.7 - 2016-11-24
- Update license to GPLv3
- BREAKING: Introducing the
ElementInterface
to seperate the parsing from the constructor - BREAKING: Rename
Art4\JsonApiClient\Resource\Collection
toArt4\JsonApiClient\ResourceCollection
- BREAKING: Rename
Art4\JsonApiClient\Resource\CollectionInterface
toArt4\JsonApiClient\ResourceCollectionInterface
- BREAKING: Rename
Art4\JsonApiClient\Resource\Identifier
toArt4\JsonApiClient\ResourceIdentifier
- BREAKING: Rename
Art4\JsonApiClient\Resource\IdentifierInterface
toArt4\JsonApiClient\ResourceIdentifierInterface
- BREAKING: Rename
Art4\JsonApiClient\Resource\IdentifierCollection
toArt4\JsonApiClient\ResourceIdentifierCollection
- BREAKING: Rename
Art4\JsonApiClient\Resource\IdentifierCollectionInterface
toArt4\JsonApiClient\ResourceIdentifierCollectionInterface
- BREAKING: Rename
Art4\JsonApiClient\Resource\Item
toArt4\JsonApiClient\ResourceItem
- BREAKING: Rename
Art4\JsonApiClient\Resource\ItemInterface
toArt4\JsonApiClient\ResourceItemInterface
- BREAKING: Rename
Art4\JsonApiClient\Resource\ItemLink
toArt4\JsonApiClient\ResourceItemLink
- BREAKING: Rename
Art4\JsonApiClient\Resource\ItemLinkInterface
toArt4\JsonApiClient\ResourceItemLinkInterface
- BREAKING: Rename
Art4\JsonApiClient\Resource\NullResource
toArt4\JsonApiClient\ResourceNull
- BREAKING: Rename
Art4\JsonApiClient\Resource\NullResourceInterface
toArt4\JsonApiClient\ResourceNullInterface
- BREAKING: Remove the
Resource\ResourceInterface
and its methods
0.6.3 - 2016-04-26
- Prevent PHP bug in json_decode(), if option JSON_BIGINT_AS_STRING is not implemented, see #28
0.6.2 - 2016-04-15
- links in document object can contain objects, see #26
0.6.1 - 2015-12-28
- New
Resource\ItemLink
object; was seperated fromLink
object
- links and pagination are now parsed spec conform, see #23
0.6 - 2015-11-06
Helper::isValid()
checks if a string is valid JSON API
- BREAKING: pagination links moved from
Pagination
toDocumentLink
andRelationshipLink
- BREAKING: object
Pagination
was removed
0.5 - 2015-10-12
- Dot-notation support in
AccessInterface::has()
andAccessInterface::get()
- Every object has now his own interface, eg.
DocumentInterface
,MetaInterface
orResource\ItemInterface
- BREAKING: object
PaginationLink
was renamed toPagination
- BREAKING: nearly all classes was set to
final
and can't be extended anymore. Implement the new interfaces instead. See also #18.
0.4 - 2015-09-01
- Introduce
Utils\Manager
andUtils\Factory
for injecting own classes into the client - Every object inside the document implements
AccessInterface
AccessInterface
supportsasArray()
for transforming an object into an array- A
Resource\IdentifierCollection
that is either empty or holds onlyResource\Identifier
objects
Relationship::get('data')
returns aResource\IdentifierCollection
object instead of an array
0.3 - 2015-08-24
- Better documentation
Document::get('data')
returns always aResourceInterface
objectDocument::get('error')
returns aErrorCollection
objectDocument::get('included')
returns aResource\Collection
object\Art4\JsonApiClient\Exception\ValidationException
will be thrown instead ofInvalidArgumentException
\Art4\JsonApiClient\Exception\AccessException
will be thrown instead ofRuntimeException
0.2 - 2015-08-12
- Documentation, see folder docs/
- Every object has got a
get()
andhas()
method for better value access - Every object can list his own keys with
keyKeys()
- All old getter like
getMeta()
orhasId()
were removed
- Validator fits nearly 100% specification
- Full test coverage