Skip to content

Commit

Permalink
fix: Exported types ActivateListenerPayload and `TrackListenerPaylo…
Browse files Browse the repository at this point in the history
…ad` (#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
shaharyar123 authored Feb 22, 2022
1 parent 864fdcc commit d19a16a
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
9 changes: 7 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -22,15 +22,20 @@ export { OptimizelyExperiment } from './Experiment';
export { OptimizelyVariation } from './Variation';
export { OptimizelyDecision } from './utils';

export {
export
{
logging,
errorHandler,
setLogger,
setLogLevel,
enums,
eventDispatcher,
OptimizelyDecideOption,
} from '@optimizely/optimizely-sdk';
ActivateListenerPayload,
TrackListenerPayload,
ListenerPayload
}
from '@optimizely/optimizely-sdk';

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

0 comments on commit d19a16a

Please sign in to comment.