Skip to content

Commit b936833

Browse files
committed
up
1 parent be886c8 commit b936833

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2222
// ... other config options
2323
cmab: {
2424
cacheSize: 1000, // Optional: Set CMAB cache size (default: 1000)
25-
cacheTtl: 300000, // Optional: Set CMAB cache TTL in milliseconds (default: 30 * 60 * 1000)
25+
cacheTtl: 30 * 60 * 1000, // Optional: Set CMAB cache TTL in milliseconds (default: 30 * 60 * 1000)
2626
cache: customCache // Optional: Custom cache implementation, instance of CacheWithRemnove interface
2727
}
2828
});
@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3737
- `OptimizelyDecideOption.INVALIDATE_USER_CMAB_CACHE`: Invalidate CMAB cache for the particular user and experiment
3838

3939
```js
40+
4041
// Example usage with CMAB decide options
4142
const decision = await userContext.decideAsync('feature-flag-key', [
4243
optimizelySdk.enums.OptimizelyDecideOption.IGNORE_CMAB_CACHE
@@ -47,6 +48,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4748
- Flush events without closing client on page unload which causes event processing to stop working when page is loaded from bfcache ([#1087](https://github.com/optimizely/javascript-sdk/pull/1087))
4849
- Fixed typo in clientEngine option ([#1095](https://github.com/optimizely/javascript-sdk/pull/1095))
4950

51+
## [5.4.0] - Oct 13, 2025
52+
53+
### New Features
54+
- Added `customHeaders` option to `datafileOptions` for passing custom HTTP headers in datafile requests ([#1092](https://github.com/optimizely/javascript-sdk/pull/1092))
55+
### Bug Fixes
56+
- Fix the EventTags type to allow event properties ([#1040](https://github.com/optimizely/javascript-sdk/pull/1040))
57+
- Fix typo in event.experimentIds field in project config ([#1088](https://github.com/optimizely/javascript-sdk/pull/1088))
5058

5159
## [6.1.0] - September 8, 2025
5260

lib/index.browser.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe('javascript-sdk (Browser)', function() {
153153
});
154154

155155
assert.instanceOf(optlyInstance, Optimizely);
156-
assert.equal(optlyInstance.clientVersion, '6.1.0');
156+
assert.equal(optlyInstance.clientVersion, '6.2.0');
157157
});
158158

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

lib/index.node.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('optimizelyFactory', function() {
8888
});
8989

9090
assert.instanceOf(optlyInstance, Optimizely);
91-
assert.equal(optlyInstance.clientVersion, '6.1.0');
91+
assert.equal(optlyInstance.clientVersion, '6.2.0');
9292
});
9393
// TODO: user will create and inject an event processor
9494
// these tests will be refactored accordingly

lib/index.react_native.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('javascript-sdk/react-native', () => {
9292
expect(optlyInstance).toBeInstanceOf(Optimizely);
9393
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
9494
// @ts-ignore
95-
expect(optlyInstance.clientVersion).toEqual('6.1.0');
95+
expect(optlyInstance.clientVersion).toEqual('6.2.0');
9696
});
9797

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

lib/utils/enums/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const CONTROL_ATTRIBUTES = {
4141
export const JAVASCRIPT_CLIENT_ENGINE = 'javascript-sdk';
4242
export const NODE_CLIENT_ENGINE = 'node-sdk';
4343
export const REACT_NATIVE_JS_CLIENT_ENGINE = 'react-native-js-sdk';
44-
export const CLIENT_VERSION = '6.1.0';
44+
export const CLIENT_VERSION = '6.2.0';
4545

4646
/*
4747
* Represents the source of a decision for feature management. When a feature

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

0 commit comments

Comments
 (0)