From d19a16a14b7a7db427ddc262e5e4d476b2200a81 Mon Sep 17 00:00:00 2001 From: Muhammad Shaharyar Date: Tue, 22 Feb 2022 23:41:06 +0500 Subject: [PATCH] fix: Exported types `ActivateListenerPayload` and `TrackListenerPayload` (#150) ### Summary `ActivateListenerPayload` and `TrackListenerPayload` types were exported from `@optimizely/optimizely-sdk` but were missing in `@optimizely/react-sdk` exports. ### Test Plan Manually tested thoroughly. All existing unit tests pass. ### Issues #121 --- CHANGELOG.md | 2 ++ src/index.ts | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e95b5c7..0cd30e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Enhancements - fixed issue [#49](https://github.com/optimizely/react-sdk/issues/49): Return type of `createInstance` was `OptimizelyReactSDKClient` which is the implementation class. Changed it to the `ReactSDKClient` interface instead ([#148](https://github.com/optimizely/react-sdk/pull/148)). +- fixed issue [#121](https://github.com/optimizely/react-sdk/issues/121):`ActivateListenerPayload` and `TrackListenerPayload` types were exported from `@optimizely/optimizely-sdk` but were missing from `@optimizely/react-sdk` exports. ([#150](https://github.com/optimizely/react-sdk/pull/150)). + ## [2.8.0] - January 26, 2022 ### New Features diff --git a/src/index.ts b/src/index.ts index 2e117f23..5404f668 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,8 @@ export { OptimizelyExperiment } from './Experiment'; export { OptimizelyVariation } from './Variation'; export { OptimizelyDecision } from './utils'; -export { +export + { logging, errorHandler, setLogger, @@ -30,7 +31,11 @@ export { enums, eventDispatcher, OptimizelyDecideOption, -} from '@optimizely/optimizely-sdk'; + ActivateListenerPayload, + TrackListenerPayload, + ListenerPayload +} +from '@optimizely/optimizely-sdk'; export { createInstance, ReactSDKClient } from './client';