React-SDK - 2.8.1

  • Updated

[2.8.1]

March 7, 2022

Enhancements

- fixed issue [#49](https://github.com/optimizely/react-sdk/issues/49): Return type of createInstance was OptimizelyReactSDKClient which is the implementation class. Changed it to the ReactSDKClient interface instead ([#148](https://github.com/optimizely/react-sdk/pull/148)).

- fixed issue [#121](https://github.com/optimizely/react-sdk/issues/121):ActivateListenerPayload and TrackListenerPayload types were exported from @optimizely/optimizely-sdk but were missing from `@optimizely/react-sdk` exports. ([#150](https://github.com/optimizely/react-sdk/pull/150)).

### Bug fixes
- Fixed issue [#134](https://github.com/optimizely/react-sdk/issues/134) of the React SDK crashing when the internal Optimizely client returns as a null value. [PR #149](https://github.com/optimizely/react-sdk/pull/149)

https://github.com/optimizely/react-sdk/releases/tag/2.8.1