Release 2.0.0-alpha.1
Pre-release
Pre-release
·
147 commits
to master
since this release
[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