Skip to content

Commit 5e5e459

Browse files
authored
chore: prep for release 2.8.0 (#143)
1 parent f090293 commit 5e5e459

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [2.8.0] - January 26, 2022
11+
12+
### New Features
13+
- Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the ReactSDKClient interface ([#133](https://github.com/optimizely/react-sdk/pull/133)):
14+
- setForcedDecision
15+
- getForcedDecision
16+
- removeForcedDecision
17+
- removeAllForcedDecisions
18+
- Updated `useDecision` hook to auto-update and reflect changes when forced decisions are set and removed ([#133](https://github.com/optimizely/react-sdk/pull/133)).
19+
- For details, refer to our documentation pages: [ReactSDKClient](https://docs.developers.optimizely.com/full-stack/v4.0/docs/reactsdkclient), [Forced Decision methods](https://docs.developers.optimizely.com/full-stack/v4.0/docs/forced-decision-methods-react) and [useDecision hook](https://docs.developers.optimizely.com/full-stack/v4.0/docs/usedecision-react).
20+
21+
### Bug fixes
22+
- Fixed the SDK to render the correct decision on first render when initialized synchronously using a datafile ([#125](https://github.com/optimizely/react-sdk/pull/125)).
23+
- Fixed the redundant re-rendering when SDK is initialized with both datafile and SDK key ([#125](https://github.com/optimizely/react-sdk/pull/125)).
24+
- Updated `@optimizely/js-sdk-logging` to 0.3.1 ([#140](https://github.com/optimizely/react-sdk/pull/140)).
25+
1026
## [2.7.1-alpha] - October 1st, 2021
1127

1228
### Bug fixes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/react-sdk",
3-
"version": "2.7.1-alpha",
3+
"version": "2.8.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",

src/client.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('ReactSDKClient', () => {
103103
expect(createInstanceSpy).toBeCalledWith({
104104
...config,
105105
clientEngine: 'react-sdk',
106-
clientVersion: '2.7.1-alpha',
106+
clientVersion: '2.8.0',
107107
});
108108
});
109109

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type OnReadyResult = {
3939
};
4040

4141
const REACT_SDK_CLIENT_ENGINE = 'react-sdk';
42-
const REACT_SDK_CLIENT_VERSION = '2.7.1-alpha';
42+
const REACT_SDK_CLIENT_VERSION = '2.8.0';
4343

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

0 commit comments

Comments
 (0)