Skip to content

Commit 8ff694b

Browse files
author
jordangarcia
committed
chore (release): Release 2.3.0
1 parent 03cd0b3 commit 8ff694b

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

packages/optimizely-sdk/CHANGELOG.MD

+20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.3.0] - November 14, 2018
8+
9+
### New Features
10+
* Allow sticky bucketing via passing in `attributes.$opt_experiment_bucket_map`, this more easily allows customers to do some async data fetching and ensure a user gets a specific variation.
11+
12+
```
13+
const userId = '123'
14+
const expId = '456'
15+
const variationId = '678'
16+
const userAttributes = {
17+
$opt_experiment_bucket_map: {
18+
[expId]: {
19+
variation_id: variationId
20+
}
21+
}
22+
}
23+
24+
var selectedVariationKey = optimizelyClient.activate('experiment-1', userId, userAttributes);
25+
```
26+
727
## [2.2.0] - September 26, 2018
828

929
### Fixed

packages/optimizely-sdk/lib/utils/enums/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ exports.CONTROL_ATTRIBUTES = {
141141

142142
exports.JAVASCRIPT_CLIENT_ENGINE = 'javascript-sdk';
143143
exports.NODE_CLIENT_ENGINE = 'node-sdk';
144-
exports.NODE_CLIENT_VERSION = '2.2.0';
144+
exports.NODE_CLIENT_VERSION = '2.3.0';
145145

146146
/*
147147
* Notification types for use with NotificationCenter

packages/optimizely-sdk/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/optimizely-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/optimizely-sdk",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "JavaScript SDK for Optimizely X Full Stack",
55
"main": "lib/index.node.js",
66
"browser": "lib/index.browser.js",

0 commit comments

Comments
 (0)