|
| 1 | +<a name="2.0.0-RC1"></a> |
| 2 | +# [2.0.0-RC1](https://github.com/commercetools/commercetools-php-sdk/compare/v1.7.0...v2.0.0-RC1) (2017-03-13) |
| 3 | + |
| 4 | + |
| 5 | +### Bug Fixes |
| 6 | + |
| 7 | +* **AssetDraft:** correct type for custom field object ([abc0afd](https://github.com/commercetools/commercetools-php-sdk/commit/abc0afd)) |
| 8 | +* **Customer:** fix create email token request with TTL ([8367ef6](https://github.com/commercetools/commercetools-php-sdk/commit/8367ef6)) |
| 9 | + |
| 10 | +### Code Refactoring |
| 11 | + |
| 12 | +* **OAuth:** change access scope of getCacheAdapter method ([c6b27ec](https://github.com/commercetools/commercetools-php-sdk/commit/c6b27ec)) |
| 13 | +* **ProductSearch:** disable markMatchingVariants by default ([41711a8](https://github.com/commercetools/commercetools-php-sdk/commit/41711a8)) |
| 14 | + |
| 15 | +### Features |
| 16 | + |
| 17 | +* **Cache:** support PSR-16 cache implementations ([c3ceac7](https://github.com/commercetools/commercetools-php-sdk/commit/c3ceac7)), closes [#297](https://github.com/commercetools/commercetools-php-sdk/issues/297) |
| 18 | + |
| 19 | + |
| 20 | +### BREAKING CHANGES |
| 21 | + |
| 22 | +* AssetDraft: AssetDraft requires CustomFieldObjectDraft instead of CustomFieldObject |
| 23 | + |
| 24 | + Before: |
| 25 | + |
| 26 | + ``` |
| 27 | + $assetDraft = AssetDraft::of()->setCustom(CustomFieldObject::of()); |
| 28 | + ``` |
| 29 | + |
| 30 | + After: |
| 31 | + |
| 32 | + ``` |
| 33 | + $assetDraft = AssetDraft::of()->setCustom(CustomFieldObjectDraft::of()); |
| 34 | + ``` |
| 35 | +* OAuth: Manager::getCacheAdapter() method scope has been changed from public to protected |
| 36 | +* ProductSearch: markMatchingVariants has been disabled by default |
| 37 | + |
| 38 | + For performance reasons the markMatchingVariants flag has been disabled by default. In order to use markMatchingVariants feature please enable it explicit. |
| 39 | + |
| 40 | + Before: |
| 41 | + ``` |
| 42 | + $request = ProductProjectionSearchRequest::of(); |
| 43 | + ``` |
| 44 | + |
| 45 | + After: |
| 46 | + ``` |
| 47 | + $request = ProductProjectionSearchRequest::of()->markMatchingVariants(true); |
| 48 | + ``` |
| 49 | + |
| 50 | +* PHP minimum version is now 5.6 |
| 51 | +* Token caching is now using [PSR-6](https://packagist.org/providers/psr/cache-implementation) or [PSR-16](https://packagist.org/providers/psr/simple-cache-implementation) cache adapters only. |
| 52 | + Removed classes: |
| 53 | + - AbstractCacheAdapter |
| 54 | + - ApcCacheAdapter |
| 55 | + - ApcuCacheAdapter |
| 56 | + - CacheAdapterInterface |
| 57 | + - DoctrineCacheAdapter |
| 58 | + - NullCacheAdapter |
| 59 | + - PhpRedisCacheAdapter |
| 60 | + |
| 61 | + Use an appropiate PSR-6 or PRS-16 cache adapter as a replacement. The SDK uses the [cache\apcu-adapter](https://packagist.org/packages/cache/apcu-adapter) as default or if available the [cache\filesystem-adapter](https://packagist.org/packages/cache/filesystem-adapter) |
| 62 | +* Deprecations have been removed |
| 63 | + - FileRequest |
| 64 | + - use FileUploadRequest |
| 65 | + - CustomerChangeNameAction |
| 66 | + - use CustomerSetFirstNameAction, CustomerSetLastNameAction, CustomerSetMiddleNameAction or CustomerSetTitleAction |
| 67 | + - ProductSetSkuNotStageableAction |
| 68 | + - use ProductSetSkuAction |
| 69 | +* Context doesn't extend Pimple\Container anymore |
| 70 | +* Pimple has been removed as a dependency |
| 71 | + |
| 72 | + |
1 | 73 | <a name="1.7.0"></a> |
2 | 74 | # [1.7.0](https://github.com/commercetools/commercetools-php-sdk/compare/v1.6.1...v1.7.0) (2017-03-02) |
3 | 75 |
|
|
0 commit comments