Skip to content

Commit

Permalink
[FSSDK-10090] Prepare for v5.3.0 release (#921)
Browse files Browse the repository at this point in the history
* build: bump semantic version

* docs: update changelog

---------

Co-authored-by: Mike Chu <[email protected]>
  • Loading branch information
mikechu-optimizely and Mike Chu authored Apr 8, 2024
1 parent 75a0148 commit 75418da
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 9 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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).

## [Unreleased]
## [5.3.0] - April 8, 2024

### Changed
- Refactor: ODP corrections [#920](https://github.com/optimizely/javascript-sdk/pull/920) including
- ODPManager should not be running and scheduling timer if ODP is not integrated to the project (which causes memory leak if one sdk instance is created per request)
- CreateUserContext should work even when called before the datafile is downloaded and should send the `identify` ODP events after datafile download completes
- Other automatic odp events (vuid registration, client initialized) should also be sent after datafile is available and should not be dropped if batching is disabled.
- [see PR for more]


## [5.2.1] - March 25, 2024

Expand Down
2 changes: 1 addition & 1 deletion lib/index.browser.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('javascript-sdk (Browser)', function() {
optlyInstance.onReady().catch(function() {});

assert.instanceOf(optlyInstance, Optimizely);
assert.equal(optlyInstance.clientVersion, '5.2.1');
assert.equal(optlyInstance.clientVersion, '5.3.0');
});

it('should set the JavaScript client engine and version', function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.lite.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('optimizelyFactory', function() {
optlyInstance.onReady().catch(function() {});

assert.instanceOf(optlyInstance, Optimizely);
assert.equal(optlyInstance.clientVersion, '5.2.1');
assert.equal(optlyInstance.clientVersion, '5.3.0');
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion lib/index.node.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('optimizelyFactory', function() {
optlyInstance.onReady().catch(function() {});

assert.instanceOf(optlyInstance, Optimizely);
assert.equal(optlyInstance.clientVersion, '5.2.1');
assert.equal(optlyInstance.clientVersion, '5.3.0');
});

describe('event processor configuration', function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/enums/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.1';
export const CLIENT_VERSION = '5.3.0';

export const DECISION_NOTIFICATION_TYPES = {
AB_TEST: 'ab-test',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@optimizely/optimizely-sdk",
"version": "5.2.1",
"version": "5.3.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",
Expand Down
2 changes: 1 addition & 1 deletion tests/index.react_native.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('javascript-sdk/react-native', () => {

expect(optlyInstance).toBeInstanceOf(Optimizely);
// @ts-ignore
expect(optlyInstance.clientVersion).toEqual('5.2.1');
expect(optlyInstance.clientVersion).toEqual('5.3.0');
});

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

0 comments on commit 75418da

Please sign in to comment.