Closed Tymek closed 1 year ago
Support for new feature described here: https://docs.getunleash.io/reference/feature-strategy-variants
Simplified logic, isEnabled and getVariant resolve with the same function in engine. getValue will return Variant (can be disabled variant) if feature toggle is enabled, and undefined otherwise.
getValue
undefined
lib/src/core/engine.ts
About the changes
Support for new feature described here: https://docs.getunleash.io/reference/feature-strategy-variants
Simplified logic, isEnabled and getVariant resolve with the same function in engine.
getValue
will return Variant (can be disabled variant) if feature toggle is enabled, andundefined
otherwise.Important files
lib/src/core/engine.ts