Skip to content

Commit 6bc0c7b

Browse files
chore(release): Preparing for 3.1.0 release (#174)
1 parent 1ca53d1 commit 6bc0c7b

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 3.1.0
2+
May 3rd, 2019
3+
4+
### New Features:
5+
- Introduced Decision notification listener to be able to record:
6+
- Variation assignments for users activated in an experiment.
7+
- Feature access for users.
8+
- Feature variable value for users.
9+
10+
### Bug Fixes:
11+
- Feature variable APIs return default variable value when featureEnabled property is false. ([#159](https://github.com/optimizely/php-sdk/pull/159))
12+
13+
### Deprecated
14+
- Activate notification listener is deprecated as of this release. Recommendation is to use the new Decision notification listener. Activate notification listener will be removed in the next major release.
15+
116
## 3.0.1
217
April 19th, 2019
318

src/Optimizely/Event/Builder/EventBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class EventBuilder
3838
/**
3939
* @const string Version of the Optimizely PHP SDK.
4040
*/
41-
const SDK_VERSION = '3.0.1';
41+
const SDK_VERSION = '3.1.0';
4242

4343
/**
4444
* @var string URL to send event to.

src/Optimizely/Notification/NotificationType.php

+15-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,23 @@
1818

1919
class NotificationType
2020
{
21-
// format is EVENT: list of parameters to callback.
21+
/*
22+
* Notification triggered when an impression event is sent to Optimizely.
23+
*
24+
* @deprecated since 3.1.0
25+
*/
2226
const ACTIVATE = "ACTIVATE:experiment, user_id, attributes, variation, event";
27+
28+
/*
29+
* Notification triggered when a decision is made in
30+
* the system i.e. user activation, feature access
31+
* or feature-variable value is retrieved.
32+
*/
2333
const DECISION = "DECISION:type, user_id, attributes, decision_info";
34+
35+
/*
36+
* Notification triggered when a conversion event is sent to Optimizely.
37+
*/
2438
const TRACK = "TRACK:event_key, user_id, attributes, event_tags, event";
2539

2640
public static function isNotificationTypeValid($notification_type)

tests/EventTests/EventBuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function setUp()
6868
]],
6969
'revision' => '15',
7070
'client_name' => 'php-sdk',
71-
'client_version' => '3.0.1',
71+
'client_version' => '3.1.0',
7272
'anonymize_ip'=> false,
7373
'enrich_decisions' => true,
7474
];

0 commit comments

Comments
 (0)