Skip to content

Commit da9150b

Browse files
committed
[FSSDK-10843] prepare for release 6.0.0
1 parent 8feb1c0 commit da9150b

File tree

8 files changed

+29
-12
lines changed

8 files changed

+29
-12
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [6.0.0] - November 5, 2024
9+
10+
### Breaking Changes
11+
12+
- VUID is now opt-in instead of being automatically generated ([#950](https://github.com/optimizely/javascript-sdk/pull/950), [#951](https://github.com/optimizely/javascript-sdk/pull/951), [#954](https://github.com/optimizely/javascript-sdk/pull/954))
13+
14+
### New Features
15+
16+
- User Profile Service calls are batched in decideAll and decideForKeys methods ([#953](https://github.com/optimizely/javascript-sdk/pull/953))
17+
18+
### Bug Fixes
19+
20+
- When "activate" is called with a rollout experiment key (not ab-test), "invalid experiment key" is returned ([#953](https://github.com/optimizely/javascript-sdk/pull/953))
21+
22+
823
## [5.3.4] - Jun 28, 2024
924

1025
### Changed

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.4');
196+
assert.equal(optlyInstance.clientVersion, '6.0.0');
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.4');
79+
assert.equal(optlyInstance.clientVersion, '6.0.0');
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.4');
93+
assert.equal(optlyInstance.clientVersion, '6.0.0');
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
@@ -222,7 +222,7 @@ export const NODE_CLIENT_ENGINE = 'node-sdk';
222222
export const REACT_CLIENT_ENGINE = 'react-sdk';
223223
export const REACT_NATIVE_CLIENT_ENGINE = 'react-native-sdk';
224224
export const REACT_NATIVE_JS_CLIENT_ENGINE = 'react-native-js-sdk';
225-
export const CLIENT_VERSION ='5.3.4'
225+
export const CLIENT_VERSION ='6.0.0'
226226

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

package-lock.json

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/optimizely-sdk",
3-
"version": "5.3.4",
3+
"version": "6.0.0",
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",
@@ -94,7 +94,7 @@
9494
},
9595
"license": "Apache-2.0",
9696
"engines": {
97-
"node": ">=14.0.0"
97+
"node": ">=16.0.0"
9898
},
9999
"keywords": [
100100
"optimizely"
@@ -160,7 +160,6 @@
160160
"webpack": "^5.74.0"
161161
},
162162
"peerDependencies": {
163-
"@babel/runtime": "^7.0.0",
164163
"@react-native-async-storage/async-storage": "^1.2.0",
165164
"@react-native-community/netinfo": "^11.3.2",
166165
"react-native-get-random-values": "^1.11.0",

tests/index.react_native.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('javascript-sdk/react-native', () => {
9393

9494
expect(optlyInstance).toBeInstanceOf(Optimizely);
9595
// @ts-ignore
96-
expect(optlyInstance.clientVersion).toEqual('5.3.4');
96+
expect(optlyInstance.clientVersion).toEqual('6.0.0');
9797
});
9898

9999
it('should set the React Native JS client engine and javascript SDK version', () => {

0 commit comments

Comments
 (0)