From fa2d89c146ce6e34896e6017a88971fee320df2b Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:45:09 +0600 Subject: [PATCH 1/2] [FSSDK-11938] release prep --- CHANGELOG.md | 9 +++++++++ lib/index.browser.tests.js | 2 +- lib/index.lite.tests.js | 2 +- lib/index.node.tests.js | 2 +- lib/utils/enums/index.ts | 2 +- package-lock.json | 2 +- package.json | 2 +- tests/index.react_native.spec.ts | 2 +- 8 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abbb80136..9be938dad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [5.4.0] - Oct 13, 2025 + +### Changed +- Added `customHeaders` option to `datafileOptions` for passing custom HTTP headers in datafile requests ([#1092](https://github.com/optimizely/javascript-sdk/pull/1092)) +### Bug Fixes +- Fix the EventTags type to allow event properties ([#1040](https://github.com/optimizely/javascript-sdk/pull/1040)) +- Fix typo in event.experimentIds field in project config ([#1088](https://github.com/optimizely/javascript-sdk/pull/1088)) + + ## [5.3.5] - Jan 29, 2025 ### Bug Fixes diff --git a/lib/index.browser.tests.js b/lib/index.browser.tests.js index a01e60ef0..4bd592e8d 100644 --- a/lib/index.browser.tests.js +++ b/lib/index.browser.tests.js @@ -193,7 +193,7 @@ describe('javascript-sdk (Browser)', function() { optlyInstance.onReady().catch(function() {}); assert.instanceOf(optlyInstance, Optimizely); - assert.equal(optlyInstance.clientVersion, '5.3.5'); + assert.equal(optlyInstance.clientVersion, '5.4.0'); }); it('should set the JavaScript client engine and version', function() { diff --git a/lib/index.lite.tests.js b/lib/index.lite.tests.js index 5eaaf80cc..7b184299c 100644 --- a/lib/index.lite.tests.js +++ b/lib/index.lite.tests.js @@ -76,7 +76,7 @@ describe('optimizelyFactory', function() { optlyInstance.onReady().catch(function() {}); assert.instanceOf(optlyInstance, Optimizely); - assert.equal(optlyInstance.clientVersion, '5.3.5'); + assert.equal(optlyInstance.clientVersion, '5.4.0'); }); }); }); diff --git a/lib/index.node.tests.js b/lib/index.node.tests.js index f66dc0b69..3efc3b1a6 100644 --- a/lib/index.node.tests.js +++ b/lib/index.node.tests.js @@ -90,7 +90,7 @@ describe('optimizelyFactory', function() { optlyInstance.onReady().catch(function() {}); assert.instanceOf(optlyInstance, Optimizely); - assert.equal(optlyInstance.clientVersion, '5.3.5'); + assert.equal(optlyInstance.clientVersion, '5.4.0'); }); describe('event processor configuration', function() { diff --git a/lib/utils/enums/index.ts b/lib/utils/enums/index.ts index 404bca534..4b70e6a97 100644 --- a/lib/utils/enums/index.ts +++ b/lib/utils/enums/index.ts @@ -221,7 +221,7 @@ export const NODE_CLIENT_ENGINE = 'node-sdk'; export const REACT_CLIENT_ENGINE = 'react-sdk'; export const REACT_NATIVE_CLIENT_ENGINE = 'react-native-sdk'; export const REACT_NATIVE_JS_CLIENT_ENGINE = 'react-native-js-sdk'; -export const CLIENT_VERSION ='5.3.5' +export const CLIENT_VERSION ='5.4.0' export const DECISION_NOTIFICATION_TYPES = { AB_TEST: 'ab-test', diff --git a/package-lock.json b/package-lock.json index 35bbbae1a..65ca2f67a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@optimizely/optimizely-sdk", - "version": "5.3.5", + "version": "5.4.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 1b93e7539..fbb679ecf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@optimizely/optimizely-sdk", - "version": "5.3.5", + "version": "5.4.0", "description": "JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts", "module": "dist/optimizely.browser.es.js", "main": "dist/optimizely.node.min.js", diff --git a/tests/index.react_native.spec.ts b/tests/index.react_native.spec.ts index 11bed1752..5a0789b19 100644 --- a/tests/index.react_native.spec.ts +++ b/tests/index.react_native.spec.ts @@ -93,7 +93,7 @@ describe('javascript-sdk/react-native', () => { expect(optlyInstance).toBeInstanceOf(Optimizely); // @ts-ignore - expect(optlyInstance.clientVersion).toEqual('5.3.5'); + expect(optlyInstance.clientVersion).toEqual('5.4.0'); }); it('should set the React Native JS client engine and javascript SDK version', () => { From df66bc6889d53c5c4bf9c75c6e2934d0fca033fb Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:07:38 +0600 Subject: [PATCH 2/2] [FSSDK-11938] review update --- CHANGELOG.md | 2 +- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9be938dad..65c989ae0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [5.4.0] - Oct 13, 2025 -### Changed +### New Features - Added `customHeaders` option to `datafileOptions` for passing custom HTTP headers in datafile requests ([#1092](https://github.com/optimizely/javascript-sdk/pull/1092)) ### Bug Fixes - Fix the EventTags type to allow event properties ([#1040](https://github.com/optimizely/javascript-sdk/pull/1040)) diff --git a/package-lock.json b/package-lock.json index 65ca2f67a..70b2e15be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@optimizely/optimizely-sdk", - "version": "5.3.5", + "version": "5.4.0", "license": "Apache-2.0", "dependencies": { "decompress-response": "^4.2.1",