-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: typesafe event emitter #490
Merged
beeme1mr
merged 4 commits into
main
from
489-web-sdk-clientname-in-eventdetails-is-overriden
Jul 21, 2023
Merged
feat: typesafe event emitter #490
beeme1mr
merged 4 commits into
main
from
489-web-sdk-clientname-in-eventdetails-is-overriden
Jul 21, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Michael Beemer <[email protected]>
Signed-off-by: Michael Beemer <[email protected]>
beeme1mr
commented
Jul 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I like the fact that we have typed objects for each event type it makes it explicit when to use optional fields such as flagsChanged
.
thomaspoignant
approved these changes
Jul 21, 2023
Signed-off-by: Michael Beemer <[email protected]>
beeme1mr
commented
Jul 21, 2023
lukas-reining
approved these changes
Jul 21, 2023
This was referenced Jul 21, 2023
toddbaert
pushed a commit
that referenced
this pull request
Jul 22, 2023
🤖 I have created a release *beep* *boop* --- ## [0.0.8](shared-v0.0.7...shared-v0.0.8) (2023-07-22) ### Features * typesafe event emitter ([#490](#490)) ([92e3a72](92e3a72)) ### Bug Fixes * race adding handler during init ([#501](#501)) ([0be9c5d](0be9c5d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr
pushed a commit
that referenced
this pull request
Jul 24, 2023
🤖 I have created a release *beep* *boop* --- ## [1.4.0](js-sdk-v1.3.3...js-sdk-v1.4.0) (2023-07-22) ### Features * typesafe event emitter ([#490](#490)) ([92e3a72](92e3a72)) ### Bug Fixes * race adding handler during init ([#501](#501)) ([0be9c5d](0be9c5d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr
pushed a commit
that referenced
this pull request
Jul 24, 2023
🤖 I have created a release *beep* *boop* --- ## [0.3.8-experimental](web-sdk-v0.3.7-experimental...web-sdk-v0.3.8-experimental) (2023-07-24) ### Features * typesafe event emitter ([#490](#490)) ([92e3a72](92e3a72)) ### Bug Fixes * onContextChanged not running for named providers ([#491](#491)) ([1ab0cc6](1ab0cc6)) * race adding handler during init ([#501](#501)) ([0be9c5d](0be9c5d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This was referenced Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR
Related Issues
Fixes #489
Notes
The event emitter was split into two classes.
OpenFeatureEventEmitter
is meant to be used by developers working on OpenFeature.InternalEventEmitter
is meant for use within the SDK. Unfortunately, the internal emitter is currently being exposed publically. This is because both the client and server SDKs expose the entire shared lib.