v1.1.1
Bug Fixes
-
fix: allow null targeting key for static and rule-only flags (#232)
The OpenFeature spec (3.1.1) declares
targetingKeyas optional, but the Node.js evaluator previously rejected ALL flag evaluations whentargetingKeywasnullorundefined. This fix defers the null check to the shard evaluation path, so only flags that genuinely need a targeting key (for sharding) returnTARGETING_KEY_MISSING.Scenario targetingKeyabsenttargetingKeypresentStatic flag (no rules, no shards) Returns flag value ✓ Returns flag value ✓ Rule-only flag (rules on non-id attribute) Returns matched value ✓ Returns matched value ✓ Sharded flag (requires key for hash) TARGETING_KEY_MISSINGerrorReturns shard-assigned value ✓