-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add OpenFeature provider, tests and examples #4
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
Conversation
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.
just a couple small things with the examples
examples/express.ts
Outdated
app.get('/feature-flag', async (req, res) => { | ||
const client = OpenFeature.getClient(); | ||
const flagDetails = await client.getBooleanDetails('example-feature', false, req.context); | ||
|
||
res.json({ | ||
featureFlag: 'example-feature', | ||
value: flagDetails.value, | ||
}); | ||
}); |
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.
this works but we'd want something that's more if the flag is true do this logic and false do this other... perhaps something that prints out a message about version or something
# 1.0.0 (2024-12-19) ### Bug Fixes * **hyphenClient:** update horizon server URL to use evaluate endpoint ([c9e2f2d](c9e2f2d)) * **hyphenClient:** update mock horizon URL references to use base URL ([27cb479](27cb479)) * make logger parameter optional in provider functions ([#11](#11)) ([ed1d019](ed1d019)) * Throw error on missing or invalid evaluation ([#10](#10)) ([4e2f24b](4e2f24b)) * typo in CONTRIBUTING.md ([c7a0983](c7a0983)) ### Features * add cache config options and key generation ([#12](#12)) ([1c4fb46](1c4fb46)) * add OpenFeature provider, tests and examples ([#4](#4)) ([73ed122](73ed122)) * add telemetry support ([#15](#15)) ([d1d76d9](d1d76d9))
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.