Skip to content

Commit a1eee23

Browse files
authored
chore: Prepare for 2.3.2 release (#76)
* v2.3.2 * Prepare for 2.3.2 release * Update changelog and fix getAllFeatureVariables return type * Add spacing * Update @optimizely/optimizely-sdk to compatible-version dependency * Upgrade optimizely/optimizely-sdk to 4.3.4
1 parent 1511373 commit a1eee23

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [2.3.2] - October 9th, 2020
11+
Upgrade `@optimizely/optimizely-sdk` to [4.3.4](https://github.com/optimizely/javascript-sdk/releases/tag/v4.3.4):
12+
- Exported Optimizely Config Entities types from TypeScript type definitions. See [@optimizely/optimizely-sdk Release 4.3.3](https://github.com/optimizely/javascript-sdk/releases/tag/v4.3.3) for more details.
13+
- Fixed return type of `getAllFeatureVariables` method in TypeScript type definitions. See [@optimizely/optimizely-sdk Release 4.3.2](https://github.com/optimizely/javascript-sdk/releases/tag/v4.3.2) for more details.
14+
15+
### Bug fixes
16+
- Fixed return type of `getAllFeatureVariables` method in ReactSDKClient ([#76](https://github.com/optimizely/react-sdk/pull/76))
17+
1018
## [2.3.1] - October 5th, 2020
1119
Upgrade `@optimizely/optimizely-sdk` to [4.3.1](https://github.com/optimizely/javascript-sdk/releases/tag/v4.3.1). Added support for version audience evaluation and datafile accessor. See [@optimizely/optimizely-sdk Release 4.3.0](https://github.com/optimizely/javascript-sdk/releases/tag/v4.3.0) for more details.
1220

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/react-sdk",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "React SDK for Optimizely Full Stack and Optimizely Rollouts",
55
"homepage": "https://github.com/optimizely/react-sdk",
66
"license": "Apache-2.0",
@@ -29,7 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@optimizely/js-sdk-logging": "^0.1.0",
32-
"@optimizely/optimizely-sdk": "4.3.1",
32+
"@optimizely/optimizely-sdk": "^4.3.4",
3333
"hoist-non-react-statics": "^3.3.0",
3434
"prop-types": "^15.6.2",
3535
"utility-types": "^2.1.0 || ^3.0.0"

src/client.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('ReactSDKClient', () => {
9191
expect(createInstanceSpy).toBeCalledWith({
9292
...config,
9393
clientEngine: 'react-sdk',
94-
clientVersion: '2.3.1',
94+
clientVersion: '2.3.2',
9595
});
9696
});
9797

src/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type OnReadyResult = {
3535
};
3636

3737
const REACT_SDK_CLIENT_ENGINE = 'react-sdk';
38-
const REACT_SDK_CLIENT_VERSION = '2.3.1';
38+
const REACT_SDK_CLIENT_VERSION = '2.3.2';
3939

4040
export interface ReactSDKClient extends optimizely.Client {
4141
user: UserContext;
@@ -109,7 +109,7 @@ export interface ReactSDKClient extends optimizely.Client {
109109
featureKey: string,
110110
overrideUserId: string,
111111
overrideAttributes?: optimizely.UserAttributes
112-
): { [variableKey: string]: unknown };
112+
): { [variableKey: string]: unknown } | null;
113113

114114
isFeatureEnabled(
115115
featureKey: string,
@@ -526,7 +526,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
526526
featureKey: string,
527527
overrideUserId: string,
528528
overrideAttributes?: optimizely.UserAttributes
529-
): { [variableKey: string]: unknown } {
529+
): { [variableKey: string]: unknown } | null {
530530
const user = this.getUserContextWithOverrides(overrideUserId, overrideAttributes);
531531
if (user.id === null) {
532532
return {};

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
dependencies:
6565
uuid "^3.3.2"
6666

67-
"@optimizely/[email protected].1":
68-
version "4.3.1"
69-
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.3.1.tgz#667666bb55a5c9909764d3ebaafecbca66c8c6f6"
70-
integrity sha512-22wglT1USthyVRn+TocFCQ4x0Z9sgQTe9dKhebE+tF6CJu/ocHexQY8cKMbPr4qvO270Y4zbNEYjdg3MvMeeDQ==
67+
"@optimizely/optimizely-sdk@^4.3.4":
68+
version "4.3.4"
69+
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.3.4.tgz#b323b91dc8af9656dde8bcf696801bd71443e202"
70+
integrity sha512-DqaEg9YwiwnfDjaDmbST2cu0/7W/yQJqQ+tBwIEwh/HqiSgs8oQJX7sNG2Ql2fFwlIzG7APkIx/oxwbXpp8LPg==
7171
dependencies:
7272
"@optimizely/js-sdk-datafile-manager" "^0.8.0"
7373
"@optimizely/js-sdk-event-processor" "^0.6.0"

0 commit comments

Comments
 (0)