js-sdk-contrib
js-sdk-contrib copied to clipboard
feat: Create a Growthbook server side provider
This PR
- adds a new OpenFeature GrowthBook server provider
How to test
Integrate OpenFeature into a test node server and set it up with this new GrowthBook provider. Ensure that GrowthBook flag evaluation works as expected using the OpenFeature API
How to set up OpenFeature with node
OpenFeature.setProvider(new GrowthbookProvider(gbContext, initOptions))
Hey @msamper, great addition, I will have a look tomorrow!
Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.
Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.
@beeme1mr I rebased on the main branch of my fork and it seems like there's still CI issues with the e2e and the lint-test-build. Should I be rebasing on open-feature:main instead?
Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.
@beeme1mr I rebased on the main branch of my fork and it seems like there's still CI issues with the e2e and the lint-test-build. Should I be rebasing on open-feature:main instead?
Yes, open-feature:main should be your branch to rebase on @msamper.
We created a second version of our Node JS SDK that closely mirrors the Dynamic Context paradigm. I updated this PR to use it and fixed the tests. This should resolve the previously outstanding comments
Looks good to me!
Great! Fixed up some variable names and updated the README so it should be good to merge