Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

v2.0-RC1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jenschude jenschude released this 13 Mar 14:41
· 1195 commits to main since this release

Bug 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

  • Cache: support PSR-16 cache implementations (c3ceac7), closes #297

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
  • Context doesn't extend Pimple\Container anymore

  • Pimple has been removed as a dependency