Skip to content

Commit 2ef6bb1

Browse files
author
Michael Ng
committed
chore(optimizely-sdk): Prepare for 3.2.2 release. (#350)
1 parent 88d87dd commit 2ef6bb1

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

packages/optimizely-sdk/CHANGELOG.MD

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ Changes that have landed but are not yet released.
99

1010
### New Features
1111
- Updated the `close` method to return a `Promise` representing the process of closing the instance. When `close` is called, any events waiting to be sent as part of a batched event request will be immediately batched and sent to the event dispatcher.
12-
- If any such requests were sent to the event dispatcher, `close` returns a `Promise` that fulfills after the event dispatcher calls the response callback for each request. Otherwise, `close` returns an immediately-fulfilled `Promise`.
13-
- The `Promise` returned from `close` is fulfilled with a result object containing `success` (boolean) and `reason` (string, only when success is `false`) properties. In the result object, `success` is `true` if all events in the queue at the time close was called were combined into requests, sent to the event dispatcher, and the event dispatcher called the callbacks for each request. `success` is false if an unexpected error was encountered during the close process.
12+
- If any such requests were sent to the event dispatcher, `close` returns a `Promise` that fulfills after the event dispatcher calls the response callback for each request. Otherwise, `close` returns an immediately-fulfilled `Promise`.
13+
- The `Promise` returned from `close` is fulfilled with a result object containing `success` (boolean) and `reason` (string, only when success is `false`) properties. In the result object, `success` is `true` if all events in the queue at the time close was called were combined into requests, sent to the event dispatcher, and the event dispatcher called the callbacks for each request. `success` is false if an unexpected error was encountered during the close process.
1414
- Added non-typed `getFeatureVariable` method ([#298](https://github.com/optimizely/javascript-sdk/pull/298)) as a more idiomatic approach to getting values of feature variables.
15-
- Typed `getFeatureVariable` methods will still be available for use.
15+
- Typed `getFeatureVariable` methods will still be available for use.
16+
17+
## [3.2.2] - August 20th, 2019
18+
19+
### Bug fixes
20+
- Dont use pendingEventsDispatcher with user defined eventDispatcher ([#289](https://github.com/optimizely/javascript-sdk/issues/289))
21+
Note: This was supposed to be released in 3.2.1 but did not make it into the release.
22+
- Updated lodash dependency to ^4.17.11 to address security vulnerabilities ([#296](https://github.com/optimizely/javascript-sdk/issues/296))
1623

1724
## [3.2.1] - July 1st, 2019
1825

packages/optimizely-sdk/lib/index.browser.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('javascript-sdk', function() {
148148
optlyInstance.onReady().catch(function() {});
149149

150150
assert.instanceOf(optlyInstance, Optimizely);
151-
assert.equal(optlyInstance.clientVersion, '3.2.1');
151+
assert.equal(optlyInstance.clientVersion, '3.2.2');
152152
});
153153

154154
it('should set the JavaScript client engine and version', function() {

packages/optimizely-sdk/lib/index.node.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('optimizelyFactory', function() {
9292
optlyInstance.onReady().catch(function() {});
9393

9494
assert.instanceOf(optlyInstance, Optimizely);
95-
assert.equal(optlyInstance.clientVersion, '3.2.1');
95+
assert.equal(optlyInstance.clientVersion, '3.2.2');
9696
});
9797

9898
describe('event processor configuration', function() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ exports.CONTROL_ATTRIBUTES = {
159159
exports.JAVASCRIPT_CLIENT_ENGINE = 'javascript-sdk';
160160
exports.NODE_CLIENT_ENGINE = 'node-sdk';
161161
exports.REACT_CLIENT_ENGINE = 'react-sdk';
162-
exports.NODE_CLIENT_VERSION = '3.2.1';
162+
exports.NODE_CLIENT_VERSION = '3.2.2';
163163

164164
exports.VALID_CLIENT_ENGINES = [
165165
exports.NODE_CLIENT_ENGINE,

packages/optimizely-sdk/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/optimizely-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/optimizely-sdk",
3-
"version": "3.2.1",
3+
"version": "3.2.2",
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)