DevCycle to OpenFeature Node.js - User Context Transform CodeMod
This Codemod updates the DevCycleUser object to an OpenFeature EvaluationContext object:
- Replace the DevCycleUser object / types with an EvaluationContext
- Rename the user_id field to targetingKey in the EvaluationContext
- If the code is using Typescript types where its typed as DevCycleUser, update it to use EvaluationContext from @openfeature/server-sdk.
Before
ts
After
ts