diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d0e71680..47c5c0dc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Publish SDK to NPM on: release: - types: [published, edited] + types: [published] workflow_dispatch: {} jobs: diff --git a/CHANGELOG.md b/CHANGELOG.md index 65c989ae0..d09e07847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ 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.1] - Dec 8, 2025 + +### Changed +- Widen React Native peer dependency version ranges ([#1118](https://github.com/optimizely/javascript-sdk/pull/1118)) +- Improve notification center type definitions with strongly-typed listener payloads ([#1119](https://github.com/optimizely/javascript-sdk/pull/1119)) + + ## [5.4.0] - Oct 13, 2025 ### New Features diff --git a/lib/index.browser.tests.js b/lib/index.browser.tests.js index 4bd592e8d..c6dd96e4e 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.4.0'); + assert.equal(optlyInstance.clientVersion, '5.4.1'); }); 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 7b184299c..7a30a4fcf 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.4.0'); + assert.equal(optlyInstance.clientVersion, '5.4.1'); }); }); }); diff --git a/lib/index.node.tests.js b/lib/index.node.tests.js index 3efc3b1a6..d9e6107b2 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.4.0'); + assert.equal(optlyInstance.clientVersion, '5.4.1'); }); describe('event processor configuration', function() { diff --git a/lib/utils/enums/index.ts b/lib/utils/enums/index.ts index a89a9470e..f757621c4 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.4.0' +export const CLIENT_VERSION ='5.4.1' export const DECISION_NOTIFICATION_TYPES = { AB_TEST: 'ab-test', diff --git a/package-lock.json b/package-lock.json index c9d67d807..a5d803c6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@optimizely/optimizely-sdk", - "version": "5.4.0", + "version": "5.4.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@optimizely/optimizely-sdk", - "version": "5.4.0", + "version": "5.4.1", "license": "Apache-2.0", "dependencies": { "decompress-response": "^4.2.1", diff --git a/package.json b/package.json index 889942831..73b8cd3db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@optimizely/optimizely-sdk", - "version": "5.4.0", + "version": "5.4.1", "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 5a0789b19..fea41446f 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.4.0'); + expect(optlyInstance.clientVersion).toEqual('5.4.1'); }); it('should set the React Native JS client engine and javascript SDK version', () => {