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

Commit 92f3977

Browse files
author
Jens Schulze
committed
docs(Changelog): update changelog and client version
1 parent 8f71f0e commit 92f3977

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
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+
173
<a name="1.7.0"></a>
274
# [1.7.0](https://github.com/commercetools/commercetools-php-sdk/compare/v1.6.1...v1.7.0) (2017-03-02)
375

src/AbstractHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
abstract class AbstractHttpClient
1616
{
17-
const VERSION = '2.0.0-dev';
17+
const VERSION = '2.0.0-RC1';
1818

1919
/**
2020
* @var AdapterInterface

tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commercetools-php-sdk-changelog",
3-
"version": "1.7.0",
3+
"version": "2.0.0-RC1",
44
"description": "commercetools PHP SDK changelog generator package description",
55
"homepage": "https://github.com/commercetools/commercetools-php-sdk",
66
"bugs": "https://github.com/commercetools/commercetools-php-sdk/issues",

0 commit comments

Comments
 (0)