Skip to content

2.0.0

Choose a tag to compare

@dborsatto dborsatto released this 30 Oct 13:29
· 171 commits to master since this release

ATTENTION: This release contains breaking changes. Please take extra care when updating to this version. See the upgrade guide for more.

Added

  • Class Contentful\Core\File\ImageOptions now has a setPng8Bit method which will force the image to be returned as a 8-bit PNG.
  • Interface Contentful\Core\File\ProcessedFileInterface has been introduced, and can be used to identify assets that have already been processed and have a url property available.
  • The following interfaces have been added: AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.

Changed

  • Class Contentful\Core\Api\BaseClient no longer has abstract method getSdkVersion, now instead it requires getPackageName. The version of the SDK will be inferred automatically using that value.
  • Options array in Contentful\Core\Api\BaseClient::request now uses property host instead of baseUri.
  • Client objects now must declare a request method defined in ClientInterface.
  • ResourceArray now implements ResourceInterface.
  • Logic for querying the API has been refactored into the new Requester class.
  • Client methods getVersion, getPackageName, getSdkName, and getApiContentType are now static. [BREAKING]