Releases: optimizely/react-sdk
Releases · optimizely/react-sdk
Release 2.0.0-alpha.1
[2.0.0-alpha.1] - March 18th, 2020
Breaking Changes
- Changed supported React version to 16.8+
New Features
-
Refactored
<OptimizelyFeature>to a functional component that uses theuseFeaturehook under the hood. See #32 for more details. -
Refactored
<OptimizelyExperiment>to a functional component that uses theuseExperimenthook under the hood. See #36 for more details. -
Added
useExperimenthook- Can be used to retrieve the variation for an experiment. See #36 for more details.
-
Added
useFeaturehook- Can be used to retrieve the status of a feature flag and its variables. See #28 for more details.
Enhancements
- Exposed the entire context object used by
<OptimizelyProvider>.- Enables support for using APIs which require passing reference to a context object, like
useContext. #27 for more details.
- Enables support for using APIs which require passing reference to a context object, like
Release 1.2.0-alpha.1
[1.2.0-alpha.1] - March 5th, 2020
New Features
- Updated minor version of core SDK (
@optimizely/optimizely-sdk) dependency which, for unrecognized events sent via.track(), will impact the log levels in this SDK as well.
Release 1.1.0
[1.1.0] - January 30th, 2020
New Features
- Added a new API to get project configuration static data.
- Call
getOptimizelyConfig()to get a snapshot of project configuration static data. - It returns an
OptimizelyConfiginstance which includes a datafile revision number, all experiments, and feature flags mapped by their key values. - Added caching for
getOptimizelyConfig-OptimizelyConfigobject will be cached and reused for the lifetime of the datafile. - For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-react.
- Call
Release 1.0.1
[1.0.1] - November 18th, 2019
Fixed
- Javascript SDK Client version was being sent in dispatched events. Changed it to send React SDK client version.
- Updated
@optimizely/optimizely-sdk to 3.3.2.Includes a better default logger for React Native and a fix for an error message logged when a user is bucketed to empty space. - Replaced usage of
react-broadcastwith the native React Context API
Release 1.0.0
[1.0.0] - September 27th, 2019
Initial release