8000 prepare for version 5.3.2 · optimizely/javascript-sdk@345d597 · GitHub
[go: up one dir, main page]

Skip to content

Commit 345d597

Browse files
prepare for version 5.3.2
1 parent 01b50a2 commit 345d597

8 files changed

+134
-94
lines changed

CHANGELOG.md

Lines changed: 117 additions & 77 deletions
Large diffs are not rendered by default.

lib/index.browser.tests.js

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

195195
assert.instanceOf(optlyInstance, Optimizely);
196-
assert.equal(optlyInstance.clientVersion, '5.3.1');
196+
assert.equal(optlyInstance.clientVersion, '5.3.2');
197197
});
198198

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

lib/index.lite.tests.js

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

7878
assert.instanceOf(optlyInstance, Optimizely);
79-
assert.equal(optlyInstance.clientVersion, '5.3.1');
79+
assert.equal(optlyInstance.clientVersion, '5.3.2');
8080
});
8181
});
8282
});

lib/index.node.tests.js

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

9292
assert.instanceOf(optlyInstance, Optimizely);
93-
assert.equal(optlyInstance.clientVersion, '5.3.1');
93+
assert.equal(optlyInstance.clientVersion, '5.3.2');
9494
});
9595

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

lib/utils/enums/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export const NODE_CLIENT_ENGINE = 'node-sdk';
221221
export const REACT_CLIENT_ENGINE = 'react-sdk';
222222
export const REACT_NATIVE_CLIENT_ENGINE = 'react-native-sdk';
223223
export const REACT_NATIVE_JS_CLIENT_ENGINE = 'react-native-js-sdk';
224-
export const CLIENT_VERSION = '5.3.1';
224+
export const CLIENT_VERSION = '5.3.2';
225225

226226
export const DECISION_NOTIFICATION_TYPES = {
227227
AB_TEST: 'ab-test',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "5.3.1",
3+
"version": "5.3.2",
44
"description": "JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts",
55
"module": "dist/optimizely.browser.es.js",
66
"main": "dist/optimizely.node.min.js",

tests/index.react_native.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ describe('javascript-sdk/react-native', () => {
4545
});
4646

4747
describe('createInstance', () => {
48-
var fakeErrorHandler = { handleError: function() {} };
49-
var fakeEventDispatcher = { dispatchEvent: function() {} };
48+
const fakeErrorHandler = { handleError: function() {} };
49+
const fakeEventDispatcher = { dispatchEvent: function() {} };
5050
// @ts-ignore
51-
var silentLogger;
51+
let silentLogger;
5252

5353
beforeEach(() => {
5454
// @ts-ignore
@@ -65,7 +65,7 @@ describe('javascript-sdk/react-native', () => {
6565

6666
it('should not throw if the provided config is not valid', () => {
6767
expect(function() {
68-
var optlyInstance = optimizelyFactory.createInstance({
68+
const optlyInstance = optimizelyFactory.createInstance({
6969
datafile: {},
7070
// @ts-ignore
7171
logger: silentLogger,
@@ -77,7 +77,7 @@ describe('javascript-sdk/react-native', () => {
7777
});
7878

7979
it('should create an instance of optimizely', () => {
80-
var optlyInstance = optimizelyFactory.createInstance({
80+
const optlyInstance = optimizelyFactory.createInstance({
8181
datafile: {},
8282
errorHandler: fakeErrorHandler,
8383
eventDispatcher: fakeEventDispatcher,
@@ -90,11 +90,11 @@ describe('javascript-sdk/react-native', () => {
9090

9191
expect(optlyInstance).toBeInstanceOf(Optimizely);
9292
// @ts-ignore
93-
expect(optlyInstance.clientVersion).toEqual('5.3.1');
93+
expect(optlyInstance.clientVersion).toEqual('5.3.2');
9494
});
9595

9696
it('should set the React Native JS client engine and javascript SDK version', () => {
97-
var optlyInstance = optimizelyFactory.createInstance({
97+
const optlyInstance = optimizelyFactory.createInstance({
9898
datafile: {},
9999
errorHandler: fakeErrorHandler,
100100
eventDispatcher: fakeEventDispatcher,
@@ -111,7 +111,7 @@ describe('javascript-sdk/react-native', () => {
111111
});
112112

113113
it('should allow passing of "react-sdk" as the clientEngine and convert it to "react-native-sdk"', () => {
114-
var optlyInstance = optimizelyFactory.createInstance({
114+
const optlyInstance = optimizelyFactory.createInstance({
115115
clientEngine: 'react-sdk',
116116
datafile: {},
117117
errorHandler: fakeErrorHandler,
@@ -155,7 +155,7 @@ describe('javascript-sdk/react-native', () => {
155155
});
156156

157157
it('should call logging.setLogHandler with the supplied logger', () => {
158-
var fakeLogger = { log: function() {} };
158+
const fakeLogger = { log: function() {} };
159159
optimizelyFactory.createInstance({
160160
datafile: testData.getTestProjectConfig(),
161161
// @ts-ignore
@@ -168,7 +168,7 @@ describe('javascript-sdk/react-native', () => {
168168

169169
describe('event processor configuration', () => {
170170
// @ts-ignore
171-
var eventProcessorSpy;
171+
let eventProcessorSpy;
172172
beforeEach(() => {
173173
eventProcessorSpy = jest.spyOn(eventProcessor, 'createEventProcessor');
174174
});

0 commit comments

Comments
 (0)
0