You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/optimizely-sdk/CHANGELOG.MD
+60
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,66 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
## [Unreleased]
8
8
Changes that have landed but are not yet released.
9
9
10
+
## [3.2.0] - May 30th, 2019
11
+
12
+
### New Features
13
+
14
+
- Added support for automatic datafile management ([#261](https://github.com/optimizely/javascript-sdk/pull/261)), ([#266](https://github.com/optimizely/javascript-sdk/pull/266)), ([#267](https://github.com/optimizely/javascript-sdk/pull/267)), ([#268](https://github.com/optimizely/javascript-sdk/pull/268)), ([#270](https://github.com/optimizely/javascript-sdk/pull/270)), ([#272](https://github.com/optimizely/javascript-sdk/pull/272))
15
+
- To use automatic datafile management, include `sdkKey` as a string property in the options object you pass to `createInstance`.
16
+
- When sdkKey is provided, the SDK instance will download the datafile associated with that sdkKey immediately upon construction. When the download completes, the SDK instance will update itself to use the downloaded datafile.
17
+
- Use the `onReady` method to wait until the download is complete and the SDK is ready to use.
18
+
- Customize datafile management behavior by passing a `datafileOptions` object within the options you pass to `createInstance`.
19
+
- Enable automatic updates by passing `autoUpdate: true`. Periodically (on the provided update interval), the SDK instance will download the datafile and update itself. Use this to ensure that the SDK instance is using a fresh datafile reflecting changes recently made to your experiment or feature configuration.
20
+
- Add a notification listener for the `OPTIMIZELY_CONFIG_UPDATE` notification type to be notified when an instance updates its Optimizely config after obtaining a new datafile.
21
+
- Stop active downloads and cancel recurring downloads by calling the `close` method
22
+
23
+
#### Create an instance with datafile management enabled
// optimizelyClientInstance has updated its Optimizely config
56
+
},
57
+
);
58
+
// Stop automatic updates - optimizelyClientInstance will use whatever datafile it currently has from now on
59
+
optimizelyClientInstance.close();
60
+
```
61
+
62
+
### Changed
63
+
- Forced variation logic has been moved from the project config module to the decision service. Prefixes for forced-variation-related log messages will reflect this change ([#261](https://github.com/optimizely/javascript-sdk/pull/261)).
64
+
- Update TypeScript definitions to account for new methods (`onReady`, `close`) and new properties on object accepted by createInstance (`datafileOptions`, `sdkKey`), ([#263](https://github.com/optimizely/javascript-sdk/pull/263)), ([#278](https://github.com/optimizely/javascript-sdk/pull/278))
65
+
- Allow react-sdk to be passed in as `clientEngine` ([#279](https://github.com/optimizely/javascript-sdk/pull/279))
66
+
67
+
### Bug Fixes:
68
+
- Add logging message for `optimizely.track()` ([#281](https://github.com/optimizely/javascript-sdk/pull/281))
0 commit comments