You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [Unreleased]
9
9
10
+
## [2.0.0] - April 30th, 2020
11
+
12
+
Upgrade `@optimizely/optimizely-sdk` to 4.0.0. See [@optimizely/optimizely-sdk Release 4.0.0](https://github.com/optimizely/javascript-sdk/releases/tag/v4.0.0) for more details.
13
+
14
+
### Breaking Changes
15
+
16
+
- Changed supported React version to 16.8+
17
+
18
+
-@optimizely/optimizely-sdk no longer adds `Promise` polyfill in its browser entry point
19
+
20
+
- Dropped support for Node.js version <8
21
+
22
+
### New Features
23
+
24
+
- Refactored `<OptimizelyFeature>` to a functional component that uses the `useFeature` hook under the hood. See [#32](https://github.com/optimizely/react-sdk/pull/32) for more details.
25
+
26
+
- Refactored `<OptimizelyExperiment>` to a functional component that uses the `useExperiment` hook under the hood. See [#36](https://github.com/optimizely/react-sdk/pull/36) for more details.
27
+
28
+
- Added `useExperiment` hook
29
+
30
+
- Can be used to retrieve the variation for an experiment. See [#36](https://github.com/optimizely/react-sdk/pull/36) for more details.
31
+
32
+
- Added `useFeature` hook
33
+
- Can be used to retrieve the status of a feature flag and its variables. See [#28](https://github.com/optimizely/react-sdk/pull/28) for more details.
34
+
35
+
- Removed lodash dependency
36
+
37
+
### Enhancements
38
+
39
+
- Exposed the entire context object used by `<OptimizelyProvider>`.
40
+
- Enables support for using APIs which require passing reference to a context object, like `useContext`. [#27](https://github.com/optimizely/react-sdk/pull/27) for more details.
0 commit comments