microsoft / FeatureManagement-JavaScript

This library provides standardized APIs for enabling feature flags within JavaScript applications. Utilize this library to secure a consistent experience when developing applications that use patterns such as beta access, rollout, dark deployments, and more.
MIT License
4 stars 2 forks source link

Make evaluation context required in IFeatureFilter #6

Closed Eskibear closed 5 months ago

Eskibear commented 5 months ago

See https://github.com/microsoft/FeatureManagement-JavaScript/pull/5#discussion_r1561917719

IFeatureFilterEvaluationContext should be required for evaluate() impl of every filter, where featureName is provided.  This PR updates the interface.

interface IFeatureFilterEvaluationContext {
    featureName: string;
    parameters?: unknown;
}