Skip to content

chore: Prepare for 2.5.0 release #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [2.5.0] - March 12th, 2021
- Upgrade `@optimizely/optimizely-sdk` to [4.5.1](https://github.com/optimizely/javascript-sdk/releases/tag/v4.5.1)
- Added support for new set of decide APIs ([#98](https://github.com/optimizely/react-sdk/pull/98))
- Introducing `useDecision` hook to retrieve the decision result for a flag key, optionally auto updating that decision based on underlying user or datafile changes ([#100](https://github.com/optimizely/react-sdk/pull/100), [#105](https://github.com/optimizely/react-sdk/pull/105))
- For details, refer to our documentation page: [https://docs.developers.optimizely.com/full-stack/v4.0/docs/javascript-react-sdk](https://docs.developers.optimizely.com/full-stack/v4.0/docs/javascript-react-sdk)

## [2.4.3] - March 2nd, 2021
### Bug fixes
- This version of React SDK depends on [4.4.3](https://github.com/optimizely/javascript-sdk/releases/tag/v4.4.3) of `@optimizely/optimizely-sdk`. The dependency was defined to use the latest available minor version which is no more compatible. Fixed the dependency to use the exact version.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@optimizely/react-sdk",
"version": "2.4.3",
"version": "2.5.0",
"description": "React SDK for Optimizely Full Stack and Optimizely Rollouts",
"homepage": "https://github.com/optimizely/react-sdk",
"license": "Apache-2.0",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@optimizely/js-sdk-logging": "^0.1.0",
"@optimizely/optimizely-sdk": "^4.5.0",
"@optimizely/optimizely-sdk": "^4.5.1",
"hoist-non-react-statics": "^3.3.0",
"prop-types": "^15.6.2",
"utility-types": "^2.1.0 || ^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('ReactSDKClient', () => {
expect(createInstanceSpy).toBeCalledWith({
...config,
clientEngine: 'react-sdk',
clientVersion: '2.4.3',
clientVersion: '2.5.0',
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type OnReadyResult = {
};

const REACT_SDK_CLIENT_ENGINE = 'react-sdk';
const REACT_SDK_CLIENT_VERSION = '2.4.3';
const REACT_SDK_CLIENT_VERSION = '2.5.0';

export interface ReactSDKClient extends Omit<optimizely.Client, 'createUserContext'> {
user: UserInfo;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@
dependencies:
uuid "^3.3.2"

"@optimizely/optimizely-sdk@^4.5.0":
version "4.5.0"
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.5.0.tgz#af85693b38662d0036e2b819426d11fc038dd7e0"
integrity sha512-d9dYXfncDDXlBZ1pFsqNkwO7rTBHuEQGVE3pWd3lIsddpaCWEo+lf5j6F3CzvECbi2moVRtBYaIpo8PzKNRGJw==
"@optimizely/optimizely-sdk@^4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@optimizely/optimizely-sdk/-/optimizely-sdk-4.5.1.tgz#cab05df1b6062ae31909e77a419b5f7662738374"
integrity sha512-u/AaI/Dte0TPrxB7K3ihYRjZK9bQbFEjZ3Rh6pbFHsMLEzfvBSH2AEtEsrXjzCSdXdRhYQYG74Rf9+eFMXa8Ew==
dependencies:
"@optimizely/js-sdk-datafile-manager" "^0.8.0"
"@optimizely/js-sdk-event-processor" "^0.8.0"
Expand Down