Skip to content

0.7.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@realityking realityking released this 06 Apr 12:16
· 495 commits to master since this release
0.7.0-beta

ATTENTION: This release contains breaking changes. Please take extra care when updating to this version.

Added

  • Added support for the webp format in the Images API.
  • Introduced RateLimitExceededException, InvalidQueryException and AccessTokenInvalidException for more specific error handling. [BREAKING]
  • Allow injecting a custom Guzzle instance into Client.
  • Allow fetching content in a single locale by adding the locale code to the query. [BREAKING]
    MIGRATION: To retain the old behavior set the default locale to '*'' when creating the client. This could look
    like: new Client($token, $spaceID, false, null, ['defaultLocale => '*'])
  • Allow setting the locale in which you work when creating the client.
  • Allow overriding the URI used to connect with the Contentful API.
  • The select operator can now be specified on queries. Thanks @Haehnchen.
  • Support for the all operator and passing arrays as $value in Query::where().
  • Support for ordering by multiple fields.
  • The space metadata and the content types can now be cached with a CLI command.
  • Support for caching the Space and Content Types. The cache has to be manually warmed and cleared.

Changed

  • Changed the behavior of getting an array of links to not throw an exception when one of them has been deleted from the space. (#19)
  • Removed the caching of Asset and Entry instances. [BREAKING]
  • Changed the internal data format from object to array. This should make no observable difference to the public API.
  • Moved all Exception classes to their own namespace. [BREAKING]
  • Changed the signature of the constructor of Contentful\Delivery\Client. Several options are now in an options array. [BREAKING]
  • The Sync API can now also be used with the Preview API. Only initial syncs are supported.
  • Dist zip files no longer include the tests directory. If you need them use composer install --prefer-source.

Removed

  • Dropped BearerToken to make it easier to inject custom Guzzle instances. Thanks @Haehnchen. [BREAKING]
  • The class generator has been removed. It was unusable.

Fixed

  • Assets that have no title would throw an uncaught exception.
  • Handling of missing values for a locale in Assets. Solved by implementing fallback locales for Assets too. (#38)
  • Fields that have the literal value null are now treated like they don't exist. Previously they might have causes a
    fatal error. Note: This does not 100% match the behaviour of the Contentful API.
  • The error message for Query::setLimit was incorrect.
  • Allow accessing fields where the first letter of the ID is capitalized. (#68)