diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d4f3d2f..41b265a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.8.0] - January 26, 2022 + +### New Features +- 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)): + - setForcedDecision + - getForcedDecision + - removeForcedDecision + - removeAllForcedDecisions +- 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)). +- 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). + +### Bug fixes +- 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)). +- Fixed the redundant re-rendering when SDK is initialized with both datafile and SDK key ([#125](https://github.com/optimizely/react-sdk/pull/125)). +- Updated `@optimizely/js-sdk-logging` to 0.3.1 ([#140](https://github.com/optimizely/react-sdk/pull/140)). + ## [2.7.1-alpha] - October 1st, 2021 ### Bug fixes diff --git a/package.json b/package.json index 4d70e97d..32fca1b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@optimizely/react-sdk", - "version": "2.7.1-alpha", + "version": "2.8.0", "description": "React SDK for Optimizely Full Stack and Optimizely Rollouts", "homepage": "https://github.com/optimizely/react-sdk", "license": "Apache-2.0", diff --git a/src/client.spec.ts b/src/client.spec.ts index fdd2b516..421da6d5 100644 --- a/src/client.spec.ts +++ b/src/client.spec.ts @@ -103,7 +103,7 @@ describe('ReactSDKClient', () => { expect(createInstanceSpy).toBeCalledWith({ ...config, clientEngine: 'react-sdk', - clientVersion: '2.7.1-alpha', + clientVersion: '2.8.0', }); }); diff --git a/src/client.ts b/src/client.ts index 20b40761..af262eac 100644 --- a/src/client.ts +++ b/src/client.ts @@ -39,7 +39,7 @@ export type OnReadyResult = { }; const REACT_SDK_CLIENT_ENGINE = 'react-sdk'; -const REACT_SDK_CLIENT_VERSION = '2.7.1-alpha'; +const REACT_SDK_CLIENT_VERSION = '2.8.0'; export interface ReactSDKClient extends Omit { user: UserInfo;