Skip to content

Commit d19a16a

Browse files
authored
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
1 parent 864fdcc commit d19a16a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Enhancements
1111
- 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)).
1212

13+
- 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)).
14+
1315
## [2.8.0] - January 26, 2022
1416

1517
### New Features

src/index.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@ export { OptimizelyExperiment } from './Experiment';
2222
export { OptimizelyVariation } from './Variation';
2323
export { OptimizelyDecision } from './utils';
2424

25-
export {
25+
export
26+
{
2627
logging,
2728
errorHandler,
2829
setLogger,
2930
setLogLevel,
3031
enums,
3132
eventDispatcher,
3233
OptimizelyDecideOption,
33-
} from '@optimizely/optimizely-sdk';
34+
ActivateListenerPayload,
35+
TrackListenerPayload,
36+
ListenerPayload
37+
}
38+
from '@optimizely/optimizely-sdk';
3439

3540
export { createInstance, ReactSDKClient } from './client';
3641

0 commit comments

Comments
 (0)