v2.0-RC1
Pre-releaseBug Fixes
- AssetDraft: correct type for custom field object (abc0afd)
- Customer: fix create email token request with TTL (8367ef6)
Code Refactoring
- OAuth: change access scope of getCacheAdapter method (c6b27ec)
- ProductSearch: disable markMatchingVariants by default (41711a8)
Features
BREAKING CHANGES
-
AssetDraft: AssetDraft requires CustomFieldObjectDraft instead of CustomFieldObject
Before:
$assetDraft = AssetDraft::of()->setCustom(CustomFieldObject::of());
After:
$assetDraft = AssetDraft::of()->setCustom(CustomFieldObjectDraft::of());
-
OAuth: Manager::getCacheAdapter() method scope has been changed from public to protected
-
ProductSearch: markMatchingVariants has been disabled by default
For performance reasons the markMatchingVariants flag has been disabled by default. In order to use markMatchingVariants feature please enable it explicit.
Before:
$request = ProductProjectionSearchRequest::of();
After:
$request = ProductProjectionSearchRequest::of()->markMatchingVariants(true);
-
PHP minimum version is now 5.6
-
Token caching is now using PSR-6 or PSR-16 cache adapters only.
Removed classes:- AbstractCacheAdapter
- ApcCacheAdapter
- ApcuCacheAdapter
- CacheAdapterInterface
- DoctrineCacheAdapter
- NullCacheAdapter
- PhpRedisCacheAdapter
Use an appropiate PSR-6 or PRS-16 cache adapter as a replacement. The SDK uses the cache\apcu-adapter as default or if available the cache\filesystem-adapter
-
Deprecations have been removed
- FileRequest
- use FileUploadRequest
- CustomerChangeNameAction
- use CustomerSetFirstNameAction, CustomerSetLastNameAction, CustomerSetMiddleNameAction or CustomerSetTitleAction
- ProductSetSkuNotStageableAction
- use ProductSetSkuAction
- FileRequest
-
Context doesn't extend Pimple\Container anymore
-
Pimple has been removed as a dependency