Repository navigation
2.0.0
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\ImageOptionsnow has asetPng8Bitmethod which will force the image to be returned as a 8-bit PNG. - Interface
Contentful\Core\File\ProcessedFileInterfacehas been introduced, and can be used to identify assets that have already been processed and have aurlproperty available. - The following interfaces have been added:
AssetInterface,ContentTypeInterface,EntryInterface,ClientInterface,ResourcePoolInterface.
Changed
- Class
Contentful\Core\Api\BaseClientno longer has abstract methodgetSdkVersion, now instead it requiresgetPackageName. The version of the SDK will be inferred automatically using that value. - Options array in
Contentful\Core\Api\BaseClient::requestnow uses propertyhostinstead ofbaseUri. - Client objects now must declare a
requestmethod defined inClientInterface. ResourceArraynow implementsResourceInterface.- Logic for querying the API has been refactored into the new
Requesterclass. - Client methods
getVersion,getPackageName,getSdkName, andgetApiContentTypeare now static. [BREAKING]