Skip to content

Commit 81e130c

Browse files
chore: Prepare for 2.5.0 release (#108)
* Prepare for 2.5.0 release * Fix yarn.lock * fixed yarn.lock Co-authored-by: Zeeshan Ashraf <[email protected]>
1 parent d7cac9a commit 81e130c

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [2.5.0] - March 12th, 2021
11+
- Upgrade `@optimizely/optimizely-sdk` to [4.5.1](https://github.com/optimizely/javascript-sdk/releases/tag/v4.5.1)
12+
- Added support for new set of decide APIs ([#98](https://github.com/optimizely/react-sdk/pull/98))
13+
- Introducing `useDecision` hook to retrieve the decision result for a flag key, optionally auto updating that decision based on underlying user or datafile changes ([#100](https://github.com/optimizely/react-sdk/pull/100), [#105](https://github.com/optimizely/react-sdk/pull/105))
14+
- For details, refer to our documentation page: [https://docs.developers.optimizely.com/full-stack/v4.0/docs/javascript-react-sdk](https://docs.developers.optimizely.com/full-stack/v4.0/docs/javascript-react-sdk)
15+
1016
## [2.4.3] - March 2nd, 2021
1117
### Bug fixes
1218
- This version of React SDK depends on [4.4.3](https://github.com/optimizely/javascript-sdk/releases/tag/v4.4.3) of `@optimizely/optimizely-sdk`. The dependency was defined to use the latest available minor version which is no more compatible. Fixed the dependency to use the exact version.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/react-sdk",
3-
"version": "2.4.3",
3+
"version": "2.5.0",
44
"description": "React SDK for Optimizely Full Stack and Optimizely Rollouts",
55
"homepage": "https://github.com/optimizely/react-sdk",
66
"license": "Apache-2.0",
@@ -29,7 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@optimizely/js-sdk-logging": "^0.1.0",
32-
"@optimizely/optimizely-sdk": "^4.5.0",
32+
"@optimizely/optimizely-sdk": "^4.5.1",
3333
"hoist-non-react-statics": "^3.3.0",
3434
"prop-types": "^15.6.2",
3535
"utility-types": "^2.1.0 || ^3.0.0"

src/client.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('ReactSDKClient', () => {
100100
expect(createInstanceSpy).toBeCalledWith({
101101
...config,
102102
clientEngine: 'react-sdk',
103-
clientVersion: '2.4.3',
103+
clientVersion: '2.5.0',
104104
});
105105
});
106106

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type OnReadyResult = {
3737
};
3838

3939
const REACT_SDK_CLIENT_ENGINE = 'react-sdk';
40-
const REACT_SDK_CLIENT_VERSION = '2.4.3';
40+
const REACT_SDK_CLIENT_VERSION = '2.5.0';
4141

4242
export interface ReactSDKClient extends Omit<optimizely.Client, 'createUserContext'> {
4343
user: UserInfo;

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@
506506
dependencies:
507507
uuid "^3.3.2"
508508

509-
"@optimizely/optimizely-sdk@^4.5.0":
510-
version "4.5.0"
511-
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.5.0.tgz#af85693b38662d0036e2b819426d11fc038dd7e0"
512-
integrity sha512-d9dYXfncDDXlBZ1pFsqNkwO7rTBHuEQGVE3pWd3lIsddpaCWEo+lf5j6F3CzvECbi2moVRtBYaIpo8PzKNRGJw==
509+
"@optimizely/optimizely-sdk@^4.5.1":
510+
version "4.5.1"
511+
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.5.1.tgz#cab05df1b6062ae31909e77a419b5f7662738374"
512+
integrity sha512-u/AaI/Dte0TPrxB7K3ihYRjZK9bQbFEjZ3Rh6pbFHsMLEzfvBSH2AEtEsrXjzCSdXdRhYQYG74Rf9+eFMXa8Ew==
513513
dependencies:
514514
"@optimizely/js-sdk-datafile-manager" "^0.8.0"
515515
"@optimizely/js-sdk-event-processor" "^0.8.0"

0 commit comments

Comments
 (0)