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

Commit 249e64f

Browse files
authored
chore: Prepare for release 3.0.0-rc2 (optimizely#192)
1 parent 6f0b6a4 commit 249e64f

File tree

4 files changed

+1407
-1386
lines changed

4 files changed

+1407
-1386
lines changed

packages/optimizely-sdk/CHANGELOG.MD

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,33 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
Changes that have landed but are not yet released.
99

10+
## [3.0.0-rc2] - November 16, 2018
11+
1012
### Breaking Changes
1113

12-
Drops `window.optimizelyClient` from the bundled build ([#189](https://github.com/optimizely/javascript-sdk/pull/189)).
14+
* Drops `window.optimizelyClient` from the bundled build ([#189](https://github.com/optimizely/javascript-sdk/pull/189)).
15+
16+
### New Features
17+
* 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 ([#179](https://github.com/optimizely/javascript-sdk/pull/179)).
18+
19+
```
20+
const userId = '123'
21+
const expId = '456'
22+
const variationId = '678'
23+
const userAttributes = {
24+
$opt_experiment_bucket_map: {
25+
[expId]: {
26+
variation_id: variationId
27+
}
28+
}
29+
}
30+
31+
var selectedVariationKey = optimizelyClient.activate('experiment-1', userId, userAttributes);
32+
```
1333

1434
### Fixes
15-
- fix(bundling): Publish the unminified UMD bundle along with the minified one. ([#187](https://github.com/optimizely/javascript-sdk/pull/187))
35+
* `setForcedVariation` treats empty variation key as invalid and does not reset variation. ([#185](https://github.com/optimizely/javascript-sdk/pull/185))
36+
* Publish the unminified UMD bundle along with the minified one. ([#187](https://github.com/optimizely/javascript-sdk/pull/187))
1637

1738
## [3.0.0-rc] - November 6, 2018
1839

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ exports.CONTROL_ATTRIBUTES = {
142142

143143
exports.JAVASCRIPT_CLIENT_ENGINE = 'javascript-sdk';
144144
exports.NODE_CLIENT_ENGINE = 'node-sdk';
145-
exports.NODE_CLIENT_VERSION = '3.0.0-rc';
145+
exports.NODE_CLIENT_VERSION = '3.0.0-rc2';
146146

147147
/*
148148
* Notification types for use with NotificationCenter

0 commit comments

Comments
 (0)