Skip to content

Commit 65aab8f

Browse files
author
James Fox
committed
v2.0.0-alpha.1
1 parent da3ceb4 commit 65aab8f

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [2.0.0-alpha.1] - March 18th, 2020
11+
12+
### Breaking Changes
13+
14+
- Changed supported React version to 16.8+
15+
16+
### New Features
17+
1018
- 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.
1119

1220
- 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.
1321

1422
- Added `useExperiment` hook
15-
- Can be used to retrieve the variation for an experiment. See [#36](https://github.com/optimizely/react-sdk/pull/36) for more details.
1623

17-
### New Features
24+
- Can be used to retrieve the variation for an experiment. See [#36](https://github.com/optimizely/react-sdk/pull/36) for more details.
1825

1926
- Added `useFeature` hook
2027
- 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.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/react-sdk",
3-
"version": "1.2.0-alpha.1",
3+
"version": "2.0.0-alpha.1",
44
"description": "React SDK for Optimizely Full Stack and Optimizely Rollouts",
55
"homepage": "https://github.com/optimizely/react-sdk",
66
"license": "Apache-2.0",

src/client.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('ReactSDKClient', () => {
8686
expect(createInstanceSpy).toBeCalledWith({
8787
...config,
8888
clientEngine: 'react-sdk',
89-
clientVersion: '1.2.0-alpha.1',
89+
clientVersion: '2.0.0-alpha.1',
9090
});
9191
});
9292

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type OnReadyResult = {
3434
};
3535

3636
const REACT_SDK_CLIENT_ENGINE = 'react-sdk';
37-
const REACT_SDK_CLIENT_VERSION = '1.2.0-alpha.1';
37+
const REACT_SDK_CLIENT_VERSION = '2.0.0-alpha.1';
3838

3939
export interface ReactSDKClient extends optimizely.Client {
4040
user: UserContext;

0 commit comments

Comments
 (0)